Content originally posted in LPCWare by gregd on Thu Oct 25 09:10:16 MST 2012
I am not changing anything related to sleep and power-down modes yet.
The IAR IDE shows the following value during normal application execution:
PMC_PD0_SLEEP0_MODE = 0x003FFF7F
I am updating a few CREG values however. Here are my settings while the application is running:
CREG_CREG0 = 0x00000F1C
CREG_M4MEMMAP = 0x1C000000
CREG_CREG1 = 0xFFE44A08
CREG_CREG2 = 0x00000000
CREG_CREG3 = 0x00000001
CREG_CREG4 = 0x00000000
CREG_CREG5 = 0x40000670
CREG_DMAMUX = 0x00000000
CREG_ETBCFG = 0x00000001
CREG_CREG6 = 0x00030000
CREG_M4TXEVENT = 0x00000000
CREG_CHIPID = 0x5906002B
CREG_M0TXEVENT = 0x00000000
CREG_M0APPMEMMAP = 0x10080000
I think I did discover another issue while investigating my reset problem. It is a problem either with the NXP documentation, J-Link firmware or IAR EWARM. When I open the CCU1 register view and then try to step through the application, I start getting errors and have to close the IDE. I narrowed it down to errors when accessing the following two registers: CCU1_CLK_USB0_CFG (0x40051800) and CCU1_CLK_USB0_STAT (0x40051804). If I comment these registers out of the iolpc4350_m4.ddf file then things work ok. These addresses seem to be correct according the users guide but if I access them through the JLink command line, IAR EWARM, or Keil UVision, I start getting errors and have to restart the debug session. I'm not sure if this has anything at all to do with my reset problem but I thought I would report the issue so it can be corrected. I have duplicated the issue using the Hitex A4 board and the simple Gpio_LedBlinky example in the lpc43xx library files so it doesn't seem to be related to our board design.
Thanks,
Greg Dunn