i MXRT1024 EVK issue with keil using LPC LINK2 tool

cancel
Showing results for 
Search instead for 
Did you mean: 

i MXRT1024 EVK issue with keil using LPC LINK2 tool

Jump to solution
536 Views
srinadh
Contributor III

I want to load demo drivers program to IMXRT1024-EVK board via Keil v5.34

But, Unable to download any project file to board and also debugging was not running properly (it does not goes into startupfile).

So please , Tell me proper procedure to download hex files to board via keil & keil debuuging feature. Give me Target options also

Rebuild started: Project: igpio_led_output
*** Using Compiler 'V6.16', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
Rebuild target 'igpio_led_output sdram_debug'
Note: source file 'C:\ARM\NXP\MIMXRT1024_DFP\13.0.0\system_MIMXRT1024.c' - object file renamed from 'sdram_debug\system_MIMXRT1024.o' to 'sdram_debug\system_mimxrt1024_1.o'.
compiling dcd.c...
compiling pin_mux.c...
compiling fsl_adapter_lpuart.c...
compiling fsl_component_generic_list.c...
compiling clock_config.c...
compiling board.c...
compiling fsl_clock.c...
compiling fsl_common.c...
compiling gpio_led_output.c...
compiling fsl_gpio.c...
compiling fsl_assert.c...
compiling evkmimxrt1024_flexspi_nor_config.c...
compiling fsl_flexspi_nor_boot.c...
compiling fsl_debug_console.c...
compiling fsl_lpuart.c...
compiling system_MIMXRT1024.c...
C:/ARM/NXP/MIMXRT1024_DFP/13.0.0/arm/startup_MIMXRT1024.S(295): warning: Reset_Handler changed binding to STB_WEAK
.weak Reset_Handler
^
assembling startup_MIMXRT1024.S...
linking...
Program Size: Code=8738 RO-data=1514 RW-data=8 ZI-data=2099264
"sdram_debug\igpio_led_output.out" - 0 Error(s), 1 Warning(s).
Build Time Elapsed: 00:00:02
Load "sdram_debug\\igpio_led_output.out"
Error: Flash Download failed - Target DLL has been cancelled
Flash Load finished at 15:46:32
Load "sdram_debug\\igpio_led_output.out"
Set JLink Project File to "C:\Users\tsrinadh\Downloads\igpio_led_output\igpio_led_output\JLinkSettings.ini"
* JLink Info: Device "MIMXRT1024XXX5A" selected.

JLink info:
------------
DLL: V6.86 , compiled Sep 24 2020 17:31:31
Firmware: J-Link LPCXpresso V2 compiled Jan 28 2015 16:43:37
Hardware: V1.00
S/N : 720000000

* JLink Info: TotalIRLen = 8, IRPrint = 0x0011
* JLink Info: JTAG chain detection found 2 devices:
* JLink Info: #0 Id: 0x4BA00477, IRLen: 04, CoreSight JTAG-DP
* JLink Info: #1 Id: 0x0BA01477, IRLen: 04, CoreSight JTAG-DP
* JLink Info: Unknown DP version. Assuming DPv0
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[1]: Stopped AP scan as end of AP map has been reached
* JLink Info: AP[0]: AHB-AP (IDR: 0x24770011)
* JLink Info: Iterating through AP map to find AHB-AP to use
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xE00FF000
* JLink Info: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M4 r0p1, Little endian.
* JLink Info: Identified core does not match configuration. (Found: Cortex-M4, Configured: Cortex-M7)
* JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl[0] @ E00FF000
* JLink Info: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
* JLink Info: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
* JLink Info: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
* JLink Info: ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
* JLink Info: ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
* JLink Info: ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
ROMTableAddr = 0xE00FF000
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via AIRCR.VECTRESET.

Target info:
------------
Device: MIMXRT1024DAG5A
VTarget = 3.300V
State of Pins:
TCK: 1, TDI: 0, TDO: 1, TMS: 0, TRES: 1, TRST: 1
Hardware-Breakpoints: 6
Software-Breakpoints: 8192
Watchpoints: 4
JTAG speed: 4000 kHz

No Algorithm found for: 00000000H - 00002813H
Erase skipped!
Error: Flash Download failed - "Cortex-M7"
Flash Load finished at 15:46:48

Labels (1)
Tags (2)
0 Kudos
1 Solution
482 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Please see the below images. 

victorjimenez_0-1617219683831.png

victorjimenez_1-1617219696561.png

victorjimenez_2-1617219723610.png

victorjimenez_3-1617219746954.png

Regards,
Victor

 

 

View solution in original post

4 Replies
514 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello, 

I didn't face any problems when trying to flash and debug an example of the RT1024-EVK SDK with Keil v5.34. When I opened the SDK example, Keil asked me to install the corresponding package. You have to accept install it. 

victorjimenez_0-1617146756353.png

After that, the example opened correctly. From here, first I selected the target flexspi_nor_debug. Then I compiled the application. Once the application is compiled without errors, I load it into my EVK. Finally, I launched the debug session. 

victorjimenez_1-1617146892351.png

Did you follow these same steps? 

Regards,
Victor 

 

509 Views
srinadh
Contributor III

Please share screenshots of TARGET options window of that project, may be it was helpful to me,

List :

TARGET, C/C++(AC6), ASM, LINKER, DEBUG....

Because i follow same steps but breakpoint debugging error...

0 Kudos
483 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Please see the below images. 

victorjimenez_0-1617219683831.png

victorjimenez_1-1617219696561.png

victorjimenez_2-1617219723610.png

victorjimenez_3-1617219746954.png

Regards,
Victor

 

 

View solution in original post

479 Views
srinadh
Contributor III

I have a doubt regarding TARGET menu options:

IMXRT1024 controller have :

24Mhz crystal clock but we selected 12 Mhz,

On Chip FLASH memory was 4MB but we given size 8MB that to also selected off chip memory

0 Kudos