there are three ways to write to the built-in flash during mass production.
(1) write and ship at lapis factory (2) write by the customer with a third-party flash writer (write using the flash memory interface) (3) write using the clock synchronous serial interface of the mcu command interface
for details on the flash memory rewrite function, refer to "function description" and "flash memory rewrite function" in the data sheet.