Custom Firmware Adapt Defines

Custom firmware - adapt defines

如果您已经按照 "Project Artery IC" 或 "Project STM32 IC" instruction 操作,可能已经修改了必要 defines。

Bootloader

Bootloader 的重要 defines 位于 dfu_update.h header file。

请修改 dfu_update.h,使其适配您的 custom project。以下两个 defines 应根据您 product 的 RDM definition 设置。如果没有 RDM definition,请联系我们。

Bootloader RDM defines

请根据您的 flash layout 修改 flash defines。Example project 中如下:

Bootloader flash defines

Application

Application 使用 processor defines,这些 defines 取决于您使用的 hardware / IC。请根据自己的需求修改。

USER_FLASH_ADDRESSStart of the Flash
USER_FLASH_STARTStart of the Flash where settings will be saved. Address after the application
USER_FLASH_SIZEFlash area where settings will be saved
USER_FLASH_PAGE_SIZESize of the flash pages
USER_STORAGEOBJECTSCount of storage objects saved using managed flash library
USER_FLASH_BYTEALIGNMENTFlash write operation alignment in bytes
USER_FLASH_ADDRESS_CONFIGFlash address where application information from bootloader is saved
USER_FLASH_ADDRESS_APPFlash address where application starts

接下来请根据需求修改 defines.cdefines.h 中的 defines:

Fixture defines
Fixture define values

然后修改 dmx_implementation.c,使其匹配 product 的 DMX implementation。为了更好理解 interface,请重点查看 Vision DMX chapters:
https://server.kk-t.eu/ExternalVision/DMXFrame
https://server.kk-t.eu/ExternalVision/DMXPersonality

rdm_Implementation.c 中,需要根据您的需求 adapt RDM commands。请特别查看 RDM Vision Command。由于 legacy naming,该 function 在 example 中称为 RdmExtGetVision。更多信息可在 Vision RDM chapter 中找到:

https://server.kk-t.eu/ExternalVision/RDMIntroduction
https://server.kk-t.eu/ExternalVision/RDMPID
https://server.kk-t.eu/ExternalVision/RDMPIDVision

成功修改所有 defines 并 adapt 必要 functions 后,可以切换到 Test & Run chapter 来 confirm functions。

© KKT Künzler Technologies GbR.
Developed by KKT - Künzler Technologies GbR