Page 1 of 1

FTDI to flash LPS node firmware and to configure

Posted: Mon Nov 06, 2017 2:34 pm
by chilli65
The USB port on the LPS node came off. Is it possible to flash or configure the lps node using FTDI? If yes, how?

Re: FTDI to flash LPS node firmware and to configure

Posted: Mon Nov 06, 2017 3:48 pm
by tobias
Yes it is possible but will require a bit of hacking. The ST UART bootloader is available on the FTDI debug port so by using this it should be possible to flash it. I have not tried this my self but don't see a reson why it shouldn't work. A quick search and I found this video showing how someone did it on a similar STM32 device. To activate the bootloader hold the DFU button while powering the node (or resetting it).

Then to activate the FTDI debug port so you can use it to configure the node you need to build the firmware with the makefile line

Code: Select all

# CFLAGS += -DUSE_FTDI_UART
uncommented.

Re: FTDI to flash LPS node firmware and to configure

Posted: Mon Nov 06, 2017 4:27 pm
by tobias
I did a quick test building the FW with the USE_FTDI_UART line and found out that it fails. If you would like to try this path a can try to fix it and push a version that works with the FTDI debug port?