2024-11-06 11:25 PM
I have an External Loader Project made for STM32G0/G4/L4.
I ported it to STM32U5: all the functions work fine when debugged from STM32CubeIDE (so the connections are ok). With the STM32CubeProgrammer the .stldr file is recognized but the Read/Write/SectoreErase operations fails due to "Init Function fail".
Any suggestion will be appreciated!
2024-11-07 04:15 AM
Hello @GiBi_01 ,
Which CubeProgrammer version used ?
Make sure to use the latest STM32CubeProgrammer release v2.17.0.
If the problem persists, please attach your option bytes configuration.
2025-02-05 02:16 PM
Hi, I have same problem, did you solved?
2025-02-05 07:25 PM
The Init() function returning zero is the failure condition.
Your log, and that of the OP, show it returning, not timing out.
You can confirm the PC entry point for Init using objcopy or objdump
2025-02-06 01:03 AM
Hi all.
Upgrading the STM32CubeProgrammer to v2.17 we found that the issue was related to the size of the ExternalLoader.
We fixed it in this way:
2025-02-06 04:17 AM
Can you show a template of this modified linker?
2025-02-06 05:20 AM