PN7362 Flash erase Fail...

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PN7362 Flash erase Fail...

503 Views
JY2
Contributor I

Hello,

 

I'm using a PN7362 chip.

Flash address has not been erased since it was entered incorrectly.
The board works fine, but does not erase and write.
The download tool is using LPC-Link2.
This is the error related message below.

Is there any way to solve this?
In the case of eeprom, data is erased and written well.
Please let me know if there is any other way to try other than replacing the chip. Thank you.

 

Executing flash operation 'Erase' (Erase flash) - Thu Oct 26 17:37:18 KST 2023

Checking MCU info...

Scanning for targets...

Executing flash action...

MCUXpresso IDE RedlinkMulti Driver v11.8 (Jul 12 2023 16:09:15 - crt_emu_cm_redlink.exe build 2)

( 0) Reading remote configuration

Wc(03). No cache support.

Found chip XML file in C:/workspace/NXP/firmware/231025/ExamplesPN7462AU/phExDoorAccess/mcux/ReleasePN7462AU\PN7362AU-C3-00.xml

( 5) Remote configuration complete

Reconnected to existing LinkServer process.

============= SCRIPT: PN7xxxxx_Connect.scp =============

DpID = 0BB11477

APID = 0x04770021

============= END SCRIPT ===============================

Probe Firmware: LPC-LINK2 CMSIS-DAP V5.460 (NXP Semiconductors)

Serial Number: FTCSIWIS

VID:PID: 1FC9:0090

USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#8&29e4aef1&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}

Using memory from core 0 after searching for a good core

( 30) Emulator Connected

( 40) Debug Halt

( 50) CPU ID

debug interface type = CoreSight DP (DAP DP ID 0BB11477) over SWD TAP 0

processor type = Cortex-M0 (CPU ID 00000C20) on DAP AP 0

number of h/w breakpoints = 4

number of flash patches = 0

number of h/w watchpoints = 2

Probe(0): Connected&Reset. DpID: 0BB11477. CpuID: 00000C20. Info: <None>

Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.

Content of CoreSight Debug ROM(s):

RBASE E00FF000: CID B105100D PID 04000BB471 ROM (type 0x1)

ROM 1 E000E000: CID B105E00D PID 04000BB008 Gen SCS (type 0x0)

ROM 1 E0001000: CID B105E00D PID 04000BB00A Gen DWT (type 0x0)

ROM 1 E0002000: CID B105E00D PID 04000BB00B Gen FPB (type 0x0)

NXP: PN7362AU-C3-00

DAP stride is 1024 bytes (256 words)

Inspected v.2 On-chip Flash Memory PN7xxxxx_158k.cfx

Image 'PN7xxxxx_158k Mar 8 2016 16:35:06'

( 65) Chip Setup Complete

Connected: was_reset=true. was_stopped=false

( 70) License Check Complete

Opening flash driver PN7xxxxx_158k.cfx

VECTRESET requested, but not supported on ARMv6-M CPUs. Using SOFTRESET instead.

Using SOFT reset to run the flash driver

Flash device supported (158KB = 79*2K at 0x203000)

Mass Erase flash at 0x203000

driver "EraseChip" timeout (5000 ms) PC: 00203150

Closing flash driver PN7xxxxx_158k.cfx

Failed to erase flash: Ec: Flash driver "EraseChip" timeout (5000 ms) PC: 00203150

(100) Target Connection Failed

Unable to perform operation!

Command failed with exit code 1

 

0 Kudos
5 Replies

494 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @JY2,

I hope you are doing well!

Is the board you are using a custom design?

Have you successfully programmed the chip with another example?

From the log I see you are already utilizing MCUXpresso with the SW3683 (ExamplesPN7462AU), is this v06.10.00?

Before testing anything else, please help me looking into UM10883 (PN7462 family Quick Start Guide - Development Kit), chapter 8 (Managing the PN7462 family SW projects with MCUXpresso IDE) and make sure to follow the instructions for installation and importing projects.

Best regards,
Julián

0 Kudos

481 Views
JY2
Contributor I

Hi, @Julián_AragónM 

 

Custom board using PN7362 chip. The example uses the recently updated phExDoorAccess.
Previously, it worked fine, but the test attempted to enter data directly into the 0x0022AFF number in flash memory and encountered a problem.
Other custom boards will be read/write normally. The error only occurs on the board where the problem occurred. In case of EEPROM, erase and write will proceed normally, but in case of Flash, erase and write will not work.
I think it will be solved if I can erase the data in the flash area of the chip.
The development tool is using MCUXPresso. Why can't I use this tool to erase the Flash on my chip?
I don't know if I touched the wrong area... We checked with Debug and there was no data in that area.
How do I erase the contents of the chip?
I look forward to hearing from you. Thank you.

0 Kudos

450 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @JY2,

Firstly, could you provide a log of the error that was prompted when attempting to enter data directly into flash? And what was written?

The memory distribution of the flash is based on the variant, for example (from UM10913

  • For 80 k variants, user flash start: 0x00203000, user flash end: 0x00216FFF.
  • For 154 k variants, user flash start: 0x00203000, user flash end: 0x002297FF.
  • For 158 k variants, user flash start: 0x00203000, user flash end: 0x0022A7FF.

There is also 2KB reserved from the flash memory which is described in the datasheet, in chapter 8.2.1.1 (Memory mapping), which may be the cause of the problem encountered.

As for the MCUXpresso tool, could you please help me testing if the GUI Flash Tool allows for erasing the flash on the other PN7362 chips? 

Best regards,
Julián

0 Kudos

437 Views
JY2
Contributor I

@Julián_AragónM 

 

As far as I remember, I tried to write before the reserved area 0x0022A7FF, but I entered the wrong address value, which may have caused this problem.
Using the GUI tool, you can read and write data from other chips without any problems. However, write, erase, and debug modes do not work on the chip I entered incorrectly. The console displays "Failed to erase flash: Ec: Flash driver "EraseChip" timeout (5000 ms) PC: 00203150" in the same way with three flash drivers.

Currently, the board I have configured has removed areas related to USB connections. Is there a separate way for me to erase and write the data in the flash area of this chip when only SWD is available??
When I try using the GUI tool, the error I created for the first time continues to occur. I was wondering if there is a way to recover this chip using LPC-Link2.

0 Kudos

420 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @JY2,

Please help me looking into this community post: 

Flashing PN7462 over SWD using command line - NXP Community

Best regards,
Julián 

0 Kudos