STM32CubeIDE - how to integrate LdMicro (by AndreiAd)
Hi guys,
I have installed STM2CubeIDE from ST official website, and i am trying to program a STM32F4Discovery dev board (STM32F407) using LdMicro. I have read he howToArm instructions, but, unfortunately, i still can't seem to have figured it out. Could you please give me some monkey-like instructions for it?
In flashMcu.bat, i changed the first line to the following, but for the other two lines, i don't know what should be set:
SET GCC_PATH=C:\ST\STM32CubeIDE_1.0.1\STM32CubeIDE
SET JLN_PATH=C:\Program Files\SEGGER\JLink_V502j
SET STL_PATH=C:\Program Files\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility
Thank you so much,
Andrei.
(no subject) (by José GILLES)
I have a STM32F4-Discovery board with a STM32F407
Not tested yet with ldmicro but it should work with:
- an armgcc compiler
- St-Link utility
I don't use STM32Cube, but I think your GCC_PATH in FlashMcu.bat is not good: it must point to a directory containing a "bin"subdirectory in which executables lie
JLN_PATH is useless here (made for Segger JLink)
STL_PATH must point to your St-Link Utility install directory
But by default, FlashMCU.bat uses JLink utility to flash the target in STM32F4 part =>
You must remove all JLink instructions and replace them by St-Link instruction (as in STM32F1 part):
ST-LINK_CLI.exe -c SWD -P ARMGCC\bin\%~nx2.hex -V "after_programming" -Run
I'll try it when I have time...
JG