AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Windows 10 stm32 stlink driver2/18/2024 ![]() ![]() Press the Debug button to flash the firmware to your board and start debugging! The debugger will stop in the beginning of the main function and once you press F8, the CPU will start the execution of your main function.Īt this point, your firmware should already be flashed to the Spark Core and you will see the debug messages in the console which counts the seconds.The ST-LINK/V2 is an in-circuit debugger and programmer for the STM8 and STM32 microcontroller families. In the Common tab, make sure you select Shared file to force the settings to be saved in the project rather than the Workspace. The Startup tab should already be all set as well. In the Debugger tab, enter " -f board\sparkcore.cfg" to pass in the configuration file we created to the OpenOCD. The Main tab should already be good to go. Right-click on GDB OpenOCD Debugging and select New. Click OK.Ĭlick on the little green bug icon in the Eclipse toolbar and select Debug Configurations. Go to Window > Preferences > Run/Debug > String Substitution and make sure openocd_path refers to the bin folder of the OpenOCD installation. ![]() The next step would be to setup a debug configuration and begin debugging! The build should succeed and you should get a Debug folder containing a. Right click on your project and choose Build Project. ![]() Select the configurations you want to include.Ĭheck the path of the Toolchain you installed in section 2.2. Select STM32F10x C/C++ Project and Cross ARM GCC and give your project a name.įill in the Target processor settings according to the picture below.Ĭhange the directory structure if you so wish. Now since the Spark Core firmware is currently not compilable on Windows due to makefile issues, for the sake of demonstration, we will create a new project from scratch. # use hardware reset, connect under resetģ Configuration 3.1 Creating a new project This is a SPARK-CORE board with a single STM32F103MD chip.
0 Comments
Read More
Leave a Reply. |