When debugging with IAR, the PC pointer address always stays at all FF.
Problem cause: Zigbee devices developed based on the Tuya SDK must support OTA upgrades, and this situation is most likely due to the absence of a bootloader being burned.
Solution:
After the IDE build, the following target files will be generated in the directoryTuyaOS\apps\tuyaos_demo_xx\output:
- tuyaos_demo_xx_DIFF[version].bin: The upgrade file for differential OTA.
- tuyaos_demo_xx_QIO[version].bin: The complete target file that includes the bootloader.
- tuyaos_demo_xx_UG_[version].bin: The OTA upgrade firmware package file.
After burning the QIO file or the bootloader file separately, normal debugging can be resumed.
The bootloader files are located in the directoryTuyaOS\tools\bootloader, and it is necessary to distinguish the target platform.
The burning software is located in the directoryTuyaOS\tools\commander, and the burning method can refer to the relevant guidance documents in thedocsdirectory of the development framework.