stm32f4 hardfault
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-21 10:43 PM
hi
I use stm32f4 micro but an external interrupt pin
when i increase frequency of the external signal connected to interrupt pin, the micro jump to hardfault
why? how I can detect the solution?
- Labels:
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-03 11:47 PM
would you check my code again?
the array has been fixed but problem not solved yet!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-03 11:53 PM
the new code is here!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-04 12:10 AM
It is not that difficult to detect hardware fault, you keep putting break point after each line and run the code, at one particular line you will get hardware fault. You need to look into that function, need patience to test each line of code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-04 12:28 AM
in highlighted line we have fault
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-04 1:13 AM - edited ‎2023-11-04 1:15 AM
You still have uint8_t temp_[60000]; defined in your code. Can you remove it?
#define BUFFER_SIZE 60000 this is also very large.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-04 1:24 AM
It is my important array
what is the problem with this array?
the SRAM is about 190KB and this array is 60KB
what is the wrong with it?

- « Previous
- Next »