Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

Code Flash Erase Issue

$
0
0

I am using the S7G2-DK board.

I just added some code to my project using the r_flash_hp Synergy driver.  My first step was to test erasing a block of code flash that I am not currently using for my code so I chose the 32KB block located at address 0x00100000.  The g_flash_hp.p_api->open() and the g_flash_hp.p_api->accessWindowSet() both returned SSP_SUCCESS.  However the g_flash_hp.p_api->erase() caused a breakpoint at address 0xfffffffe.

In the process of attempting to debug this issue, I noticed that the code flash was no longer being written by the J-Link debugger.  Even if I remove power from the PCB and then plug it back in, the J-Link fails to write to the flash.

If I manually used the Windows J-Link utility "J-Link Commander" I can successfully connect to the MCU, but when I try the "erase" command I get the following result: "************ Error: Failed to erase sectors 0 @ address 0x0000000 (erase error)".  Note that this method to erase the flash previously worked.

So it appears that somehow the code flash on my PCB in now in a state where it cannot be erased.

Any ideas?

Thanks, Jeff


Viewing all articles
Browse latest Browse all 5781

Trending Articles