Issue with "Download Failed" Error While Deploying Model to S32K3xx EVB

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

Issue with "Download Failed" Error While Deploying Model to S32K3xx EVB

Jump to solution
1,126 Views
Berke_E
Contributor I

Hello,

I am encountering an issue while working with the NXP Model-based Design Toolbox (MBDT) on MATLAB/Simulink. I am trying to deploy the example model s32k3xx_dio_ebt to my S32K312EVB-Q172. However, during the deployment process, I receive the attached error message. The board is powered correctly, and the USB cable is connected to the J40 port. Necessary LEDs also confirm that connections are true. The board looks like working. So, my questions are:

1- Could this issue be related to a missing configuration in the Simulink model or MATLAB setup?

2- Do I need to apply any specific firmware updates to the OpenSDA or J-Link debugger for S32K3xx support?

Please let me know the solution to resolve the issues as soon as possible, thank you.

 

0 Kudos
Reply
1 Solution
1,073 Views
dragostoma
NXP Employee
NXP Employee

Hi, @Berke_E,

First of all, what version of toolbox are you using and with what version of MATLAB?

Generally, the error you encountered occurs when the board is not connected correctly or is not turned on. But from what you say, the board is connected and functional.

From what I can see from the screenshot you provided, your model seems to have reset all its block settings to the first option (RGBLED0_BLUE), which is why you have the 3 warnings. This may mean that some settings in the model configuration were not compliant. What I recommend is to try to do a cleanup (by deleting the s32k3xx_dio_ebt_TresosProject folder and reopening the model example) and try downloading again.

It would also be interesting to mention if you have other debugger tools connected to the laptop, in which case conflicts may occur in the download mode.

Also, a picture of your board would be helpful so we can see any improper jumper connections.

 

Best regards,

Dragos

View solution in original post

0 Kudos
Reply
2 Replies
979 Views
Berke_E
Contributor I

Hi there,

I was using my old usb cable and board was saying that connection is okay by the necessary LED on. However I could not see the board from my PC. Then, I changed the cable and problem solved. It seems that was all about the cable. So keep this in mind that if you want to check connection, do not trust only the board's connection LED.

Thank you.

0 Kudos
Reply
1,074 Views
dragostoma
NXP Employee
NXP Employee

Hi, @Berke_E,

First of all, what version of toolbox are you using and with what version of MATLAB?

Generally, the error you encountered occurs when the board is not connected correctly or is not turned on. But from what you say, the board is connected and functional.

From what I can see from the screenshot you provided, your model seems to have reset all its block settings to the first option (RGBLED0_BLUE), which is why you have the 3 warnings. This may mean that some settings in the model configuration were not compliant. What I recommend is to try to do a cleanup (by deleting the s32k3xx_dio_ebt_TresosProject folder and reopening the model example) and try downloading again.

It would also be interesting to mention if you have other debugger tools connected to the laptop, in which case conflicts may occur in the download mode.

Also, a picture of your board would be helpful so we can see any improper jumper connections.

 

Best regards,

Dragos

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2034631%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIssue%20with%20%22Download%20Failed%22%20Error%20While%20Deploying%20Model%20to%20S32K3xx%20EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2034631%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20encountering%20an%20issue%20while%20working%20with%20the%20%3CSTRONG%3ENXP%20Model-based%20Design%20Toolbox%20(MBDT)%3C%2FSTRONG%3E%20on%20MATLAB%2FSimulink.%26nbsp%3BI%20am%20trying%20to%20deploy%20the%20example%20model%20s32k3xx_dio_ebt%20to%20my%20%3CSTRONG%3ES32K312EVB-Q172%3C%2FSTRONG%3E.%26nbsp%3BHowever%2C%20during%20the%20deployment%20process%2C%20I%20receive%20the%20attached%20error%20message.%26nbsp%3BThe%20board%20is%20powered%20correctly%2C%20and%20the%20USB%20cable%20is%20connected%20to%20the%20J40%20port.%20Necessary%20LEDs%20also%20confirm%20that%20connections%20are%20true.%20The%20board%20looks%20like%20working.%20So%2C%20my%20questions%20are%3A%3C%2FP%3E%3CP%3E1-%20Could%20this%20issue%20be%20related%20to%20a%20missing%20configuration%20in%20the%20Simulink%20model%20or%20MATLAB%20setup%3F%3C%2FP%3E%3CP%3E2-%20Do%20I%20need%20to%20apply%20any%20specific%20firmware%20updates%20to%20the%20OpenSDA%20or%20J-Link%20debugger%20for%20S32K3xx%20support%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%3EPlease%20let%20me%20know%20the%20solution%20to%20resolve%20the%20issues%20as%20soon%20as%20possible%2C%20thank%20you.%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2042530%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Issue%20with%20%22Download%20Failed%22%20Error%20While%20Deploying%20Model%20to%20S32K3xx%20EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2042530%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20there%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20was%20using%20my%20old%20usb%20cable%20and%20board%20was%20saying%20that%20connection%20is%20okay%20by%20the%20necessary%20LED%20on.%20However%20I%20could%20not%20see%20the%20board%20from%20my%20PC.%20Then%2C%20I%20changed%20the%20cable%20and%20problem%20solved.%20It%20seems%20that%20was%20all%20about%20the%20cable.%20So%20keep%20this%20in%20mind%20that%20if%20you%20want%20to%20check%20connection%2C%20do%20not%20trust%20only%20the%20board's%20connection%20LED.%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2036087%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Issue%20with%20%22Download%20Failed%22%20Error%20While%20Deploying%20Model%20to%20S32K3xx%20EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2036087%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F246060%22%20target%3D%22_blank%22%3E%40Berke_E%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EFirst%20of%20all%2C%20what%20version%20of%20toolbox%20are%20you%20using%20and%20with%20what%20version%20of%20MATLAB%3F%3C%2FP%3E%0A%3CP%3EGenerally%2C%20the%20error%20you%20encountered%20occurs%20when%20the%20board%20is%20not%20connected%20correctly%20or%20is%20not%20turned%20on.%20But%20from%20what%20you%20say%2C%20the%20board%20is%20connected%20and%20functional.%3C%2FP%3E%0A%3CP%3EFrom%20what%20I%20can%20see%20from%20the%20screenshot%20you%20provided%2C%20your%20model%20seems%20to%20have%20reset%20all%20its%20block%20settings%20to%20the%20first%20option%20(RGBLED0_BLUE)%2C%20which%20is%20why%20you%20have%20the%203%20warnings.%20This%20may%20mean%20that%20some%20settings%20in%20the%20model%20configuration%20were%20not%20compliant.%26nbsp%3B%3CSPAN%3EWhat%20I%20recommend%20is%20to%20try%20to%20do%20a%20cleanup%20(by%20deleting%20the%20%3CSTRONG%3Es32k3xx_dio_ebt_TresosProject%26nbsp%3B%3C%2FSTRONG%3Efolder%20and%20reopening%20the%20model%20example)%20and%20try%20downloading%20again.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIt%20would%20also%20be%20interesting%20to%20mention%20if%20you%20have%20other%20debugger%20tools%20connected%20to%20the%20laptop%2C%20in%20which%20case%20conflicts%20may%20occur%20in%20the%20download%20mode.%3C%2FP%3E%0A%3CP%3EAlso%2C%20a%20picture%20of%20your%20board%20would%20be%20helpful%20so%20we%20can%20see%20any%20improper%20jumper%20connections.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EDragos%3C%2FP%3E%3C%2FLINGO-BODY%3E