Hello
We recently bought a S32K396-BGA-DC1 Evaluation Board to evaluate S32K396 MCU for a future project.
Since we will use Simulink models for application development, I'm trying to use the MBDT toolbox.
I could install the toolbox without any issue, but i cannot run the s32k3xx_dio_ebt example.
I think that I have set the correct target in model's parameters
I'm using the "Open SDA" debugger fitted on the board. Jumpers J16, J17, J18 and J19 have been set accordingly. The board is connected through USB to my laptop (I have green LED lighting next to USB connector on the board).
Model download parameters are set like this
The model builds, but the process fails when Simulink try to load the code in the board
Here is the content of the log
GNU gdb (GDB src=g2b2d27aa26 bld=gd2333b8c -v s=GDB-12-1 -L64 -W32 Earm) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=i686-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from C:/Matlab/AddOn_2023b/Toolboxes/NXP_MBDToolbox_S32K3/S32K3_Examples/dio/s32k3xx_dio_ebt/s32k3xx_dio_ebt.elf...
tcp:localhost:7224: Connection timed out.
You can't do that when your target is `exec'
By the way, when the error happens, a red LED turns on.
Can someone help me with this ?
Thank you
Vincent
Hello @Vincent_91687
Glad to hear!
I have just forwarded your additional thread to the S32 Design Studio team.
Please let us know if there are any other issues you encounter while using MBDT for S32K3
Thank you,
Irina
Hello Irina,
It works !
I knew the the guide you gave me, but looking at the doc, it wasn't obvious to me that I must set those jumpers while using J1 12V power supply.
Anyway, it's clear now that i was wrong
By the way, just in case you may also help me with this, I have another case about S32K396 support package installation in S32 Design Studio: https://community.nxp.com/t5/S32K/Fail-to-install-S32K396-development-package-fails/m-p/2053684#M463...
Thank you very much for your help
Best regards
Vincent
Hello @Vincent_91687
Thank you for the attached images. What I notice is that J4, J6 and J7 on your board are in the 1-2 position, corresponding to the JP1 power source, as indicated on the S32K396-BGA-DC1 Connectors and Jumpers Description table which you could find at the following link
As currently, in your setup, there is no connection on the JP1, you would need to change the jumper positions to ensure the required voltage for the MCU.
For this, and a complete step by step hardware setup, I would recommend you to take a look at the Getting Started with S32K396-BGA-DC1 Evaluation Board guide, for being able to setup your power source according to your hardware design, and configure properly all the necessary jumpers on the board.
Please let us know if this helps,
Irina
Hello Irina,
Thank you for your efforts.
When my board is only power supplied (USB not connected) through J1 connector, I have only D4 LED turned ON. D1, D2 and D3 remain off
I have D30 LED on when USB cable is connected, even if J1 is not connected
When both USB and J10 are connected, I still have only D4 and D30 turned ON. I'm trying to download the code in this state.
As you can see, D2, D3, and D4 are always down. Is it an issue ?
Thank you
Best regards
Vincent
Hello @Vincent_91687
Your download settings seem right, as you are choosing to download the code using JTAG, into the FLASH memory.
I have tried to run the example on my setup, and I would like to mention the steps that I have taken:
- Powered the board via the 12V CON_1_PWR J1 connector,
- Enabled the external power supply via SW10, by switching it to the 1-2 position (please note that J3 also needs to be placed in the 1-2 position according to the board's schematics)
After performing these actions, the D1, D1, D3, D4 LEDs (MCU Power IN Indicators) should also be turned on.
Could you please let us know, if, after following these steps, besides the LED lighting next to the USB connector on the board, are the MCU Power IN Indicators also ON?
Thank you,
Irina
Hello Irina,
Thank you very much for your help.
I have changed the "Configuration Project Template"
I have also downloaded and installed PE Micro drivers (and restarted my computer), but unfortunately it didn't fix the issue.
Could you please confirm that my "Download" settings are correct ?
I have noticed something interresting in the log after connection failure
Does it means that the MCU is already running ?
The board is brand new, so I guess there is no code to run in the flash
Is there any jumper to set in order to tell the MCU to boot from the JTAG instead of flash ?
Thanks again for your help
Best regards
Vincent
Hello @Vincent_91687
By taking a look at the error you are encountering, I think that the problem might be related to a missing PEmicro Hardware Interface Drivers installation. These drivers are necessary for being able to use the on-board OpenSDA debugger.
Could you please check if these drivers are installed? If not, you could download and install them on your setup from the official PEmicro website.
Moreover, if you are aiming to use the S32K396-BGA-DC1, you could select directly the default configuration project that we are providing for this board, as the S32K396-Q289 selection matches the BGA-DC version of the EVB. The configuration project delivered for S32K396-BGA-DC1 enables the peripherals, pins, and clocks, according to this board's hardware particularities, hence it might be useful to start from this one instead of the one already selected.
Please let us know if this helps or if further details are required from our side.
Irina