Content originally posted in LPCWare by bjorn1989 on Thu Oct 17 08:12:29 MST 2013
Thanks Bavarian, I did reset the M0 at startup.
I'm now using the follow method to debug and that works for me.
1) Rebuild M0 project
2) Reload the M0 image.c in to the M4 project ( by clicking YES)
3) Rebuild M4 project
4) Load flash
5) Start debug M4
6) Start debug M0
7) Run M4 (initialize the board & reset / starts the M0)
8) Run M0
I'm using the M4 only for initialize, the program is running on the M0.
I don't know if this is the right method to do.
I'm using the following Memory settings
M0
IROM1 Start 0x0 Size 0x8000, IRAM1 Start 0x8000 Size 0x4000
M4
IROM1 Start 0x1A000000 Size 0x80000 IRAM1 start 0x10000000 Size 0x8000
I'm now busy to buffer the I2S, so we can process the audio.
I have a Circular buffer with a input buffer and an output buffer with the size of 2048(uint16_t) (when I use this size he gives a Hard Fault) When I use 1024(uint16_t) buffer size He run's for a couple of rounds but give also a Hard fault.
I think that the problem is that I did program an application that what to write data over some core memory space. How can I program this that this not happens.
If someone what's some code, just ask than I put some online.
Kindly thanks!