Endless Loop when running SCB_EnableDCache()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-19 04:36 AM - last edited on ‎2024-08-19 04:43 AM by Peter BENSCH
I'm using stm32H750B-DK and i'm trying to send a frame via LIN protocole every one second .
but when i run the code nothing happen .
when debugging i found that the code blocked in an endless loop in SCB_EnableDCache() function
Solved! Go to Solution.
- Labels:
-
STM32H7 Series
-
UART-USART
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-19 08:29 AM - edited ‎2024-08-22 03:20 AM
Thank you for sharing your project but I didn't reproduce the issue and the application passed SCB_EnableDCache() step and I see this screen (stepped over SCB_EnableDCache():(
Your project is running well in debug and in standalone.
Try maybe to use the latest tools CubeMx/CubeIDE and clean/rebuild your project.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-19 04:59 AM - edited ‎2024-08-19 05:00 AM
Hello @Oussama_Baklouti and welcome to the community.
Where did you call SCB_EnableDCache()? before MPU config? if yes, need to move the call after the MPU config.
Could you please share your code? you attached a rar containing only .cprojet file!
Please attach your complete projet.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-19 05:38 AM - edited ‎2024-08-19 05:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-19 06:11 AM
> MPU config is called before SCB_EnableDCache
So move it afterwards as @mÆŽALLEm suggested.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-19 08:29 AM - edited ‎2024-08-22 03:20 AM
Thank you for sharing your project but I didn't reproduce the issue and the application passed SCB_EnableDCache() step and I see this screen (stepped over SCB_EnableDCache():(
Your project is running well in debug and in standalone.
Try maybe to use the latest tools CubeMx/CubeIDE and clean/rebuild your project.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-19 08:45 AM
Does the frame was sent ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-19 08:51 AM - edited ‎2024-08-19 08:51 AM
Which frame?
Your problem was: "when debugging i found that the code blocked in an endless loop in SCB_EnableDCache() function"
So the issue was that your application was not even passing the first two lines in the main.
Did you already solve that issue or not? or it's a new one? if yes please close that thread and create a new one with a new description.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-20 03:08 AM
The problem isn't solved ,the code blocked in an endless loop in SCB_EnableDCache() function .And while debugging this is what happen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-20 03:18 AM - edited ‎2024-08-20 03:21 AM
As suggested, did you try to use the latest version of the tools: CubeMx/CubeIDE?
Do you have another board to run the same test?
As I didn't reproduce the issue, the issue is not in the code itself.
In any case, I'm attaching the project I used for the test.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-20 03:31 AM
Yes , i'm using the latest version of CubeMx/CubeIDE.
Could the problem be in the board ?
