# UDS_S32K144_FlashDriver **Repository Path**: AllenMaa/UDS_S32K144_FlashDriver ## Basic Information - **Project Name**: UDS_S32K144_FlashDriver - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-17 - **Last Updated**: 2024-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # :beers: UDS_S32K144_FlashDriver ```c /* * ___ ___ _____ ___ * /__/\ ___ /__/\ / /::\ / /\ ___ * \ \:\ /__/\ | |::\ / /:/\:\ / /::\ /__/\ * \ \:\ \ \:\ | |:|:\ / /:/ \:\ / /:/\:\ \ \:\ * _____\__\:\ \ \:\ __|__|:|\:\ /__/:/ \__\:| / /:/~/:/ \ \:\ * /__/::::::::\ ___ \__\:\ /__/::::| \:\ \ \:\ / /:/ /__/:/ /:/___ ___ \__\:\ * \ \:\~~\~~\/ /__/\ | |:| \ \:\~~\__\/ \ \:\ /:/ \ \:\/:::::/ /__/\ | |:| * \ \:\ ~~~ \ \:\| |:| \ \:\ \ \:\/:/ \ \::/~~~~ \ \:\| |:| * \ \:\ \ \:\__|:| \ \:\ \ \::/ \ \:\ \ \:\__|:| * \ \:\ \__\::::/ \ \:\ \__\/ \ \:\ \__\::::/ * \__\/ ~~~~ \__\/ \__\/ ~~~~ */ ``` ## :book: 简介 S32K1xx 的 CAN 接 `周立功 USBCANFD-100U-mini`,使用 `ZCANPRO` 软件的 `ECU刷新` 功能进行测试。在加载相应的安全访问算法 DLL 文件 :package: [UDS_SecurityAccess][UDS_SecurityAccess] 之后,通过相应的 UDS 服务将 :package: [UDS_S32K144_FlashDriver][UDS_S32K144_FlashDriver] 的 hex 文件下载至 :package: [UDS_S32K144_Bootloader][UDS_S32K144_Bootloader] 在链接文件中为其预先指定起始地址的 RAM 空间中,并通过 `Flash Driver` 内实际包含的相应的 Flash 驱动函数的相对偏移量以及驱动函数本身来计算相应驱动函数的入口点在 RAM 内的偏移地址后,再通过函数指针的方式调用相应的编程、擦写、校验等 `Flash API` 以实现将 :package: [UDS_S32K144_APP][UDS_S32K144_APP] 烧写至 Flash 的 APP 片区,最终实现 `ECU刷新` 的整个 APP 更新流程。 ![Pic_ZCANPRO_ECU_Refresh][Pic_ZCANPRO_ECU_Refresh] ## :link: 关联工程 - :package: [UDS_SecurityAccess][UDS_SecurityAccess] - :package: [UDS_S32K144_Bootloader][UDS_S32K144_Bootloader] - :package: [UDS_S32K144_FlashDriver][UDS_S32K144_FlashDriver] - :package: [UDS_S32K144_APP][UDS_S32K144_APP] ## :gear: 硬件 & 软件 需求 ### 硬件需求 - S32K144-EVB - J-Link - USBCANFD-100U-mini - 12V External Power Supply ### 软件需求 - S32 Design Studio for ARM Version 2.2 - ZCANPRO - J-Flash
---
### :warning: 注意 ![Note_00][Note_00] ![Note_01][Note_01] ![Note_02][Note_02] [Pic_ZCANPRO_ECU_Refresh]: ./Pic_ZCANPRO_ECU_Refresh.png [Note_00]: ./Note_00.png [Note_01]: ./Note_01.png [Note_02]: ./Note_02.png [UDS_SecurityAccess]: https://github.com/SummerFalls/UDS_SecurityAccess [UDS_S32K144_Bootloader]: https://github.com/SummerFalls/UDS_S32K144_Bootloader [UDS_S32K144_FlashDriver]: https://github.com/SummerFalls/UDS_S32K144_FlashDriver [UDS_S32K144_APP]: https://github.com/SummerFalls/UDS_S32K144_APP