Hi,
I have a J-Link Ultra+ and I can successfully write the flash and debug an application on NXP Kinetis K64.
The problem is accessing registers of some peripheral like FTM0, while other peripheral like PIT can be read.
The trace of J-Link Commander is
Display All
I can read address 0x40037000 (MCR register of PIT peripheral) but I cannot read 0x40038000 (SC register of FTM0 peripheral)
How can I solve this issue?
best regards
MAx
I have a J-Link Ultra+ and I can successfully write the flash and debug an application on NXP Kinetis K64.
The problem is accessing registers of some peripheral like FTM0, while other peripheral like PIT can be read.
The trace of J-Link Commander is
Source Code
- max@resfw04:/opt/SEGGER/JLink$ ./JLinkExe
- SEGGER J-Link Commander V5.10i (Compiled Jan 28 2016 09:41:48)
- DLL version V5.10i, compiled Jan 28 2016 09:41:43
- Connecting to J-Link via USB...Updating firmware: J-Link Ultra V4 compiled Jan 21 2016 18:49:46
- Replacing firmware: J-Link Ultra V4 compiled Sep 4 2015 18:12:49
- Waiting for new firmware to boot
- New firmware booted successfully
- O.K.
- Firmware: J-Link Ultra V4 compiled Jan 21 2016 18:49:46
- Hardware version: V4.00
- S/N: 504400379
- License(s): RDI, FlashBP, FlashDL, JFlash, GDB
- Emulator has Trace capability
- VTref = 3.401V
- Type "connect" to establish a target connection, '?' for help
- J-Link>device MK64FN1M0xxx12
- Please specify target interface:
- J) JTAG (Default)
- S) SWD
- TIF>s
- Specify target interface speed [kHz]. <Default>: 4000 kHz
- Speed>1000
- Device "MK64FN1M0XXX12" selected.
- Found SWD-DP with ID 0x2BA01477
- Found SWD-DP with ID 0x2BA01477
- Found Cortex-M4 r0p1, Little endian.
- FPUnit: 6 code (BP) slots and 2 literal slots
- CoreSight components:
- ROMTbl 0 @ E00FF000
- ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB00C SCS
- ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 003BB002 DWT
- ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB
- ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 003BB001 ITM
- ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 000BB9A1 TPIU
- ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 000BB925 ETM
- ROMTbl 0 [6]: FFF43000, CID: B105900D, PID: 003BB907 ETB
- ROMTbl 0 [7]: FFF44000, CID: B105900D, PID: 001BB908 CSTF
- Cortex-M4 identified.
- J-Link>mem32 0x40038000,1
- Could not read memory.
- J-Link>mem32 0x40037000,1
- 40037000 = 00000001
- J-Link>
I can read address 0x40037000 (MCR register of PIT peripheral) but I cannot read 0x40038000 (SC register of FTM0 peripheral)
How can I solve this issue?
best regards
MAx