File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,27 @@ Linux based OS
5656- git clone https://github.com/bbogush/nand_programmer.git
5757- cd nand_programmer/firmware
5858- make
59- ## Burn firmware (JTAG)
59+ ## Burn firmware
60+ ### JTAG (J-Link)
6061- connect JTAG (J-Link) to board.
6162- sudo apt-get install openocd
6263- cd ~ /dev/nand_programmer/nand_programmer/firmware
63- - make install
64- - NOTE: first time flash of chip should be burnt via internal bootloader because JTAG interface is not active.
64+ - make program
65+ - NOTE: first time flash of chip should be burnt via internal bootloader (DFU )because JTAG interface is not active.
66+ ### SWD (ST-Link)
67+ - sudo apt-get install libusb-1.0-0-dev
68+ - cd ~ /dev/
69+ - git clone https://github.com/texane/stlink.git
70+ - cd stlink/
71+ - make release
72+ - cd build/Release
73+ - sudo make install
74+ - sudo cp ../../etc/udev/rules.d/* /etc/udev/rules.d/
75+ - sudo udevadm control --reload-rules
76+ - sudo udevadm trigger
77+ - connect ST-Link to board
78+ - cd ~ /dev/nand_programmer/nand_programmer/firmware
79+ - st-flash write ./obj/prog.bin 0x8000000
6580## Burn firmware (internal bootloader)
6681- download STM DFU programmer software.
6782- set BOOT0 switch to 1 to start internal bootloader.
You can’t perform that action at this time.
0 commit comments