PN7462AU examples unable to be built in MCUXpresso

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

PN7462AU examples unable to be built in MCUXpresso

794 次查看
teyenwu
Contributor I

Hello,

I followed the UM10883 instruction to import latest PN7462AU FW and SW examples (SW368330) into MCUXpresso v11.5. However, I found lots of missing references after the import and most project files cannot be found or linked into. Although I tried to link everything manually, all example projects are still unable to be built successfully. Is there any idea to build the latest example in MCUXpresso for PN7462AU? Now, I have to use the older version (SW368330, v5.12) to build the project but I am not sure if it works well with latest PNEV7462C.

0 项奖励
回复
2 回复数

545 次查看
DebianFan
Contributor I

Hi Daniel,


thank you for your hint on importing the PN7462AU FW and SW examples. This worked for me with MCUXpresso IDE v11.8.1 and SW368434 package.

When debugging the examples, I have always two annoying problems:

1. On starting a Debug session, MCUxpresso always rebuilds the project. Even if nothing has been changed since last build.
2. Flashing the target (PNEV7262C) always fails with error message on status line (bottom of IDE): 'Target error from Commit Flash write Ep(08). Cannot access core regs when target running. Two error windows pop up:

 

Screenshot 2023-12-07 142848.pngScreenshot 2023-12-07 142936.png

The only way to flash I've found so far is restoring the original App (flash contents of the PN7462AUHN in delivery state of PNEV7262C) directly via USB to the PNEV7462C and then flash my application with LPC Link2 Board.

Do you have an idea how to circumvent it?

Thanks & best regards

Michael

Console output:

 

MCUXpresso IDE RedlinkMulti Driver v11.8 (Oct 24 2023 18:10:03 - crt_emu_cm_redlink build 9)

Found part description in XML file PN74xxAU.xml

Reconnected to existing LinkServer process.

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

DpID = 0BB11477

APID = 0x04770021

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

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

Serial Number: FTCSDWOR

VID:PID: 1FC9:0090

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

Using memory from core 0 after searching for a good core

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: PN7462AU-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

Awaiting telnet connection to port 3330 ...

GDB nonstop mode enabled

FreeRTOS stack backtrace is disabled

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)

Writing 132484 bytes to address 0x00203000 in Flash

00204000 done 3% (4096 out of 132484)

00205000 done 6% (8192 out of 132484)

00206000 done 9% (12288 out of 132484)

00207000 done 12% (16384 out of 132484)

00208000 done 15% (20480 out of 132484)

00209000 done 18% (24576 out of 132484)

0020A000 done 21% (28672 out of 132484)

0020B000 done 24% (32768 out of 132484)

0020C000 done 27% (36864 out of 132484)

0020D000 done 30% (40960 out of 132484)

0020E000 done 34% (45056 out of 132484)

0020F000 done 37% (49152 out of 132484)

00210000 done 40% (53248 out of 132484)

00211000 done 43% (57344 out of 132484)

00212000 done 46% (61440 out of 132484)

00213000 done 49% (65536 out of 132484)

00214000 done 52% (69632 out of 132484)

00215000 done 55% (73728 out of 132484)

00216000 done 58% (77824 out of 132484)

00217000 done 61% (81920 out of 132484)

00218000 done 64% (86016 out of 132484)

00219000 done 68% (90112 out of 132484)

0021A000 done 71% (94208 out of 132484)

0021B000 done 74% (98304 out of 132484)

0021C000 done 77% (102400 out of 132484)

0021D000 done 80% (106496 out of 132484)

0021E000 done 83% (110592 out of 132484)

0021F000 done 86% (114688 out of 132484)

00220000 done 89% (118784 out of 132484)

00221000 done 92% (122880 out of 132484)

00222000 done 95% (126976 out of 132484)

00223000 done 98% (131072 out of 132484)

Erased/Wrote sector 0-64 with 132484 bytes in 3511msec

Closing flash driver PN7xxxxx_158k.cfx

Flash Write Done

Flash Program Summary: 132484 bytes in 3.51 seconds (36.85 KB/sec)

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

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

following reset read of core registers failed - Ep(08). Cannot access core regs when target running.

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

GDB stub (C:\nxp\MCUXpressoIDE_11.8.1_1197\ide\plugins\com.nxp.mcuxpresso.tools.bin.win32_11.8.1.202310241620\binaries\crt_emu_cm_redlink) terminating - GDB protocol problem: Pipe has been closed by GDB.

 

0 项奖励
回复

786 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi @teyenwu :

Yes, the UM10833 should be updated.

I would you use the latest package, latest IDE version.

Pay attention to the following tips.

1.  please unzip the package, and import from root directory rather than zip archive.

danielchen_0-1656036782498.png

 

2.   please uncheck "copy projects into workspace"

danielchen_2-1656038260619.png

 

Then you can compile demos , for example, PN7462AU_ex_phExCcid_mcux

Regards

Daniel

 

标记 (2)