HI:
After burning and writing my image to BEE USER KEYS unsigned through security tools, there are two codes BOOT BIN APP.BIN works normally even after successful encryption. When I upgraded the APP through BOOT code using the serial port... The code can also function normally... I would like to ask if the APP for serial port upgrade in the future also has encryption function? Did the built-in key automatically encrypt the code when writing NOR FLASH to the serial port? (The app is just the second image)
已解决! 转到解答。
Hi,
SEC tool does not encrypt the additional files automatically, the additional images are written to flash same as it is configured in SEC tool. If you set encryption for the region starting at 0x60020000, you must encrypt the application image on command line. You can re-use code from the build script, you will need "bee_config.yaml" with the configuration for additional image and then call "nxpimage bee export" to encrypt the file.
Once the application is encrypted, you can use it as an additional image in SEC tool and also for the online updates.
Note: you can enable "pre_build" script in SEC tool and make encryption there. The pre-build script is invoked before the build, so with this you will always do all necessary steps together.
Hi,
SEC tool does not encrypt the additional files automatically, the additional images are written to flash same as it is configured in SEC tool. If you set encryption for the region starting at 0x60020000, you must encrypt the application image on command line. You can re-use code from the build script, you will need "bee_config.yaml" with the configuration for additional image and then call "nxpimage bee export" to encrypt the file.
Once the application is encrypted, you can use it as an additional image in SEC tool and also for the online updates.
Note: you can enable "pre_build" script in SEC tool and make encryption there. The pre-build script is invoked before the build, so with this you will always do all necessary steps together.