Hi,
I am using the lpc4370 processor with the Link-2 debug probe. I am trying to create a dual-core application using the M4 and M0APP. I keep getting hard faults at certain parts of the code. Every time I change part of the code the fault happens at a different function however, the address where the hard fault happens is always the same. This is at 0x10088010.
These are the memory blocks that the M0 uses:
Could the hard fault mean that I am trying to access the memory that is not available? Does this mean that the RAM is too small to hold the program? When building it shows that 92% of the RAM is being used. I thought that this means that it should be just enough but I’m not sure if more memory is taken up when debugging. The debugging is fine when I put the application in bigger RAM and configure it as an M4 application.
Should I ditch the Idea of trying to use this RAM? The only larger RAM of the processor needs to be used by my M4.
Could the hard fault be another issue?
Hard fault:
While I have no real experience with the LPC4370, the call trace looks like the fault happening in an invoked handler.
More probably, an invoked interrupt/fault handler which is not implemented.
Which causes escalation to a hardfault.
Hello @smarty760
There is multiple core project under lpcopen, you can have a look:
And debug multiple core project on MCUXpresso IDE, you can refer to:
https://community.nxp.com/t5/LPC-FAQs/How-to-run-Multicore-examples-provided-in-LPCOpen-LPC43xx/m-p/...
https://community.nxp.com/t5/LPC-Microcontrollers/Which-IDE-to-be-used-for-debugging-LPC4367/m-p/871... (pay attention the reply from LPCX presso support)
BR
Alice