Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - STM32CubeIDE - how to integrate LdMicro

(you are viewing a thread; or go back to list of threads)

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.
Tue Jul 9 2019, 12:05:47
(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
Wed Jul 10 2019, 04:41:32
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):