SLN-ALEXA-IOT Development board

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

SLN-ALEXA-IOT Development board

471 Views
seandutoit
Contributor II

Good day

I have 2 questions today. In both cases I am using a J-Link Edu Mini programmer

1) I made a custom board using the MIMXRT1062CVL5A processor. I am having difficulties in programing the device using  my programmer. I keep on getting the error that TD0 stays high. Any Ideas of what to check on my custom board. 

2) I have a SLN-ALEXA-IOT development kit. I have downloaded the SDK and get the list of projects as per document: SLN-ALEXA-IOT-DG.pdf.

I can compile the projects using MCUXpresso V11.7.1 with no errors. I just cannot seem to be able to debug something like "Blinky" or "Hello World". MCUXpresso seems to recognise my debugger and it looks like it is loading something, but it does not debug.

Below is a screenshot of the debugger after programming "Blinky"

Labels (1)
0 Kudos
7 Replies

401 Views
seandutoit
Contributor II

Hi Jing

Thank you  for the reply.

Maybe you can assist me with getting my custom board to program?

This board just came from assembly house ans SWD programming does not work. I see the Clock pulses on SWD_CLK and on SWD_DIO pins. 3.3V available on VCC and nRST does respond.

Error output from MCUXpresso Jlink interface below. I am currently using a J-Link Edu Mini. Should I use some other tool?

Error

 

ERROR: Could not connect to target.

  SEGGER J-Link GDB Server V7.86e Command Line Version

  JLinkARM.dll V7.86e (DLL compiled Mar 22 2023 16:27:41)

  Command line: -SettingsFile C:\Projects\NXP Dev Kits\Alexa_Dev_kit-software\sln_alexa_iot_iled_blinky\Debug\sln_alexa_iot_iled_blinky JLink Debug SettingsFile.jlink -nosilent -swoport 2332 -select USB -telnetport 2333 -endian big -noir -speed 4000 -port 2331 -vd -device MIMXRT106SDVL6A -if SWD -halt -reportuseraction

  -----GDB Server start settings-----

  GDBInit file:                  none

  GDB Server Listening port:     2331

  SWO raw output listening port: 2332

  Terminal I/O port:             2333

 Accept remote connection:      localhost only

  Generate logfile:              off

  Verify download:               on

  Init regs on start:            off

  Silent mode:                   off

  Single run mode:               off

  Target connection timeout:     0 ms

  ------J-Link related settings------

  J-Link Host interface:         USB

  J-Link script:                 none

  J-Link settings file:          C:\Projects\NXP Dev Kits\Alexa_Dev_kit-software\sln_alexa_iot_iled_blinky\Debug\sln_alexa_iot_iled_blinky JLink Debug SettingsFile.jlink

  ------Target related settings------

  Target device:                 MIMXRT106SDVL6A

  Target device parameters:      none

  Target interface:              SWD

  Target interface speed:        4000kHz

  Target endian:                 big

  Connecting to J-Link...

  J-Link is connected.

  Device "MIMXRT106SDVL6A" selected.

  Firmware: J-Link EDU Mini V1 compiled Mar 15 2023 11:22:34

  Hardware: V1.00

  S/N: 801037084

  Feature(s): FlashBP, GDB

  Checking target voltage...

  Target voltage: 3.13 V

  Listening on TCP/IP port 2331

  Connecting to target...

  InitTarget() start

  InitTarget() end - Took 102ms

  $$UserActionStart$$: Terms of use

  $$UserActionEnd$$: Terms of use

  Failed to attach to CPU. Trying connect under reset.

  InitTarget() start

  InitTarget() end - Took 105ms

  ERROR: Could not connect to target.

0 Kudos

404 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @seandutoit ,

First of all, SLN-ALEXA-IOT is not recommended for new design. It is said that Amazon will not support new project.

1. You can try RT-UFL as the download algorithm. Jlink doesn't use the algorithm assign by MCUXpresso. You should copy all files in RT-UFL-1.0\algo\SEGGER\JLink_Vxxx to segger install directory. When you download, type in MIMXRT1060_UFL_L1 for hyperflash or MIMXRT1060_UFL_L0 for qspi flash.

https://github.com/JayHeng/RT-UFL

jingpan_0-1683371114481.png

2. Have you modified slnalexaiot_flexspi_nor_config.c to hyperflash? RT106A and RT1062 are almost same. But you should know that ALEXA demo can't run on RT1062. There is some protection.

 

Regards,

Jing

0 Kudos

377 Views
seandutoit
Contributor II
Hi, Will the internal DC-DC work if chip is not programmed?
Pins DCDC_LP_1(M1) and DCDC_LP_@(M2)
0 Kudos

392 Views
seandutoit
Contributor II
How do you read and write the fuses on a brand new chip?
0 Kudos

392 Views
seandutoit
Contributor II
Which Debugger is the best to use on the NXP MIMXRT106x range of processors
0 Kudos

393 Views
seandutoit
Contributor II

Which Debugger is the best to use on the NXP MIMXRT106x range of processors

0 Kudos

367 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @seandutoit ,

I use MCU-Link which is similar to ulink. It works fine. But before debugging led_blinky, you should make a mass erase because there is some encryption related data in flash. You must erase them, otherwise the BootROM will not jump to your code.

I have a jlink-pro. It can download with MIMXRT106A-ALEXA algorithm. But it can't debug. I think it may need a script to set PC and SP pointer.

jingpan_0-1683525542444.png

 

Regards,

Jing

 

0 Kudos