rt-thread/bsp/nuvoton/numaker-hmi-ma35d1/nuwriter_scripts/README.md

1.1 KiB

nuwriter_scripts

Some scripts can help you program firmware into storages in this folder.

Requirement

Python for Window

After installing Python, some plug-in as below must be installed.

$ pip3 install pyusb usb crypto ecdsa crcmod tqdm pycryptodome

Libusb for Window

In Windows platform, it is required to install libusb manually.

Step 1: Download the library extract the download file.
Step 2: Copy MS64\dll\libusb-1.0.dll to C:\Windows\System32.
Step 3: Copy MS64\dll\libusb-1.0.lib to C:\Users\<user name>\AppData\Local\Programs\Python\<python ver>\Lib.

Scripts

nuwriter_ddr_download_and_run.bat

Download rttthread binary file into DDR. The address is 0x80400000.

nuwriter_nand_programming.bat

Program header, DDR timing setting and rttthread binary file into NAND flash.

nuwriter_spinand_programming.bat

Program header, DDR timing setting and rttthread binary file into SPI NAND flash.