Debug problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-21 5:11 PM
Hi, I have a problem where I cannot debug my code bcs of this error. Anyone know how to solve these problem?
btw im using the STM32H750VBT6x for MCU and ST-LINK V2
- Labels:
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-21 5:18 PM
This often means that the debugger cannot fit the program into the target memory.
STM32H750 has only 128 of internal flash. Is your program too big?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-21 5:22 PM
No, Im just try to debug the simple basic program like "Hello World" using serial debug only. So, what is possible mistake that I have make?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-22 4:57 PM
Check the link script, are the memory regions defined correctly? Is the initial stack address correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-22 5:07 PM
Sorry but where is the link script? You mean the c code? sorry im still new to stm32 environment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-23 1:21 PM
The link script is the .ld file. You can find its complete name in Linker settings.
C/C++ build->Settings->Tool settings->MCU GCC linker->General
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-23 4:23 PM
This is the setting. So, where do i need to change?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-23 4:34 PM
I think Pavel was suggesting you review/inspect the .LD file and confirm that the FLASH size was clearly reflected.
This looks more like some connectivity issue with the GDB side and the debugger.
It frustrates me that this whole thing is so fragile and the reporting vague and non-specific. This is something ST could clean up and save so much forum noise.
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
‎2022-11-23 4:45 PM
ya i do understand that Pavel ask me to review the .ld file. But I didn't found where is the .ld file. I follow the Pavel instruction to find in the linker setting but that all in linker setting. I have been stuck at this debugger problem almost a week. waste so much time already.
