Cannot get MIMXRT1050 board loaded with SDK gpio LED driver demo via MCUXpresso IDE 10.1.0 589

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

Cannot get MIMXRT1050 board loaded with SDK gpio LED driver demo via MCUXpresso IDE 10.1.0 589

Jump to solution
2,993 Views
edw8
Contributor III

Hello MCUXpresso IDE team and NXP community using the RT1050 processor on MCUXpresso IDE.

This question is an extension to the thread below:

MCUXpresso and RT1050 HyperFlash Programming 

At this point I am looking to establish a debug session running for any demo/trial project on the MIMXRT1050-EVK.

LPCX support replied in the above thread pointing to the following document:

Overview of using the MIMXRT1050-EVK with MCUXpresso IDE 

I checked my test board to match points 1 - 8 in the overview section. My eval board is powered thru the OpenSDA port. The LED next to J1 is lit green and the status LEDs on the RJ45 port are lit green and amber. SW7 is set to boot from hyperflash. I am not using external power.

Yesterday I had one EVK board (schematic rev A3) that had to have its OpenSDA firmware updated from v241 to 244. Today, I tried another EVK board (schematic rev A4) that came preloaded with OpenSDA firmware v244. 

I am running MCUXpresso IDE v10.1.0 build 589 on a Dell Latitude 5580 laptop running Windows 10 Enterprise 1703 (build 15063.726). I have also loaded SDK v2.3.0 for the EVK-MIMXRT1050 (manifest version 3.2.0). 

So far I tried to import SDK demo projects hello_world and hello_world_xip and attempted to start a debug session on these boards. Having read thru the Overview document (link above) posted yesterday, I realized that the projects in the SDK are configured to link to RAM. The recommendation from this doc was to try a simple driver demo from the SDK such as the GPIO LED output demo.

For all of these demos, on both board types I am running into the following problem:

1. selected project builds error free

2. debug session crashes while transferring to eval board with the following dialogs

connection failed - Ee(FF). Redlink interface error 255... Retrying
Failed on connect: Ee(FF). Redlink interface error 255.
Connected&Reset. Was: NotConnected. DpID: 00000000. CpuID: 00000000. Info: <None>
Last stub error 0: OK
Last sticky error: 0x0 AIndex: 0
Debug bus selected: MemAp 0
DAP Speed test unexecuted or failed
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
(100) Target Connection Failed
error closing down debug session - Ee(FF). Redlink interface error 255.

I also attached two dialogs that pop up along with the above console output.

At this point it seems that two boards operate the same way with my MCUXpresso IDE installed base. The failure is consistent among SDK demo projects. I also tried to create a new project using the 1052 as the base part (as per the Project Creation: section in the RT1050_BriefOverview_v101.pdf doc linked above) and ran into the same connection failure with the same failure console output and dialogs. 

I am guessing that I have some configuration error. I tried these boards on a colleague's MCUXpresso IDE install and he had similar connection issues. 

Repeated connect/reconnect of USB cable to OpenSDA port did not work.

Restarted MCUXpresso IDE several times, no dice.

Does anyone have any ideas on how to overcome this connection issue? 

1 Solution
2,455 Views
lpcxpresso_supp
NXP Employee
NXP Employee

We now have a theory. Please can you follow the process to mass erase the Hyperflash that is detailed in the Troubleshooting section of Overview of using the MIMXRT1050-EVK with MCUXpresso IDE 

After doing this, power the board down and then back up again. And then try debugging your project again. Does this then work?

Regards,

MCUXpresso IDE Support

View solution in original post

0 Kudos
Reply
7 Replies
2,456 Views
lpcxpresso_supp
NXP Employee
NXP Employee

We now have a theory. Please can you follow the process to mass erase the Hyperflash that is detailed in the Troubleshooting section of Overview of using the MIMXRT1050-EVK with MCUXpresso IDE 

After doing this, power the board down and then back up again. And then try debugging your project again. Does this then work?

Regards,

MCUXpresso IDE Support

0 Kudos
Reply
2,455 Views
edw8
Contributor III

Thank you MCUXpresso IDE Support,

The troubleshooting procedure in the overview recovered the board for RAM debug. I used the hello_world_xip project to perform the mass erase and confirmed that the gpio_led_output project loaded and properly entered debug mode and ran/stepped. The debug step-over takes a relatively long time for each code step (on the order of seconds) however that is another issue.

-Ed.

0 Kudos
Reply
2,455 Views
BlackNight
NXP Employee
NXP Employee

Hi Ed,

about the debug performance, remove the cachelib option from the debug configuration:

pastedImage_1.png

See the document in Overview of using the MIMXRT1050-EVK with MCUXpresso IDE or MCUXpresso IDE V10.1.0 with i.MX RT1052 Crossover Processor.

I hope this helps,

Erich

0 Kudos
Reply
2,455 Views
edw8
Contributor III

Hi Erich,

Thanks for your reply. The MCUXpresso IDE support folks responded with the same fix in this thread:

MCUXpresso IDE slow to step thru MIMXRT1050EVK demo projects 

-Ed.

0 Kudos
Reply
2,455 Views
juan_mendoza
NXP Employee
NXP Employee

Hi Ed,

I saw on the previous thread, the suggestion that you try powering the device via the barrel jack connection.  Have you tried this?  

If the EVK board exhibits intermittent operation, use a USB Y cable with two USB A to single micro B connector or an external power supply via the barrel jack (place a jumper across pins 1 and 2 of header J1) to power the board.

In addition to updating the firmware, a minor board modification is required to use the USB power switch that is part of the OpenSDA circuit. To do this you need to remove R353 and populate or solder across R352.

1050_circuit.jpg

Regards,

Juan Mendoza

 

0 Kudos
Reply
2,455 Views
lpcxpresso_supp
NXP Employee
NXP Employee

Thanks for the information and our apologies for the problems that you are encountering.

We are currently investigating these reports of some users having issues connecting to RT1050 boards from MCUXpresso IDE via LinkServer debug connection (DAP-Link/CMSIS-DAP).

We suspect that this might be related to board revision - we'll report back when we know more.

Regards,

MCUXpresso IDE Support

2,455 Views
edw8
Contributor III

Thanks for the note.

We have a few eval kits inhouse – I believe 6 or 7 boards total. Please let me know if I can provide any further info from this batch.

0 Kudos
Reply