简体   繁体   中英

Build and Deploy Code on STM32F4 Using Eclipse IDE

I had a problem while deploying code into my STM32F4Nucleo boards using Eclipse and I wanted to share the solution for public benefit. The problem is that the build process was working however when it comes to deploying the code into the microcontroller the system was stuck, further I was not able to debug the device. The step over and resume buttons were greyed out in the debug perspective.

Later I realized that it was due to the naming of the startup code of the MCU. For example in my case the name was,

startup_stm32f401xe.s

I forgot to capitalize the "s" in the extension of the file. When you rename it as,

startup_stm32f401xe.S

then recompile, both debugging and the code deployment issue was solved.

Just FYI, Bests

Another way of doing so is modifying which file extensions are recognized as source files which then get compiled and linked. You can do so here on the workspace level:

在此处输入图片说明

or under project settings under C/C++ General -> File Types if you prefer to do so only for specific project(s).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM