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
I suspect you have the wrong flash driver selected for the actual flash memory (and size) fitted on the board. Try selecting the flash driver "LPC18_43_SPIFI_GENERIC.cfx" instead , as described in LPC18xx / LPC43xx SPIFI Flash Drivers
You might also want to try the v2.19 LPCOpen package that ships with LPCXpresso IDE (inside the Examples subdirectory of the product install).
Regards,
LPCXpresso Support
Thanks for your advice.
The first driver I tried was "LPC18_43_SPIFI_GENERIC.cfx", but it din't work in neither 03_01 nor 02_20 projects.
Then I tried 'LPC18_43_SPIFI_32MB_256KB.cfx' and found it works in 03_01 but not in 02_20. Sorry I din't write it.
My interesting project is "lpcusblib_MassStorageHost". Yesterday I tried to import the project into 03_01 project tree and was able to make it available. So the issue became not urgent.
But I still am interesting why I cannot use 02_20 sample trees with my NGX 4330 explorer board.
Regards,
Yasushi Aoyama