Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems in Release [solved]
#4
I solved my problems. It was caused by a modification that I did:
Since I was trying to debug the boot loader I was experiencing a reset every time a rcall was executed.
I noticed that the SPLIM reg was set at 0x084E while the W15 was at 0x0920 so the stack error trap was triggered but unhandled and the device resetted.
To avoid this I manually defined the __SP_init constant to 0x0800 and so it worked in debug but it wasn't working in release mode.
Removing my definition was the solution: it started working flawlessly.
I found the solution in MPLAB LINK30 manual in section 9.5.4.7 MPLAB ICD 2 DEBUGGER MEMORY where is says that for ICD2 ther will be 0x50 bytes reserved starting from 0x800. I guess that since I'm using ICD3 it requires 0x120 bytes insetead.

Thank you very much for your help.
Reply


Messages In This Thread
Problems in Release [solved] - by dainesesrl - 2012-09-19, 18:27:57
RE: Problems in Release - by Mikael Gustavsson - 2012-09-19, 22:33:15
RE: Problems in Release - by dainesesrl - 2012-09-20, 10:04:43
RE: Problems in Release - by dainesesrl - 2012-09-20, 11:09:44
RE: Problems in Release - by Mikael Gustavsson - 2012-09-21, 20:18:08

Forum Jump:


Users browsing this thread: 1 Guest(s)