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
56
56
- git clone https://github.com/bbogush/nand_programmer.git
57
57
- cd nand_programmer/firmware
58
58
- make
59
- ## Burn firmware (JTAG)
59
+ ## Burn firmware
60
+ ### JTAG (J-Link)
60
61
- connect JTAG (J-Link) to board.
61
62
- sudo apt-get install openocd
62
63
- 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
65
80
## Burn firmware (internal bootloader)
66
81
- download STM DFU programmer software.
67
82
- set BOOT0 switch to 1 to start internal bootloader.
You can’t perform that action at this time.
0 commit comments