|
2 years ago | |
---|---|---|
.. | ||
ddrimg | 2 years ago | |
README.md | 2 years ago | |
UnpackImage.py | 2 years ago | |
header-nand.json | 2 years ago | |
header-sd.json | 2 years ago | |
install_linux.sh | 2 years ago | |
nuwriter.py | 2 years ago | |
nuwriter_ddr_download_and_run.bat | 2 years ago | |
nuwriter_ddr_download_and_run.sh | 2 years ago | |
nuwriter_nand_programming.bat | 2 years ago | |
nuwriter_nand_programming.sh | 2 years ago | |
nuwriter_sd_programming.bat | 2 years ago | |
nuwriter_sd_programming.sh | 2 years ago | |
nuwriter_spinand_programming.bat | 2 years ago | |
nuwriter_spinand_programming.sh | 2 years ago | |
otp_writer.bin | 2 years ago | |
pack-nand.json | 2 years ago | |
pack-sd.json | 2 years ago | |
xusb.bin | 2 years ago | |
xusbcom.py | 2 years ago |
Some scripts can help you program firmware into storages in this folder.
After installing Python3, some plug-in as below must be installed.
pip3 install pyusb usb crypto ecdsa crcmod tqdm pycryptodome
Notice:
On 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.
NuWriter must install WinUSB4NuVCOM.exe on the computer.
If your NuWriter_MA35 python running is ready, you can do following batch script files for Window directly.
Download rtthread.bin binary file into DDR. The address is 0x80400000.
Program header, DDR timing setting and rtthread.bin binary file into SD card or EMMC.
Program header, DDR timing setting and rtthread.bin binary file into SPI NAND flash.
Program header, DDR timing setting and rtthread.bin binary file into NAND flash.
If your NuWriter_MA35 python running is ready, you can do following bash script files for Linux directly. If not, the install_linux.sh will help user to install related python module installation.
# ./install_linux.sh
Download rtthread.bin binary file into DDR. The address is 0x80400000.
Program header, DDR timing setting and rtthread.bin binary file into SD card or EMMC.
Program header, DDR timing setting and rtthread.bin binary file into SPI NAND flash.
Program header, DDR timing setting and rtthread.bin binary file into NAND flash.
Create symbolic folder conv failed
Due to the python execution file size and saving network bandwidth, we just only release the python code in this repository. We also provide NuWriter_MA35.exe python execution. You can run the packaged app without installing a Python interpreter or any modules. You can use NuWriter_MA35.exe and do some modification.
To modify "py -3 nuwriter.py" to "NuWriter_MA35.exe"
For example, the nuwriter_ddr_download_and_run.bat modification is as following:
:forever_develop
NuWriter_MA35.exe -a ddrimg\enc_ddr3_winbond_256mb.bin
IF %ERRORLEVEL% EQU 0 (
NuWriter_MA35.exe -o execute -w ddr 0x80400000 ..\rtthread.bin
)
pause
goto :forever_develop