iMXRT1050 WDog and OpenSDA

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

iMXRT1050 WDog and OpenSDA

616 Views
laidethenri
Contributor III

Hello,

I have a problem on iMXRT1050-EVKB board.


IDE : MCUXpresso IDE v10.2.1 [Build 795]
Debug: OpenSDA included on eval board
App : SDK 2.4.2 WDOG driver application

Test WDog application works correctly.

I found WDog timout value too large (2 minutes)
then I changed timout for 1 seconde...
The application works like I would like.

Problem: Now I can't download a new application by OpenSDA
There is everytime a "Target error from Commit Flash write: Nn(05). Wire ACK Fault in DAP acces".

The only possibility I found for downloading a new application is using "PEMicro Multilink Universal" connected on JTAG connector ( and removing J32, J33)

When I Tested other SDK applications (except WDog 1seconde), I didn't have any problems with OpenSDA.

Is it an OpenSDA problem (bug) or a SWD reduced pin protocol problem?

My question:
For a new design, is it necessary to place JTAG connector 20pins(TMS,TCK,TDI,TDO,TRST,SRST,VRef,POW,Gnd)?
Or only SWD wires(SWD_DIO, SWD_CLK, Reset, Gnd)

attached screenshot IDE

0 Kudos
3 Replies

450 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

I checked the latest MCUXpresso SDK for EVKB-IMXRT1050  version is 2.5.0

pastedImage_1.png

I only find the [rtwdog] driver example.

Could you please check here to download the latest SDK package and check if there still with the same issue.

Please let us know the result.


Have a great day,
Mike

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

450 Views
laidethenri
Contributor III

Hi Mike,

I downloaded:
1/ MCUXpresso IDE v10.3.0 [Build 2200]
2/ SDK 2.5.0

WDog application is evkbimxrt1050->driver_examples->wdog->wdog01
The wdog01 test finishes with 8 sec timout value and WDOG_Refresh in IRQ handler!!!
In this case, there isn't any problem for downloading a new app.

What I want is:
- runing WDOG_Refresh in a background task (not in IRQ)
- timout 1 sec

For this, in wdog01 last step, I changed
- WDconf.timeoutValue=2 (1sec)
- WDconf.enableInterrupt=false (no WDog IRQ)


Now, there is no activity in IRQ and timout=1sec
The wdog01 app works like I want.

But I can't use OpenSDA to download a new app.

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

I found an help in "RT1050_BriefOverview_v201"
- part 15:Troubleshooting =>Erasing the Hyperflash

Change DIP switch SW7 to prevent booting from hyperFlash
Use GUI Flash tool to erase hyperFlash with mass erase
Restore DIP switch.


Now we can download a new app

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

For a new design, I can:
- use SWD wires + one jumper (no boot from hyperflash)
- use JTAG connector

I think 20way JTAG is better

Regards

Henri

0 Kudos

450 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Henri,

Glad to hear the issue was fixed.

Thank you for sharing the experience.


Have a great day,
Mike

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos