Random occurences of timeouts while reading variables

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

Random occurences of timeouts while reading variables

170 Views
fbw
Contributor I

Hello, I have been working on a battery test rig set up by my predecessors on the project.
The test rig uses an nxp S32K144EVB board connected via usb to a computer.

The code is built from a simulink file and monitoring of the test is made via FreeMASTER 3.2.

The project has been working on a laptop for a few months and it has been necessary to configure a new laptop as a replacement. However, even while installing the same FreeMASTER version, the same drivers and using the same project files, all variable reads as "?" due to timeout errors after a seemingly random duration.

Any help would be greatly appreciated.

 

Logged errors after 12 minutes of runtime with no issues :

fbw_0-1784820901163.png

 

0 Kudos
Reply
1 Reply

26 Views
SorinIBancila
NXP Employee
NXP Employee

Hello,

I don't think I encounter that problem yet but I have a few suggestions, maybe they can help:

  • Try to power up the S32K144EVB from a 12V power supply instead from the USB. Getting Started with the S32K144EVB 
  • Try different methods to connect the FreeMASTER project to the EVB:
    • Use the onboard USB connector
    • External Serial2USB convertor
    • Use a debug probe to connect directly to the S32K144 MCU
  • Try to reduce the refresh time for non critical variables
  • Prevent the laptop to enter sleep mode (as it might cut USB power to save battery).
  • Try to create a new FreeMASTER project from scratch.

 

Best regards,

Sorin Bancila

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2398395%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERandom%20occurences%20of%20timeouts%20while%20reading%20variables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2398395%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20I%20have%20been%20working%20on%20a%20battery%20test%20rig%20set%20up%20by%20my%20predecessors%20on%20the%20project.%3CBR%20%2F%3EThe%20test%20rig%20uses%20an%20nxp%20S32K144EVB%20board%20connected%20via%20usb%20to%20a%20computer.%3C%2FP%3E%3CP%3EThe%20code%20is%20built%20from%20a%20simulink%20file%20and%20monitoring%20of%20the%20test%20is%20made%20via%20FreeMASTER%203.2.%3C%2FP%3E%3CP%3EThe%20project%20has%20been%20working%20on%20a%20laptop%20for%20a%20few%20months%20and%20it%20has%20been%20necessary%20to%20configure%20a%20new%20laptop%20as%20a%20replacement.%20However%2C%20even%20while%20installing%20the%20same%20FreeMASTER%20version%2C%20the%20same%20drivers%20and%20using%20the%20same%20project%20files%2C%20all%20variable%20reads%20as%20%22%3F%22%20due%20to%20timeout%20errors%20after%20a%20seemingly%20random%20duration.%3C%2FP%3E%3CP%3EAny%20help%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ELogged%20errors%20after%2012%20minutes%20of%20runtime%20with%20no%20issues%20%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22fbw_0-1784820901163.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22fbw_0-1784820901163.png%22%20style%3D%22width%3A%20318px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22fbw_0-1784820901163.png%22%20style%3D%22width%3A%20318px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F393087iB91AADD15F6E20F0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22fbw_0-1784820901163.png%22%20alt%3D%22fbw_0-1784820901163.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2404290%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Random%20occurences%20of%20timeouts%20while%20reading%20variables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2404290%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20don't%20think%20I%20encounter%20that%20problem%20yet%20but%20I%20have%20a%20few%20suggestions%2C%20maybe%20they%20can%20help%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ETry%20to%20power%20up%20the%20S32K144EVB%20from%20a%2012V%20power%20supply%20instead%20from%20the%20USB.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocument%2Fguide%2Fgetting-started-with-the-s32k144evb%3ANGS-S32K144EVB%3Fsection%3Dout-of-the-box%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EGetting%20Started%20with%20the%20S32K144EVB%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3ETry%20different%20methods%20to%20connect%20the%20FreeMASTER%20project%20to%20the%20EVB%3A%0A%3CUL%3E%0A%3CLI%3EUse%20the%20onboard%20USB%20connector%3C%2FLI%3E%0A%3CLI%3EExternal%20Serial2USB%20convertor%3C%2FLI%3E%0A%3CLI%3EUse%20a%20debug%20probe%20to%20connect%20directly%20to%20the%20S32K144%20MCU%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ETry%20to%20reduce%20the%20refresh%20time%20for%20non%20critical%20variables%3C%2FLI%3E%0A%3CLI%3EPrevent%20the%20laptop%20to%20enter%20sleep%20mode%20(as%20it%20might%20cut%20USB%20power%20to%20save%20battery).%3C%2FLI%3E%0A%3CLI%3ETry%20to%20create%20a%20new%20FreeMASTER%20project%20from%20scratch.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3ESorin%20Bancila%3C%2FP%3E%3C%2FLINGO-BODY%3E