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,请联系我们。

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

Application
Application 使用 processor defines,这些 defines 取决于您使用的 hardware / IC。请根据自己的需求修改。
| USER_FLASH_ADDRESS | Start of the Flash |
| USER_FLASH_START | Start of the Flash where settings will be saved. Address after the application |
| USER_FLASH_SIZE | Flash area where settings will be saved |
| USER_FLASH_PAGE_SIZE | Size of the flash pages |
| USER_STORAGEOBJECTS | Count of storage objects saved using managed flash library |
| USER_FLASH_BYTEALIGNMENT | Flash write operation alignment in bytes |
| USER_FLASH_ADDRESS_CONFIG | Flash address where application information from bootloader is saved |
| USER_FLASH_ADDRESS_APP | Flash address where application starts |
接下来请根据需求修改 defines.c 和 defines.h 中的 defines:


然后修改 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。