S32K3 T-BOX : SJA1110 Firmware update using SPI HAP : S32DS-3.5 : RTD-3.0.0

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

S32K3 T-BOX : SJA1110 Firmware update using SPI HAP : S32DS-3.5 : RTD-3.0.0

S32K3 T-BOX : SJA1110 Firmware update using SPI HAP : S32DS-3.5 : RTD-3.0.0

 ------------------------------------------------------------------------------
* Test HW: S32K3 T-BOX
* MCU: S32K324
* Compiler: S32DS3.5
* SDK release: RTD 3.0.0
* Debugger: PE Micro
* Target: internal_FLASH
********************************************************************************

 The purpose of this demo application is to present a usage of the
 SPI-HAP of S32K3xx MCU to download firmware to SJA1110.

SPI using Interrupt working code :--
S32K324_SPI_DMA_SJA1110_Load_firmware__Working__SPI__Interrupt.zip

SPI using DMA working code :--
S32K324_SPI_DMA_SJA1110_Load_firmware__SPI_DMA_not_working.zip

Firmware image of the SJA1110 is stored inside the S32K3 flash memory..
See the linker file of S32K3, we specify the location where the firmware image is present.

Dinesh_Guleria_0-1724463137478.png



This this firmware attached to be loaded to SJA1110, any one of the firmware can be selected and renamed to flash_image.bin  :--
1>  flash_image.bin  --> Green LED blink on SJA1110
2> flash_image_RED.bin  --> Green LED blink on SJA1110


If you use your proprietary SJA1110 binary firmware, then this example to work, you have to change this MACO, in SJA1110_APP.h file  :--

Dinesh_Guleria_1-1724750091671.png


You can get the size of the SJA1110 image from the MAP file of the attached project. Check for this __sja1110_BIN_SIZE, Symbol in MAP file :--

Dinesh_Guleria_2-1724750222059.png

 



Switch connection to S32K3 SPI pins :--

Dinesh_Guleria_0-1724421673930.png

 

LED connected to these pins of SJA1110, on T-BOX hardware :---

Dinesh_Guleria_1-1724421742999.png

 

Attachments
No ratings
Version history
Last update:
‎08-27-2024 02:18 AM
Updated by: