debug error

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

debug error

5,912 Views
vinaymanikkoth
Contributor II

modified the imxrt 1060 evk board to test HyperRam. debug fails with following messages after that. 

error log:

Thu Nov 12, 2020 23:59:00: IAR Embedded Workbench 8.50.6 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\bin\armproc.dll)
Thu Nov 12, 2020 23:59:00: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\config\debugger\NXP\iMXRT.dmac
Thu Nov 12, 2020 23:59:00: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\config\debugger\NXP\iMXRT_Trace.dmac
Thu Nov 12, 2020 23:59:01: None of the application was placed in flash memory.
Thu Nov 12, 2020 23:59:01: Downloaded C:\Users\manikkoth\Desktop\work\uClinux_IMXRT1060\keil_projects\sdk_imxrt1060\boards\evkmimxrt1060\driver_examples\flexspi\hyper_bus\polling_transfer\iar\
debug\flexspi_hyper_flash_polling_transfer.out to flash memory.
Thu Nov 12, 2020 23:59:01: 0 bytes downloaded into FLASH (0.00 Kbytes/sec)
Thu Nov 12, 2020 23:59:01: Loaded macro file: C:\Users\manikkoth\Desktop\work\uClinux_IMXRT1060\keil_projects\sdk_imxrt1060\boards\evkmimxrt1060\driver_examples\flexspi\hyper_bus\polling_transfer\
iar/evkmimxrt1060.mac
Thu Nov 12, 2020 23:59:01: Loading the CMSIS-DAP driver
Thu Nov 12, 2020 23:59:01: Probe: CMSIS-DAP probe SW module ver 1.21
Thu Nov 12, 2020 23:59:01: Probe: Connecting to CMSIS-DAP:0229000006d0b02700000000000000000000000097969905 firmware v.1.10
Thu Nov 12, 2020 23:59:01: Emulation layer version 4.67
Thu Nov 12, 2020 23:59:01: Notification to init-after-power-up hookup.
Thu Nov 12, 2020 23:59:01: CoreSight error: Cannot read IDCODE. No SWD access. Debugging is not possible.
Thu Nov 12, 2020 23:59:01: CMD_INTERPRETER: failed
Thu Nov 12, 2020 23:59:01: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\config\debugger\NXP\iMXRT.dmac(169,19): Error: Operation error.
Thu Nov 12, 2020 23:59:01: Error while calling macro execUserProbeConnect
Thu Nov 12, 2020 23:59:01: Notification to core-connect hookup.
Thu Nov 12, 2020 23:59:01: CPU status FAILED
Thu Nov 12, 2020 23:59:01: LowLevelReset(system, delay 200)
Thu Nov 12, 2020 23:59:04: Fatal error: Failed to connect to CPU Session aborted!
Thu Nov 12, 2020 23:59:05: Cannot initialize DAP access.
Thu Nov 12, 2020 23:59:05: IAR Embedded Workbench 8.50.6 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\bin\armproc.dll)
Thu Nov 12, 2020 23:59:05: Loading the CMSIS-DAP driver

 

tried running a known project as well. right now board has hyperRam mounted. 

Labels (1)
0 Kudos
27 Replies

4,910 Views
vinaymanikkoth
Contributor II

i am not able to run any projects. reconfigured the board to support hyperRam. so now, there is no hyperFlash and QSPI flash. both are disconnected from controller. 

when i initiate a debug, it needs the external flash? 

0 Kudos

4,889 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi vinaymanikkoth,

 1. To the hardware, in the MIMXRT1060-EVK board,  if you want to use the hyperflash related package which is changed to the hyperRAM, I think you need to modify these points:

  a) OPTION1: USE Hyperflash( DNP R153~R158, Mount R356,R361~R366)

     As the AN12239 is the MIMXRT1050-EVKB, that board is using the hyperflash directly, so that board just need to modify the hyperflash to the hyperRAM directly.

  b) modify on board hyperflash to hyperRAM, U19

   When you solder the chip, you need to make sure it is solder stably and correctly.

2. About the software

   You can use the debug item in hyper_ram, this project don't need to download to the external flash, it just need to download to the internal RAM, and use the internal RAM code to operate your external HyperRAM. Please check the AN12239  page 13 and page 14.

image.png

 

Wish it helps you!

If you still have questions about it, please kindly let me know.

Best Regards,

Kerry

 

 

0 Kudos

4,884 Views
vinaymanikkoth
Contributor II

Thanks for the reply. One quick question before I try below suggestions.

The app note is talking about the imxrt1050-evk board and project also have the imxrt1050-evk settings. How can I use the same project for imxrt1060-evk ? requires any changes? Or it can run as it is ?

0 Kudos

