This example code allows users to perform firmware updates via the USB_HID interface. Users can first encrypt the firmware using Nuvoton's CryptoTool, then use the Nuvoton NuMicro ISP Programming Tool to write the encrypted firmware to the NuMaker-M467HJ. Upon successful reception, the M467 will invoke the decryption API within the XOM, leveraging hardware encryption accelerators and a 256-bit AES key stored in the Key Store Flash to decrypt the encrypted firmware. Subsequently, the firmware will be written to APROM to complete the entire update process.
You can download the sample code at https://www.nuvoton.com/resource-download.jsp?tp_GUID=EC012024062102233115