Flash problem on S32k344 (MBDT

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

Flash problem on S32k344 (MBDT

1,600 Views
Paul50000
Contributor I

I am working on s32k344 EVAL board (HV BMS). The problem is i am not able to flash my code through Simulink. I have created a simple DIO Led Blink model (Just ON the LED). the model was build, even the code is generated, No errors. Still the LED is not ON. When i used S32DS software to blink the LED. The LED is blinking. And then i tried to flash with Simulink. the LED went OFF. Means the program is flashing but the LED is not ON. I double checked the PIN PTA21(RED_LED). What am i doing wrong. I have installed the support packages for debugger and  MBDT Toolbox in MATLAB

0 Kudos
Reply
7 Replies

1,449 Views
SorinIBancila
NXP Employee
NXP Employee

Hello,

 

Did you configure the FS26 to enter debug mode? Otherwise, it will keep resetting the board.

If you are using the X-RD-K344BMUyou can check the included examples in the toolbox to see how to configure Dio, Port components to toggle the LED.

 

Best regards,

Sorin Bancila

0 Kudos
Reply

1,441 Views
Paul50000
Contributor I

How to configure FS26. I cant find documentation regarding it right now. Please help

0 Kudos
Reply

1,439 Views
SorinIBancila
NXP Employee
NXP Employee

Hello,

When powering up the board, keep pressing the SW1 button.

Do not forget to check the examples included in the toolbox, where you have a reference configuration for this board.

Best regards,

Sorin Bancila

0 Kudos
Reply

1,433 Views
Paul50000
Contributor I

i always press the button(SW1) when connecting with PE Micro debugger. But not while flashing or after flashing. I tried with S32 DS software seperately. It flash successfully and LED blinks but when do the same flashing with Simulink then it is not blinking or resetting

0 Kudos
Reply

1,431 Views
SorinIBancila
NXP Employee
NXP Employee

Hello,

 

Alright, so it is not a problem related to FS26.

If possible, can you share your model with me to have a look?

 

Best regards,

Sorin Bancila

0 Kudos
Reply

1,356 Views
Paul50000
Contributor I

I am sharing my file with you. Its just a basic LED model. Please check whats the issue

0 Kudos
Reply

1,101 Views
Paul50000
Contributor I

I have shared the files. Please reply

Tags (1)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2294000%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFlash%20problem%20on%20S32k344%20(MBDT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2294000%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20working%20on%20s32k344%20EVAL%20board%20(HV%20BMS).%20The%20problem%20is%20i%20am%20not%20able%20to%20flash%20my%20code%20through%20Simulink.%20I%20have%20created%20a%20simple%20DIO%20Led%20Blink%20model%20(Just%20ON%20the%20LED).%20the%20model%20was%20build%2C%20even%20the%20code%20is%20generated%2C%20No%20errors.%20Still%20the%20LED%20is%20not%20ON.%20When%20i%20used%20S32DS%20software%20to%20blink%20the%20LED.%20The%20LED%20is%20blinking.%20And%20then%20i%20tried%20to%20flash%20with%20Simulink.%20the%20LED%20went%20OFF.%20Means%20the%20program%20is%20flashing%20but%20the%20LED%20is%20not%20ON.%20I%20double%20checked%20the%20PIN%20PTA21(RED_LED).%20What%20am%20i%20doing%20wrong.%20I%20have%20installed%20the%20support%20packages%20for%20debugger%20and%26nbsp%3B%20MBDT%20Toolbox%20in%20MATLAB%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2298220%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Flash%20problem%20on%20S32k344%20(MBDT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2298220%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EDid%20you%20configure%20the%20FS26%20to%20enter%20debug%20mode%3F%20Otherwise%2C%20it%20will%20keep%20resetting%20the%20board.%3C%2FP%3E%0A%3CP%3EIf%20you%20are%20using%20the%20X-RD-K344BMU%3CSTRONG%3E%2C%26nbsp%3B%3C%2FSTRONG%3Eyou%20can%20check%20the%20included%20examples%20in%20the%20toolbox%20to%20see%20how%20to%20configure%20Dio%2C%20Port%20components%20to%20toggle%20the%20LED.%3C%2FP%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%3CLINGO-SUB%20id%3D%22lingo-sub-2298324%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Flash%20problem%20on%20S32k344%20(MBDT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2298324%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EWhen%20powering%20up%20the%20board%2C%20keep%20pressing%20the%20SW1%20button.%3C%2FP%3E%0A%3CP%3EDo%20not%20forget%20to%20check%20the%20examples%20included%20in%20the%20toolbox%2C%20where%20you%20have%20a%20reference%20configuration%20for%20this%20board.%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3ESorin%20Bancila%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2298308%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Flash%20problem%20on%20S32k344%20(MBDT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2298308%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHow%20to%20configure%20FS26.%20I%20cant%20find%20documentation%20regarding%20it%20right%20now.%20Please%20help%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2298336%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Flash%20problem%20on%20S32k344%20(MBDT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2298336%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAlright%2C%20so%20it%20is%20not%20a%20problem%20related%20to%20FS26.%3C%2FP%3E%0A%3CP%3EIf%20possible%2C%20can%20you%20share%20your%20model%20with%20me%20to%20have%20a%20look%3F%3C%2FP%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%3CLINGO-SUB%20id%3D%22lingo-sub-2298335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Flash%20problem%20on%20S32k344%20(MBDT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2298335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ei%20always%20press%20the%20button(SW1)%20when%20connecting%20with%20PE%20Micro%20debugger.%20But%20not%20while%20flashing%20or%20after%20flashing.%20I%20tried%20with%20S32%20DS%20software%20seperately.%20It%20flash%20successfully%20and%20LED%20blinks%20but%20when%20do%20the%20same%20flashing%20with%20Simulink%20then%20it%20is%20not%20blinking%20or%20resetting%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2298705%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Flash%20problem%20on%20S32k344%20(MBDT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2298705%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20sharing%20my%20file%20with%20you.%20Its%20just%20a%20basic%20LED%20model.%20Please%20check%20whats%20the%20issue%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2301825%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Flash%20problem%20on%20S32k344%20(MBDT)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2301825%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20shared%20the%20files.%20Please%20reply%3C%2FP%3E%3C%2FLINGO-BODY%3E