4,880 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi vinaymanikkoth,

  As I know, the RT1050 project can run in the RT1060 directly. You can try it.

  RT1060 is compatible with the RT1050.

 

Best Regards,

Kerry

0 Kudos

4,874 Views
vinaymanikkoth
Contributor II

i am not able to acquire SWD/JTAG. is there any way to reset the MCU in that case? 

tried to debug a Hello world example project using keil. getting an error like this, 

RDDI-DAP ERROR

error: flash download failed :- target dll has been cancelled. 

is there any chance for MCU to get stuck at some unknown state due to removal of flash? if yes, how can i get it default state? 

 

0 Kudos

4,871 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi vinaymanikkoth

   You are using the MIMXRT1060-EVK on board debugger right? You need to select the SWD interface.

   The default one is the CMSIS DAP.

   Do you select the debug in the IAR project? That configuration will download the code to the internal RAM not the external flash. please also note the boot mode, you need to select the internal boot mode.

 

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

-----------------------------------------------------------------------------

0 Kudos

4,869 Views
vinaymanikkoth
Contributor II

yes, i am using on board debugger. i have selected the CMSIS DAP under debugger tab. 

how to configure the board to boot internally? what is the settings? 

on IAR, options under debugger--> download --> use flash loader, do i need to select this ? 

0 Kudos

4,865 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi vinaymanikkoth,

   SW7 1-OFF, 2-OFF, 3-ON,4-OFF

   Then use the debug item, build and download it directly, can you enter the debug mode, you can give me some screenshot, if you still have issues. Because I don't have the hyperRAM board on my side now.

 

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

-----------------------------------------------------------------------------

0 Kudos

4,862 Views
vinaymanikkoth
Contributor II

attached the screenshots of project option.

running hello_world example project from sdk_imxrt1060 (got from nxp sdk builder). 

0 Kudos

4,860 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi vinaymanikkoth,

Give me your workspace picture, it should be debug:

image.png

If you choose this one the code will be download to the internal TCM, when you download it, what's the issues you are meeting?

Still the same debug log?

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

-----------------------------------------------------------------------------

 

0 Kudos

4,857 Views
vinaymanikkoth
Contributor II

yes, still get the same error. attached the screenshot of workspace and log file 

0 Kudos

4,847 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi vinaymanikkoth,

   Follow me try again:

1. SW7 1-0FF, 2-OFF, 3-OFF, 4-ON

2. debug your iled_blinky project again:

image.png

My log:

Tue Nov 17, 2020 17:44:25: IAR Embedded Workbench 8.50.6 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4_2\arm\bin\ 
armproc.dll) 
Tue Nov 17, 2020 17:44:25: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4_2\arm\config\debugger\NXP\ 
iMXRT.dmac 
Tue Nov 17, 2020 17:44:25: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4_2\arm\config\debugger\NXP\ 
iMXRT_Trace.dmac 
Tue Nov 17, 2020 17:44:25: None of the application was placed in flash memory. 
Tue Nov 17, 2020 17:44:25: Downloaded C:\KerryPC\IMXRTCode\Practice\RT1060\SDK_2.8.5_EVK-MIMXRT1060\boards\evkmimxrt1060\ 
demo_apps\led_blinky\iar\debug\iled_blinky.out to flash memory. 
Tue Nov 17, 2020 17:44:25: 0 bytes downloaded into FLASH (0.00 Kbytes/sec) 
Tue Nov 17, 2020 17:44:25: Loaded macro file: C:\KerryPC\IMXRTCode\Practice\RT1060\SDK_2.8.5_EVK-MIMXRT1060\boards\evkmimxrt1060\ 
demo_apps\led_blinky\iar/evkmimxrt1060.mac 
Tue Nov 17, 2020 17:44:25: Loading the CMSIS-DAP driver 
Tue Nov 17, 2020 17:44:25: Probe: CMSIS-DAP probe SW module ver 1.21 
Tue Nov 17, 2020 17:44:25: Probe: Connecting to DAPLink CMSIS-DAP:02290000060b08dc00000000000000000000000097969905 firmware v.1.10 
Tue Nov 17, 2020 17:44:25: Emulation layer version 4.67 
Tue Nov 17, 2020 17:44:25: Notification to init-after-power-up hookup. 
Tue Nov 17, 2020 17:44:25: Connected DAP v1 on SWD. Detected DP ID=0xbd11477. 
Tue Nov 17, 2020 17:44:25: Notification to core-connect hookup. 
Tue Nov 17, 2020 17:44:26: Connecting to TAP#0 DAP AHB-AP port 0 (IDR=0x4770041). 
Tue Nov 17, 2020 17:44:26: Recognized CPUID=0x411fc271 Cortex-M7 r1p1 arch ARMv7-M 
Tue Nov 17, 2020 17:44:26: Set cacheable access on AHB-AP port 0 (HPROT=0xeb000000). 
Tue Nov 17, 2020 17:44:26: Debug resources: 8 instruction comparators, 4 data watchpoints. 
Tue Nov 17, 2020 17:44:26: LowLevelReset(system, delay 200) 
Tue Nov 17, 2020 17:44:26: CPU status - IN RESET 
Tue Nov 17, 2020 17:44:26: FlexRAM configuration is restored 
Tue Nov 17, 2020 17:44:26: DCDC trim value loaded. 
Tue Nov 17, 2020 17:44:26: Loaded debugee: C:\KerryPC\IMXRTCode\Practice\RT1060\SDK_2.8.5_EVK-MIMXRT1060\boards\evkmimxrt1060\ 
demo_apps\led_blinky\iar\debug\iled_blinky.out 
Tue Nov 17, 2020 17:44:27: 10922 bytes downloaded and verified (12.25 Kbytes/sec) 
Tue Nov 17, 2020 17:44:27: Download completed and verification successful. 
Tue Nov 17, 2020 17:44:27: LowLevelReset(software, delay 200) 
Tue Nov 17, 2020 17:44:30: Target reset 
Tue Nov 17, 2020 17:44:30: FlexRAM configuration is restored 
Tue Nov 17, 2020 17:44:30: DCDC trim value loaded. 
Tue Nov 17, 2020 17:44:30: INFO: Configuring trace using 'SWO,ETB' setting ... 
Tue Nov 17, 2020 17:44:30: Trace: Using ETMv4 at address 0xe0041000 
Tue Nov 17, 2020 17:44:30: Trace: ETMv4 is already powered-up (TRCPDSR=0x3) 
Tue Nov 17, 2020 17:44:30: INFO: SWO trace mode is not supported by the probe (use I-jet/I-jet-Trace probe) - trace is disabled. 

