background image

11

Use the BSP test project

STEP 1: DOWNLOAD & INSTALL S32DS FOR ARM V2018.R1 AND S32K SDK RTM 2.0.0 

  Download S32DS for ARM v2018.R1 from the following link:

http://www.nxp.com/S32DS

–  The download will require a NXP account login, user can register the account with any e-mail, and after download, you can 

install S32DS IDE with a 32-bit active code received by the e-mail when download

  Download and install the S32K SDK RTM 2.0.0

– 

S32 Design Studio for Arm

®

 2018.R1 Update 6 SDK S32K14x RTM v.2.0.0 (REV UP6)

Any questions, please refer to the following NXP technical community for help:

https://community.nxp.com/docs/DOC-335302

STEP 2: IMPORT AND COMPILE THE BSP TEST PROJECT (1)

  Open S32DS for ARM v2018.R1 IDE select 

File > Import

.

  Select General > Existing Projects into Workspace > 

Next

Summary of Contents for S32K148

Page 1: ...BOARD RBD P1 Mic input SW4 User bottom SW2 SW3 Touch Pad J25 J27 4G module connector Audio Codec STGL5000 Potentiometer SW5 User bottom TJA1101 MCU S32K148 SBC UJA113x J16 Audio OUT J15 Line OUT J15...

Page 2: ...00 and support AVB evaluation Integrate 8MB QSPI NOR Flash memory MX25L6433F Provide T BOX function module plugin interfaces 1 UART BLE module 1 UART GPS module 1 UART 4G communication module 2x user...

Page 3: ...nd is developed to accelerate customer s application prototype verification code development With the BSP layer the SW package provides a set of easy use API for application layer use The SW package i...

Page 4: ...12 J19 2 PTC13 PIN PORT J17 30 PTD31 J17 27 PTD26 J17 24 PTD25 J17 21 PTC26 J17 18 PTC25 J17 15 PTC24 J17 12 PTC22 J17 9 PTC21 J17 6 PTC20 J17 3 PTC18 PIN PORT J19 30 PTE17 J19 27 PTE18 J19 24 PTB19 J...

Page 5: ...1_RX CAN1_RX FTM3_CH2 NC STB PTC11 FTM3_CH5 FTM4_CH2 TRGMUX_IN10 NC CANH NC J31 2 CANL NC J31 17 TJA1043 Stinger HVON 14 TXD PTB13 FTM0_CH1 FTM3_FLT1 CAN2_TX NC CAN2 RXD PTB12 FTM0_CH0 FTM3_FLT2 CAN2_...

Page 6: ...1 FTM5_CH5 LPUART1_CTS ADC0_SE2 NC SAI I2 S AUDIO SGTL5000 SYS_MCLK PTD1 FTM0_CH3 LPSPI1_SIN FTM2_CH1 SAI0_MCLK NC SAI0 I2 S_SCLK PTA12 FTM1_CH6 CAN1_RX LPI2 C1_SDAS SAI0_BCLK NC I2 S_LRCLK PTA11 FTM1...

Page 7: ...EXT_HS1 green 0 5 ECU High Side driver output 1 5 CAN0H yellow 0 5 CAN bus 0 differential signal 6 ECU_EXT_ADC1 blue 0 5 ECU external analog input 1 7 ECU_EXT_ADC2 blue 0 5 ECU external analog input 2...

Page 8: ...U and is designed for S32K148 MCU low power static current measurement for this case R77 needs to be unmounted The jumper connection schematic is as below details can be found in the board schematic J...

Page 9: ...For S32K148 T BOX RDB some ENET and QuadSPI data lines are shared from the MCU each interface is separated by two 0 resistors By default the ENET data lines are enabled User can change the 0 configura...

Page 10: ...e board be powered by J31 8 GND and J31 1 12V Note There is no embedded debugger e g OpenSDA on the RDB so debug is done using PEMicro U Multilink FX through J12 with a mini 20 pin cable on debugger s...

Page 11: ...load you can install S32DS IDE with a 32 bit active code received by the e mail when download Download and install the S32K SDK RTM 2 0 0 S32 Design Studio for Arm 2018 R1 Update 6 SDK S32K14x RTM v 2...

Page 12: ...ECT 2 Select archive file Browse browse and choose S32K148_Based_T_BOX_BSP_TestPrj_SDK_RTM2_0 zip select the project Finish After importing the project clean it at first select the project in Project...

Page 13: ...13 STEP 2 IMPORT AND COMPILE THE BSP TEST PROJECT 3 Select the project in Project Explorer then right click choose Build Project The compile result is as below if no errors are found...

Page 14: ...S32K148_Based_T_BOX_BSP_TestPrj_ SDK_RTM2_0_Debug Debugger under Interface select right debugger and ensure Port has the right part number then in Additional Options check Emergency Kinetis Device Re...

Page 15: ...PC via J25 6 TXD J25 7 RXD and J25 12 GND For more details on the test results description and demo projects please refer to the Software User Guide Open a UART console e g Serial Port Utility on PC...

Page 16: ...apture 2x external analog input 2x Touch Sense PAD and etc The SW package also provides the following demo projects QSPI Flash test project LwIP based ENET and TJA1101 TCP IP sever client communicatio...

Page 17: ...CT A WORKSPACE Start program Click on S32 Design Studio for ARM v1 0 icon Select workspace Choose default see below example or specify new one Suggestion Uncheck the box Use this as the default and do...

Page 18: ...18 CREATE NEW PROJECT S32DS PROJECT Project Name Example FirstProject Project Type Select from inside executable or library folder Next Select Debugger Support and Library Support Click Finish...

Page 19: ...DA in the Debug Configuration Select your project and click on debug configuration Select the Debug configuration under GDB PEMicro Interface Debugging Click on Debugger tab Select OpenSDA as the inte...

Page 20: ...nfiguration has not been closed click on Debug button on bottom right Select Run Debug or hit F11 Note This method currently selects the desktop target project elf and gives an error Do not use until...

Page 21: ...ifferent value DEBUG BASICS VIEW AND ALTER REGISTERS View CPU registers in the Registers tab Click on a value to allow typing in a different value View peripheral registers in the EmbSys Registers tab...

Page 22: ...22 DEBUG BASICS BREAKPOINTS Add Breakpoint Point and Click Light blue dot represents debugger breakpoint DEBUG BASICS RESET TERMINATE DEBUG SESSION Reset program counter Terminate Ctl F2...

Page 23: ...3 Create a P E Debug Configuration Optional NEW P E DEBUG CONFIGURATION Click in debug configurations Create a new P E launch configuration Select S32K144 device Click Apply and debug your application...

Page 24: ...ww nxp com S32K148 T BOX NXP and the NXP logo are trademarks of NXP B V All other product or service names are the property of their respective owners 2019 NXP B V Document Number S32K148TBOXEFS REV 0...

Reviews: