Re: [Openocd-development] [Openocd-developmemt] SYSMEMREMAP of LPC1100 and LPC1300

2010-08-23 Thread simon qian
> UM10360.pdf, Chapter 33.6.1: Memory Mapping Control register > Short: MEMMAP Address 0x400FC040 Bit 0: > 0 = Boot ROM at address 0 > 1 = Flash memory at address 0 Thank you, I have fixed the problem in vprog. For LPC1700 and LPC1100/LPC1300, the mapping control register is different. -- Best

Re: [Openocd-development] [Openocd-developmemt] SYSMEMREMAP of LPC1100 and LPC1300

2010-08-21 Thread Jörg Fischer
Hi, simon qian schrieb: > For LPC1100 and LPC1300, if the checksum of the vectors is invalid, > SYSMEMREMAP will not be set to Flash Mode, so the first sector of the > flash address is not mapped to flash. SYSMEMREMAP should be written > to Flash Mode, which is '2'. > For LPC1700, I haven't found

[Openocd-development] [Openocd-developmemt] SYSMEMREMAP of LPC1100 and LPC1300

2010-08-20 Thread simon qian
Feedback from user of Versaloon: > If Versaloon reads first sector of FLASH memory from LPC13xx, either with > vsprog or openocd, it often gets a 16kB BOOT ROM contents instead. The > solution is to write "2" into register at address 0x40048000, then the > contents are read well. Otherwise, the mem