The main function I got from the demo os is very big, so I split it into some small funcions. I can compile it well, but when I debugged it I met an error '*** error 65: access violation at Y:0x5A0044 : no 'read' permission'. I am quite sure that the chip doesn't have any area addressed as Y:0x5A0044. I don't know why it accesses an illegal address.
Could you please help me with this error? Thanks!