PN7462 Flash write problem

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

PN7462 Flash write problem

Jump to solution
1,280 Views
huang_hw
Contributor II

I have previously successfully downloaded (and Flashed) and run the "PN7462AU_ex_phExMain" example on the 

OM27462CDK development kit.

I have a simple board with the same PN7462 with SWD interface. It seem to be able to download the firmware but "flashing it" cause error.

QUESTION: 

1. Is there anything else that needs to be configured (besides writing " user_ee.bin" onto EEPROM at locations 0x201200 which I have already done) on a PN7462

2. What part of the hardware/configuration is likely to be "faulty".

Below is the detailed message when trying to download/flash and run the example:

(Window with title: Error reported by target)

15: Target error from Commit Flash write

Cannot access core regs when target runnng.

(in another window  with title: Problem Occured)

'Launching xxx(some config name) encountered a problem.

Error in final launch sequence.

(under details)

Error in final launch sequence

   Failed to execute MI command:

        -target-download

Error message from debugger back end:

Error finishing flash operation

Error finishing flash operation

Console window:

,,,,

Opening flash driver PN7xxxxx_158.cfx

Sending SYSRESETREQ to run flash driver

Writing 148676 bytes to address 0x00203000 in Flash

Erased/Wrote page 0-72 with 148676 bytes in 3470msec

Closing flash driver PN7xxxxx_158.cfx

Flash Write Done

Flash Program Summary: 148676 bytes in 3.47 seconds (41.84 KB/sec)

============= SCRIPT: PN7xxxxx_Reset.scp=============

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

Target error from Commit Flash write: Ep(08). Cannot access core regs when target running.

GD8 stub (crt_emu_cm_redlink) terminating - GDB protocol problem: Pipe has been closed by GD8

(window clears)

GNU gdb (GNU Tools for ARM Embedded Processors) 7.12.0.20161204-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".

Program stopped.
0xfffffffe in ?? ()
warning: Remote failure reply: E22

Labels (1)
Tags (2)
0 Kudos
1 Solution
906 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Is it the same "PN7462AU_ex_phExMain" to download ? have you tried with other example like "NfcrdlibEx1_BasicDiscoveryLoop"? and what about the version of the NFC reader library? 5.19? and what about the tool for downloading? MCUXpresso?  Please kindly clarify.Thanks for your patience!


Have a great day,
Kan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
906 Views
huang_hw
Contributor II

I just found that the reason is because I am using 3.3V supply (instead of 5V).

If one is using 3.3V, the internal LDOs cannot be used and thus I have to

re-wire some pins. Specifically,

a) PVDD_OUT to GND and PVDD_IN and PVDD_M_IN direct to 3.3V

b) TVDD_IN and TVDD_OUT to 3.3V

After that, the firmware (configuration or source) should be checked that it works with 3.3V instead of 5V.

Hope this helps anyone who happen to be in the similar situation.

Thanks everyone.

0 Kudos
907 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Is it the same "PN7462AU_ex_phExMain" to download ? have you tried with other example like "NfcrdlibEx1_BasicDiscoveryLoop"? and what about the version of the NFC reader library? 5.19? and what about the tool for downloading? MCUXpresso?  Please kindly clarify.Thanks for your patience!


Have a great day,
Kan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos