I programmed an SL6087 with my program and I repeatedly get this exception in the traces:
So I checked the Memory Access View in Developer studio to find what function lies at 0x341F00. It appears to be the function wm_lstGetCount wich starts at address 0x00341EF6 and is 22 bytes long.
Then I commented this line in my code:
u16 cellCount = wm_lstGetCount(cellList);
I recompile, download and the exception no longer occurs.
What could be the cause of this exception? Am I doing something wrong?
Update:
I have defined an A&D area size, which was missing on the new CPU (I guess since it is no longer recommended to use A&D but rather the newer Filesystem). Anway, since this is legacy code it is using A&D storage.
Now I get a different exception though! I narrowed the cause down to this line of code: