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.
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.
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.
2024-08-19 05:38 AM - edited 2024-08-19 05:42 AM
2024-08-19 06:11 AM
> MPU config is called before SCB_EnableDCache
So move it afterwards as @SofLit suggested.
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.
2024-08-19 08:45 AM
Does the frame was sent ?
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.
2024-08-20 03:08 AM
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.
2024-08-20 03:31 AM
Yes , i'm using the latest version of CubeMx/CubeIDE.
Could the problem be in the board ?