Problem loading simple blink code on STM32 and simulink.
Show older comments
Hi, i am having an issue loading a simple blink example program to a STM32F411VE board. I have all my blocks connected, i have configured my GPIO 12 to blink the green LED, once i have everything ready i build deploy and start. The COM LEDs on the board blink as spected but the LED on pin 12 does nothing, i have tried to change the named of the file and directories. Has anybody dealt with this issue?
here is the diagnostics window:
### Starting build procedure for: blink ### Generating code and artifacts to 'Model specific' folder structure ### Generating code into build folder: C:\Users\German\Documents\MATLAB\Examples\R2021b\stm32f4discovery\GettingStartedWithSTM32F4xxBasedHardwareBoardExample\blink_ert_rtw ### Generated code for 'blink' is up to date because no structural, parameter or code replacement library changes were found. ### Using toolchain: GNU Tools for ARM Embedded Processors ### 'C:\Users\German\Documents\MATLAB\Examples\R2021b\stm32f4discovery\GettingStartedWithSTM32F4xxBasedHardwareBoardExample\blink_ert_rtw\blink.mk' is up to date ### Building 'blink': "D:\MATLAB\bin\win64\gmake" -f blink.mk all MW_GNU_ARM_TOOLS_PATH = C:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/3P778C~1.INS/GNUARM~1.INS/win/bin C:\Users\German\Documents\MATLAB\Examples\R2021b\stm32f4discovery\GettingStartedWithSTM32F4xxBasedHardwareBoardExample\blink_ert_rtw>cd . C:\Users\German\Documents\MATLAB\Examples\R2021b\stm32f4discovery\GettingStartedWithSTM32F4xxBasedHardwareBoardExample\blink_ert_rtw>chcp 1252 Active code page: 1252 C:\Users\German\Documents\MATLAB\Examples\R2021b\stm32f4discovery\GettingStartedWithSTM32F4xxBasedHardwareBoardExample\blink_ert_rtw>if "all" == "" ("D:\MATLAB\bin\win64\gmake" -f blink.mk all ) else ("D:\MATLAB\bin\win64\gmake" -f blink.mk all ) "### Invoking postbuild tool "Binary Converter" ..." "C:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/3P778C~1.INS/GNUARM~1.INS/win/bin/arm-none-eabi-objcopy" -O binary ../blink.elf ../blink.bin "### Done invoking postbuild tool." "### Invoking postbuild tool "Hex Converter" ..." "C:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/3P778C~1.INS/GNUARM~1.INS/win/bin/arm-none-eabi-objcopy" -O ihex ../blink.elf ../blink.hex "### Done invoking postbuild tool." "### Invoking postbuild tool "Executable Size" ..." "C:/PROGRA~3/MATLAB/SUPPOR~1/R2021b/3P778C~1.INS/GNUARM~1.INS/win/bin/arm-none-eabi-size" ../blink.elf text data bss dec hex filename 12572 204 14520 27296 6aa0 ../blink.elf "### Done invoking postbuild tool." "### Successfully generated all binary outputs." C:\Users\German\Documents\MATLAB\Examples\R2021b\stm32f4discovery\GettingStartedWithSTM32F4xxBasedHardwareBoardExample\blink_ert_rtw>exit /B 0 ### Launching openOCD server "C:\ProgramData\MATLAB\SupportPackages\R2021b\3P.instrset\openocd.instrset\GNU MCU Eclipse\OpenOCD\0.10.0-5-20171110-1117\bin\openocd.exe" -f board/stm32f4discovery.cfg: Success ### Open telnet port for communction with openOCD server. ### Reset and halt the processor. ### Erase flash sectors. ### Download the executable C:/Users/German/DOCUME~1/MATLAB/Examples/R2021b/STM32F~1/GETTIN~1/blink.elf: Success ### Reset and run the board. ### Close the server. ### Successful completion of build procedure for: blink
Build process completed successfully
Build Summary
Top model targets built: Model Action Rebuild Reason =============================================================== blink Code compiled Compilation artifacts were out of date. 1 of 1 models built (0 models already up to date) Build duration: 0h 0m 46.864s
1 Comment
Sanath
on 23 Aug 2023
hi, were you able to solve this?
Answers (0)
Categories
Find more on STMicroelectronics Discovery Boards in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!