5 years, 5 months ago.

Export Nucleo STM32F303RE program to use with custom bootloader

In my efforts to rapidly prototype a system utilizing the STM32F303RE microcontroller I turned to the NUCLEO development platform in conjucntion with the mbed onine IDE for testing and implementing basic functionality in an embedded device. As part of the core functionality of this device, and by the very nature of it's implementation (the STM is secured inside a waterproof enclosure many feet underwater and with it's only access through an RS485 communication line), I am required to be able to reprogram the firmware of the chip while it is deployed in its' application configuration. In parallel I have developed a functional bootloader which is capable of reprogramming the NUCLEO over an RS485 based tether, however the bootoader, and any firmware applications I develop for it, have all been developed in Eclipse using the Eclipse/GCC toolchain. This allows me to change the start address of my main application so that it can be written into memory at the appropriate location and compiled accordingly. In the interest of not having to rewrite code, I would like to export the code I have written in the online mbed IDE into a project which I can open in Eclipse and manually change the memory loadscript to reconfigure the application to run from the main appplication memeory space (ie, allow my bootloader to place the program in the appropriate memory space and launch and have it work accordingly). This all seems to be theoretically possible, however when I attempt to export my mbed programs (even basic hello world blinky programs) for the ARM-GCC Eclipse toolchain I am met by either a never-ending status bar "Exporting Program..." or the export fails entirely. Is there something I am doing incorrectly? I have read a couple posts about using the embed CLI for export, and that yielding better results, though my efforts to get the CLI system working have not been successful hisotrically. Is there a more effective way to accomplish what I am trying here?

1 Answer

5 years, 5 months ago.

Hi

You can try the SW4STM32 exporter instead. It is also based on Eclipse and it's free.

I have now tried your suggestion in addition to the following permutations -Exported as SW4STM32, attempted to compile in Eclipse as I have been -Export was successful -Project failed to compile due to 'make' not being in path -This is incorrect as I have repeatedly reinstalled make and made sure to put it in path of project -Exported as SW4STM32, attempted to compile in SW4STM32 (installed out of frustration) -Export was successful -Project failed to compile due to numerous errors -fatal error: mbed.h: No such file or directory -make:*[src/NUCELO_blink_led/main.o] Error 1 -recipe for target 'src/NUCELO_blink_led/main.o' failed Following these failures I purused a course wherein I would follow this guide (http://www.openstm32.org/Importing%2Ban%2Bmbed%2Bprogram) to export even a basic sample for use. However I ran into problems when I attempted to import the mbed-src (and mbed-dev) libraries in the online compiler. At this point I attemped to move to the CLI, which also had errors importing the mbed-dev and src libraries. I am so at a loss as to where to look for a solution for exporting at this point. It's becomming very frustrating that none of the methods proposed anywhere seem to work with any degree of certainty.

posted by Matthew Connolly 05 Nov 2018

Sorry about the formatting

posted by Matthew Connolly 05 Nov 2018