How can i use J-Link Open Flashloader with STM32CubeIDE while debugging?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-03 11:23 PM
Hi, i have a custom board with STM32H750 with qspi flash and want to debug with j-link debugger. Before i used it with st-link and my custom flashloader while debugging. Now i want to write open loader for my project but i didn't see any settings how to add this loader to STM32CubeIDE.
For example, when i select st-link in debug configurations i can select and load my custom external loader under misc section.
Solved! Go to Solution.
- Labels:
-
FlashLoader
-
STM32CubeIDE
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-07 12:47 AM
I have not played with this feature at all. But assuming you have a working Open flashloader you should be able to execute it from inside CubeIDE debug launch flow in two ways:
- Debug config > Debugger > Use J-Link script file
- Or setup an external tools configuration to let J-Flash manage execute your loader before the debug configuration is launched
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-07 12:47 AM
I have not played with this feature at all. But assuming you have a working Open flashloader you should be able to execute it from inside CubeIDE debug launch flow in two ways:
- Debug config > Debugger > Use J-Link script file
- Or setup an external tools configuration to let J-Flash manage execute your loader before the debug configuration is launched
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-01 3:18 AM
Thanks for reply Mattias.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-23 6:08 AM
I have the exact same scenario. @Eralp​ what solution did you end up using?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-23 6:18 AM
Relatively broad and expanding subset of customized .STLDR external loaders for pin and flash combinations.
https://github.com/cturvey/stm32extldr
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-23 6:22 AM
I continue to use which i wrote flashloader for st-link :) As far as i understand it is necessary to use segger's embedded studio for compiling flashloader and i think it uses external configuration file for debugging.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-23 6:36 AM
Using the flashloader for st-link are you able to debug the code on the external flash in CubeIDE?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-23 6:40 AM
That's how External Loaders work, that's how ST programs the QSPI devices on the DISCO and EVAL series boards. You specify the loader within the application settings / options.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-23 6:42 AM
Yes, i do. My problem was trying to do with j-link open flashloader.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-23 6:43 AM
My understanding is that you have to run the STM32CubeProgrammer prior to doing the debugging, correct? It's not possible to program and run debug in one go, like you would do for internal flash.
