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?
2023-11-03 11:47 PM
would you check my code again?
the array has been fixed but problem not solved yet!
2023-11-03 11:53 PM
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.
2023-11-04 12:28 AM
in highlighted line we have fault
2023-11-04 01:13 AM - edited 2023-11-04 01: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.
2023-11-04 01: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?