Hi,
I have been troubled in debugging NGX 4330 explore board. Whenever I start to debug sample program (Periph_blinky), it doesn't stop at main routine. Run - Resume command becomes in gray and not available. I push suspend button, the error "15: Target error from Read Memory" is displayed.
It happens with 2_20 sample projects, but doesn't happen with 3_01 sample projects. I found Periph_blinky in 3_01 projects debugging function work well. But I want to use a USB host sample project, which is included in 2_20 projects but not in newest release 3_01.
I'd appreciate if somebody could advice me.
Environment: LPCXpresso v8.2.2 [Build 650] [2016-09-09]
Sample Projects: lpcopen_3_01_lpcxpresso_ngx_xplorer_4330.zip
lpcopen_2_20_lpcxpresso_ngx_xplorer_4330.zip
Problem
I Cannot debug Periph_blinky in 2_20 projects. the error "15: Target error from Read Memory" is displayed.
But 3_01 Periph_blinky has no problem, I can debug it.
Timeline
(1)Imported lpcopen_3_01_lpcxpresso_ngx_xplorer_4330.zip
(2)Changed memory setting of "Periph_blinky" property according to NGX 4330 Explorer manual, because LPC4330 dosn't have internal FLASH ROM.
(3)Tried to debug "Periph_blinky", I found it worked.
(4)made new work space and changed work space to the new one.
(5)Imported lpcopen_2_20_lpcxpresso_ngx_xplorer_4330.zip into new work space.
(6)Made same memory setting as I did in 3_01 project.
(7)Tried to debug "Periph_blinky", I found it didn't work. It didn't stop at program start point, and Run-Resume command was not available. I pushed Suspend button, the error "15: Target error from Read Memory" is displayed.
(8)Memory mapping I set is below;
<info flash_driver='LPC18_43_SPIFI_32MB_256KB.cfx'>
<chip>
<memory id='Flash' type='Flash' is_ro='true' can_program='true'></memory>
<memory id='RAM' type='RAM'></memory>
<memoryInstance id='SPIFI' derived_from='Flash' location='0x14000000' size='0x40000' edited='true' />
<memoryInstance id='RamLoc128' derived_from='RAM' location='0x10000000' size='0x20000' edited='true' />
<memoryInstance id='RamLoc72' derived_from='RAM' location='0x10080000' size='0x12000' edited='true' />
<memoryInstance id='RamAHB32' derived_from='RAM' location='0x20000000' size='0x8000' edited='true' />
<memoryInstance id='RamAHB16' derived_from='RAM' location='0x20008000' size='0x4000' edited='true' />
<memoryInstance id='RamAHB_ETB16' derived_from='RAM' location='0x2000c000' size='0x4000' edited='true' />
</chip>
</info>
I found when problem happened, value in memory area (from 0x14000000, 0x10000000, etc.) were all "?????.." in memory widows.
Thanks,
Yasushi Aoyama