Hey!
I've been trying to make the FRDM RW612 work. I was able to flash for a couple of times, until I've connected the Adafruit TFT 2.8 LCD screen on top of the Arduino Header presented in the board, and, after that, I was able to flash a few more times until something went wrong and I couldn't anymore.
I've tried everything at this points:
- Downloaded MCUExpresso, created a default build for the board and tried to flash: failed.
- Downloaded the LinkServer, change from JLink probe to CMSIS, tried to flash: failed.
- Played around with JLink console: I can read and write onto specific addresses, but I can't flash.
I've tried different builds, NXP examples and Zephyr samples (Blinky): does't work.
Here's an example of error message from JLink:
J-Link>loadfile /Users/nunoguterres/Downloads/zephyr.elf 0x18000000
'loadfile': Performing implicit reset & halt of MCU.
ResetTarget() start
Reset via SYSRESETREQ and reset pin + halt after bootloader
ROM entered ISP command handling loop. Re-enable the debug access.
MSPLIM cleared
ResetTarget() end - Took 113ms
Downloading file [/Users/nunoguterres/Downloads/zephyr.elf]...
J-Link: Flash download: Bank 1 @ 0x18000000: 1 range affected (65536 bytes)
J-Link: Flash download: Total: 0.648s (Prepare: 0.165s, Compare: 0.150s, Erase: 0.004s, Program: 0.145s, Verify: 0.107s, Restore: 0.075s)
J-Link: Flash download: Program speed: 440 KB/s
****** Error: Verification failed @ address 0x18000000
Error while programming flash: Verify failed.
And here is the example of a connection to JLink:
JLinkExe -Device RW612 -speed 4000 -if swd
SEGGER J-Link Commander V8.10 (Compiled Sep 25 2024 14:15:06)
DLL version V8.10, compiled Sep 25 2024 14:14:53
Connecting to J-Link via USB...O.K.
Firmware: J-Link MCU-Link V1 compiled Sep 24 2024 10:57:33
Hardware version: V1.00
J-Link uptime (since boot): 0d 00h 22m 48s
S/N: 1066319194
USB speed mode: High speed (480 MBit/s)
VTref=3.300V
Type "connect" to establish a target connection, '?' for help
J-Link>connect
Device "RW612" selected.
Connecting to target via SWD
InitTarget() start
SWD selected. Executing JTAG -> SWD switching sequence.
DAP initialized successfully.
DMAP_REG_ID: DM-AP IDCODE detected: 0x002A0000
DHCSR: 0x05100000
InitTarget() end - Took 2.71ms
Found SW-DP with ID 0x6BA02477
DPIDR: 0x6BA02477
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x84770001, ADDR: 0x00000000)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FD214. Implementer code: 0x41 (ARM)
Feature set: Mainline
Cache: No cache
Found Cortex-M33 r0p4, Little endian.
FPUnit: 8 code (BP) slots and 0 literal slots
Security extension: implemented
Secure debug: enabled
CoreSight components:
ROMTbl[0] @ E00FF000
[0][0]: E000E000 CID B105900D PID 000BBD21 DEVARCH 47702A04 DEVTYPE 00 Cortex-M33
[0][1]: E0001000 CID B105900D PID 000BBD21 DEVARCH 47701A02 DEVTYPE 00 DWT
[0][2]: E0002000 CID B105900D PID 000BBD21 DEVARCH 47701A03 DEVTYPE 00 FPB
[0][3]: E0000000 CID B105900D PID 000BBD21 DEVARCH 47701A01 DEVTYPE 43 ITM
[0][5]: E0041000 CID B105900D PID 002BBD21 DEVARCH 47724A13 DEVTYPE 13 ETM
[0][6]: E0042000 CID B105900D PID 000BBD21 DEVARCH 47701A14 DEVTYPE 14 CSS600-CTI
Memory zones:
Zone: "Default" Description: Default access mode
Cortex-M33 identified.
I've noticed this behavior has happened twice (in two boards). I really want to believe this has nothing to do with the LCD, since it would place the responsibility of this not working onto NXP/Adafruit hands and faulty design.
Has anyone experienced something like this?