Hi Experts,
I need your help...
Actually i am work on a multicore controller, the master core loads the application for the slave core(cortex M4)..
Now when the slave core starts, it executes c_int00 (boot file) and from there it will jump to main application..
The problem is, after rebooting the board multiple times, at some point the control is not jumping to main application,
and instead stays in an infinite loop in the boot file.
Could you please help me to sort this issue...
What could be the reason for such behavior ?
Thanks and Regards
ZbinAhmed
There are plenty of reasons. You should connect a debugger and find out where it is stuck. And if no debugger then use GPIOs or printf().
Thanks for replying,
The behavior is very strange, when i reset my device
- one time control stays in boot and doesn't jump to main app (PC is having the address of the infinite loop in the boot file).
- or It jumps to main application and stops unexpectedly, when i check PC using debugger i see some unknown address and hard fault is getting generated.The value of BFSR = 0x01 and UFSR=0x02. Means, hard fault is generated for accessing some invalid address.
- or the board boots, jump to main application and runs without any error.
I tried with minimal application code.
I need help to understand the cause of HF. And the HF is getting generated randomly when i reset the device.
Thanks in Advance.
Do you really restart the board (power-cycle)? Or just reload? If the latter, there might be some interrupts pending.
A HF happens when you have an exception while another exception is handled.
I do use either reset button or power cycle the board.
Which SoC exactly, which core(s) besides M4 - one that loads M4 code - and, what's the bootloader that is loading your M4 code.