Content originally posted in LPCWare by mrhobbles on Sat Nov 19 23:47:35 MST 2011
Quote: CodeRedSupport
Not a paperweight, but not ready for prime time, either. After flashing your part, the bootloader is not going to vector to user flash. If you get creative, you can still debug your code. Open the Peripherals view, and change the SYSMEMREMAP register to user flash. Set this register value equal to 1. If you then change the PC to ResetISR, it should run to main from there, or whereever you set the first breakpoint.
Regards,
CodeRedSupport.
Okay. I thought I could fix it but I'm not able to find the SYSMEMREMAP register. Under the peripheral view I've found the "SYSCTL" peripheral which contains a MEMMAP. MEMMAP's value is 0x01.
The register description sounds similar.
Quote:
Memory Mapping Control register (MEMMAP - 0x400F C040)
The MEMMAP register allows switch the mapping of the bottom of memory, including
default reset and interrupt vectors, between the Boot ROM and the bottom of on-chip
Flash memory.
With it being set to 0x01 it says the address 0 is mapped to onchip flash instead of the boot ROM. So I just need to change the PC to the reset vector, right? How do I do that? :o Under the core registers tab do I put ResetISR in place of an address?
Thanks. Sorry for all the questions.