S32K358EVB-Q289: LED Example Not Working

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

S32K358EVB-Q289: LED Example Not Working

496 Views
phillip_hong
Contributor I

Hello,

I’m trying to run a simple GPIO (LED ON/OFF) test on S32K358EVB-Q289 using MATLAB/Simulink, but the NXP “Blinking LED” example does not work on my board.

Environment

  • MATLAB: R2022b

  • Board: S32K3X8EVB-Q289HWUM (S32K358EVB-Q289)

  • Support package/toolbox: SW32_MBDT_S32K3_1.6.0_D2501.mltbx (license 1.6.0)

Problem
I want to study the GPIO LED blink example provided by NXP. However, MATLAB/Simulink does not provide a target/example specifically for S32K358-Q289.

Steps / symptoms:

  1. Open the NXP provided Blinking LED example model in Simulink.

  2. Press Ctrl+E (Configuration Parameters) and check the hardware settings.

  3. S32K358EVB-Q289 is not available in the hardware board list.

  4. As a workaround, I changed Configuration Project Template to S32K358EVB-Q289 (switch package) (see attached screenshot).

  5. In S32 Config Tool, I configured:

    • Pins: LED-related pin settings

    • Peripherals: LED/GPIO related settings

  6. The project builds successfully, but the LED does not toggle on the real board (no blinking).

So the build is OK, but the LED ON/OFF does not work on hardware.

Questions

  1. Is there an official MATLAB/Simulink example project for S32K358-Q289 (S32K358EVB-Q289)? If yes, where can I download/access it?

  2. How should the “Blinking LED” example be adapted to work on S32K358EVB-Q289? Are there required settings (pin mux, clock/init, board init, etc.) that I might be missing?

  3. About the license/toolbox versions: I can find the license/download up to 1.6.0, but I don’t see a license download section for 1.8.0. Is 1.8.0 not available yet, or is it provided in a different place?

Thank you in advance.

97d38ad2-3c2d-48c7-b912-d11451887802.png

0 Kudos
Reply
1 Reply

460 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @phillip_hong 

Your question has already been answered by the MBDT experts in your community post: S32K358EVB-Q289: Blinking LED Example Not Working (MATLAB R2022b / MBDT 1.6.0). Please continue the discussion in that thread.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2304937%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K358EVB-Q289%3A%20LED%20Example%20Not%20Working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2304937%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%E2%80%99m%20trying%20to%20run%20a%20simple%20GPIO%20(LED%20ON%2FOFF)%20test%20on%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ES32K358EVB-Q289%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eusing%20MATLAB%2FSimulink%2C%20but%20the%20NXP%20%E2%80%9CBlinking%20LED%E2%80%9D%20example%20does%20not%20work%20on%20my%20board.%3C%2FP%3E%3CP%3E%3CSTRONG%3EEnvironment%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3EMATLAB%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ER2022b%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EBoard%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ES32K3X8EVB-Q289HWUM%20(S32K358EVB-Q289)%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3ESupport%20package%2Ftoolbox%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ESW32_MBDT_S32K3_1.6.0_D2501.mltbx%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(license%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E1.6.0%3C%2FSTRONG%3E)%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3EProblem%3C%2FSTRONG%3E%3CBR%20%2F%3EI%20want%20to%20study%20the%20GPIO%20LED%20blink%20example%20provided%20by%20NXP.%20However%2C%20MATLAB%2FSimulink%20does%20not%20provide%20a%20target%2Fexample%20specifically%20for%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ES32K358-Q289%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3ESteps%20%2F%20symptoms%3A%3C%2FP%3E%3COL%3E%3CLI%3E%3CP%3EOpen%20the%20NXP%20provided%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EBlinking%20LED%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eexample%20model%20in%20Simulink.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EPress%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ECtrl%2BE%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(Configuration%20Parameters)%20and%20check%20the%20hardware%20settings.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3ES32K358EVB-Q289%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eis%20not%20available%20in%20the%20hardware%20board%20list.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EAs%20a%20workaround%2C%20I%20changed%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EConfiguration%20Project%20Template%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ES32K358EVB-Q289%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(switch%20package)%20(see%20attached%20screenshot).%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EIn%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ES32%20Config%20Tool%3C%2FSTRONG%3E%2C%20I%20configured%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3E%3CSTRONG%3EPins%3C%2FSTRONG%3E%3A%20LED-related%20pin%20settings%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3EPeripherals%3C%2FSTRONG%3E%3A%20LED%2FGPIO%20related%20settings%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3E%3CP%3EThe%20project%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Ebuilds%20successfully%3C%2FSTRONG%3E%2C%20but%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ELED%20does%20not%20toggle%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eon%20the%20real%20board%20(no%20blinking).%3C%2FP%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3ESo%20the%20build%20is%20OK%2C%20but%20the%20LED%20ON%2FOFF%20does%20not%20work%20on%20hardware.%3C%2FP%3E%3CP%3E%3CSTRONG%3EQuestions%3C%2FSTRONG%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CP%3EIs%20there%20an%20official%20MATLAB%2FSimulink%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eexample%20project%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efor%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ES32K358-Q289%20(S32K358EVB-Q289)%3C%2FSTRONG%3E%3F%20If%20yes%2C%20where%20can%20I%20download%2Faccess%20it%3F%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EHow%20should%20the%20%E2%80%9CBlinking%20LED%E2%80%9D%20example%20be%20adapted%20to%20work%20on%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ES32K358EVB-Q289%3C%2FSTRONG%3E%3F%20Are%20there%20required%20settings%20(pin%20mux%2C%20clock%2Finit%2C%20board%20init%2C%20etc.)%20that%20I%20might%20be%20missing%3F%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EAbout%20the%20license%2Ftoolbox%20versions%3A%20I%20can%20find%20the%20license%2Fdownload%20up%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E1.6.0%3C%2FSTRONG%3E%2C%20but%20I%20don%E2%80%99t%20see%20a%20license%20download%20section%20for%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E1.8.0%3C%2FSTRONG%3E.%20Is%201.8.0%20not%20available%20yet%2C%20or%20is%20it%20provided%20in%20a%20different%20place%3F%3C%2FP%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3EThank%20you%20in%20advance.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%2297d38ad2-3c2d-48c7-b912-d11451887802.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2297d38ad2-3c2d-48c7-b912-d11451887802.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F375230iBECD90F3DF69E8EA%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2297d38ad2-3c2d-48c7-b912-d11451887802.png%22%20alt%3D%2297d38ad2-3c2d-48c7-b912-d11451887802.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2305461%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K358EVB-Q289%3A%20LED%20Example%20Not%20Working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2305461%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F259431%22%20target%3D%22_blank%22%3E%40phillip_hong%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYour%20question%20has%20already%20been%20answered%20by%20the%20MBDT%20experts%20in%20your%20community%20post%3A%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FModel-Based-Design-Toolbox-MBDT%2FS32K358EVB-Q289-Blinking-LED-Example-Not-Working-MATLAB-R2022b%2Fm-p%2F2304321%22%20target%3D%22_blank%22%3ES32K358EVB-Q289%3A%20Blinking%20LED%20Example%20Not%20Working%20(MATLAB%20R2022b%20%2F%20MBDT%201.6.0)%3C%2FA%3E.%20Please%20continue%20the%20discussion%20in%20that%20thread.%3C%2FP%3E%3C%2FLINGO-BODY%3E