2022-09-12 11:01 PM
Hi there,
it seems that STM32CubeProgrammer (Version 2.6.0) is using the program load header information to flash the system, while the STM32CubeIDE (Version 1.8.0) is using the section information. Since the initialize data section is not part of that section information, this is missing in the size and the correct length is in the program header information.
My problem is, that I cannot flash and debug the program while using the CubeIDE. Is it possible that the CubeIDE is using the program load header information instead of the section information?
Kind regards
Bastian
2022-09-12 11:35 PM
2.6.0 is pretty old not sure you'll get much interest in that and how it's ELF parser works.
The sections should be somewhat duplicative of the data described in the program header.
Perhaps dump with objcopy or fromelf tools.
2022-09-19 04:56 AM
@Bastian Mämecke,
Do you have procedure we can use internally to re-produce this issue? Which MCU/board?
2022-09-19 06:36 AM
A file illustrating this disconnect between program header and section table, along with respective linker script would be a good opening move..
2022-09-19 10:26 PM
Hey there,
sorry for the late response.
What I have done, is to manipultate the .elf file, so that the program header and the section table have the same length.
But Im looking to give the IDE an command at the beginning of the Debug session that the session is using the program header instead of the section.
2022-09-19 10:28 PM
We are using the STM32L4R5.
What do you mean by linker script?
2022-09-20 01:11 AM
The .LD file the Linker uses to construct the image.
2022-09-20 01:20 AM
You'll likely need to reconstruct both to be internally consistent so the loader code can work with them as provided.
I'm not aware of any debug script or method to alter the loading mechanics.
2022-09-20 01:29 AM
Perhaps generate a .HEX file describing what is written where.