luftboot icon indicating copy to clipboard operation
luftboot copied to clipboard

Bootloader on MX working with latest LibopenCM3

Open OpenUAS opened this issue 9 years ago • 3 comments

AS a user I want a simple way to upload my AP software to the AP board. the newer Lisa v2 MX has an F4. THe working of flasing by USB are not tested and know to be problematic. Will dig up a board and start testing.

There already exists a bootloader for Lisa MX https://github.com/podhrmic/aggieair-bootloader but it still has to be merged to the main repo, since it is using older version of libopencm3 and needs to be updated.

OpenUAS avatar Jul 29 '15 17:07 OpenUAS

Looks like the main difference is not in the version of the libopencm3, but rather in the makefile process. Using latest libopencm3 (the same as paparazzi master), I can compile luftboot for Lisa MX, and upload code (yes it says *upload successfully completed), but then the code never starts. When I bypass the bootloader by providing 5V on input (and not using USB cable), the program doesn't start.

At the same time, the bootloader from https://github.com/podhrmic/aggieair-bootloader works perfectly. I ll make a pull request with the code changes.

podhrmic avatar Aug 04 '15 22:08 podhrmic

Of course the flags you have to set in the makefile are different for F1 and F4...

flixr avatar Aug 05 '15 07:08 flixr

If you wanted to experiment with the experimental Lisa MX bootloader some notice sometimes uploading the bootloader will lock the flash... and you won't be able to override the bootloader via SWD.

In that case this sequence of commands seems to work: -in gdb-

target extended-remote /dev/ttyACM0 mon swdp_scan attach 1 mon option erase mon erase_mass disconnect

OpenUAS avatar Aug 25 '15 13:08 OpenUAS