In fact, this is no relationship with your external hyperRAM, it should work.

 

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

-----------------------------------------------------------------------------

0 Kudos

4,837 Views
vinaymanikkoth
Contributor II

if we compare both logs, its clear that, i am not able to acquire SWD. looks like openSDA program is corrupt or the controller went into an unknown state. 

how is your board getting detected on device manager ? under what name? 

how to reset this controller used for openSDA? 

what is the functionality of DFU pin ? 

 

0 Kudos

4,828 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi vinaymanikkoth,

    If you enter the serial download mode, SW7 :1-0FF, 2-OFF, 3-OFF, 4-ON

    Can you use the MCUbootUtility to connect your board without the SWD interface?

 https://github.com/JayHeng/NXP-MCUBootUtility/archive/v2.4.0.zip
the related user manual is:
https://github.com/JayHeng/NXP-MCUBootUtility

   You can use the USB HID, when you connect both the J41 and J9, if the board is normal, then the boards is connected, then the MCUBootUtility USB HID will find the PID and VID.

   Please try it on your side.

 

Best Regards,

Kerry

0 Kudos

4,755 Views
vinaymanikkoth
Contributor II

attached my screenshot. not detecting the board. connected both J41 and J9. 

0 Kudos

4,735 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi vinaymanikkoth,

   If you don't press the connect, just in the serial download mode, can you find the USB HID PID and VID?

    Your external chip is the HyperRAM not the HyperFlash, so the connect should have issues, but to the normal status, when you in the serial download mode, and press the reset button, and you also connect the USB HID port, you should can find the USB HID PID and VID.

    Please help to check it.

    Any updated information, please kindly let me know.

Best Regards,

KERRY

0 Kudos

4,730 Views
vinaymanikkoth
Contributor II

dont have an option for selecting HRAM. 

what should be the position of SW1 and J1? 

 

 

0 Kudos

4,719 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi vinaymanikkoth,

   Seems your board enter the serial download mode also have issues, do you connect two USB cable together if you didn't modify the Power supply jumper?

   Before you modify the on board hyperflash to the hyperRAM, can you enter the serial download mode?

   The MCUBootUtility can't download the code to your external hyperRAM, that is the RAM, not the flash, that's why you can't find the related item.

 

Best Regards,

Kerry

0 Kudos

4,621 Views
vinaymanikkoth
Contributor II

i dint try that to enter serial download mode before. i was able to run the example project. connecting both usb together 

 

0 Kudos

4,378 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi vinaymanikkoth,

   Even download the internal RAM, also have issues right?

    Do you try the SDK led_blinky code debug download, whether that can be download or not? Just don't download to the external flash or external RAM.

    When you enter the serial download mode, can you find the PID VID directly? You can give me the complete MCUBootUtility tool interface, just partical is not enough.

  Best Regards,

Kerry

0 Kudos