So I'm using an LPC804 with a slightly adjusted version of the SBL as of AN12378. The SBL executes correctly and switches to another Program. This program is basically used for IAP via SPI.
However the slave never leaves the loop waiting for the finish of the Data Transfer. ALTHOUGH the loop condition is FALSE after the transmission finishes. I have actually no idea why the chip is behaving like this...
Solved! Go to Solution.
The variable, slaveActive, I assume that is being set by an interrupt routine ?
Make sure that slaveActive is defined as being "volatile", otherwise the while loop will not read it from actual memory (but rather keep it in a register...)
The variable, slaveActive, I assume that is being set by an interrupt routine ?
Make sure that slaveActive is defined as being "volatile", otherwise the while loop will not read it from actual memory (but rather keep it in a register...)
Wow, I had many different problems besides this one, also tried using volatile before, but obviously not in the same constellation... and then such a simple change fixes all of my problems at once..
Thanks..