SparkFun Forums 

Where electronics enthusiasts find answers.

Everything ARM and LPC
By gahelton
#159774
After figuring out how to write a constant table to a fixed location (page) in flash, I now wanted to erase this page, and verify that it was erased. The constant table was compliled, linked, and uploaded into flash using the IDE. I verified that the constant table as loaded into the correct location using the "Memory" display window. The FlashPageErase function was run, and the memory contents was examined again (expecting to see "FF" in all page locations. However, there was no change to the memory display contents. I turned on live update, tried refreshing the window, scrolling, etc to see if the memory display would update - but no change. The memory did not seem to be erased.

However, when I exited the debug session, and read the memory with J-Link Commander, this flash page WAS erased.

Does anyone know why the memory window didn't update ? Isn't the JTAG/SWD interface supposed to read the "real" memory of the device, and not some psuedo copy ?

Thanks