STM32H745 microcontroller getting issue during run time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-17 4:25 AM - edited ‎2023-11-20 7:56 AM
when i will run code on CM4when i run code on CM7
what i am doing wrong ?
- Labels:
-
STM32CubeIDE
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-17 4:30 AM
Debug the situation.
Determine if the stack gets corrupted.
If the cores are trying to use the same memory for different uses.​
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-04-17 4:38 AM
how i can solve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-17 4:38 AM
will you share some reference or screenshort ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-17 10:38 AM
This isn't some paint-by-numbers exercise, you'll need to apply things you learned at programming school..
The error for the CM4 on your first post suggests some of the MCU registers got junk loaded in them, and it crashed at some location outside of your source code. That doesn't mean your code is not at fault, just that it went of the edge of the map.
Figure out *how* it got there. Instrument the code so you understand the flow, and the situation in the system as it crashed.
The location reported currently is eerily similar to this, so perhaps the debugger is involved.
*(uint32_t*)0xE000EDF0=0xA05F0000; //enable interrupts in debug
The H7 has RAM both cores can share, make sure you're using different sections of it for stack, heap and statics, so they don't interfere with each other's operation. Check the .MAP files, check the .LD linker scripts for where it's putting things, and have some basic comprehension of the floor-plan to recognize what might conflict.
Perhaps have a serial / uart set aside for each core so you can understand, in realtime, what each is doing, and where in your code/logic it is.
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-04-17 8:57 PM
kindly share the stm32-745 programming school link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-17 10:52 PM
please guide properly ,something is issue ether in microcontroller or stn32ide.i have no experiene about multi cortex microcontroller,as i searched this is the issue of boot0 /. but i am not getting solution ,please guide me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-17 11:46 PM
please guide praticle not theorticle @Community member​
