Diferència entre revisions de la pàgina «Testing VirKO board»
m (→Programming from terminal) |
m (→Preparing uploading) |
||
(Hi ha 18 revisions intermèdies del mateix usuari que no es mostren) | |||
Línia 7: | Línia 7: | ||
'''It is very important to check jumper socket is at 3.3 volts position (by default it is at 5 volts)''' | '''It is very important to check jumper socket is at 3.3 volts position (by default it is at 5 volts)''' | ||
− | [[Image:VirKO_Programmer.png|center|thumb| | + | [[Image:VirKO_Programmer.png|center|thumb|Programmer board position]] |
== Preparing uploading == | == Preparing uploading == | ||
Línia 16: | Línia 16: | ||
* 2nd: Hold reset (red) button | * 2nd: Hold reset (red) button | ||
− | * 3rd: While holding reset button, hold IO0 button (close to J1 black connector). At this step | + | * 3rd: While holding reset button, hold IO0 button (close to J1 black connector). At this step both buttons are being pressed. |
* 4th: Release reset (red) button | * 4th: Release reset (red) button | ||
Línia 27: | Línia 27: | ||
Software tool: [https://github.com/espressif/esptool esptool.py] | Software tool: [https://github.com/espressif/esptool esptool.py] | ||
− | Firmware binary: [https://www.binefa.cat/nicko/VirKO/v1.02/miniVirKO_03_test.ino. | + | '''Firmware binary files''' (this is '''testing firmware for VirKO board'''): |
+ | |||
+ | * 1/4) [https://www.binefa.cat/nicko/VirKO/v1.02/boot_app0.bin boot_app0.bin] | ||
+ | |||
+ | * 2/4) [https://www.binefa.cat/nicko/VirKO/v1.02/bootloader_qio_40m.bin bootloader_qio_40m.bin] | ||
+ | |||
+ | * 3/4) [https://www.binefa.cat/nicko/VirKO/v1.02/miniVirKO_03_test.ino.bin miniVirKO_03_test.ino.bin] | ||
+ | |||
+ | * 4/4) [https://www.binefa.cat/nicko/VirKO/v1.02/miniVirKO_03_test.ino.partitions.bin miniVirKO_03_test.ino.partitions.bin] | ||
+ | |||
Terminal command: | Terminal command: | ||
− | esptool.py --port '''/dev/ttyUSB0''' write_flash - | + | esptool.py --chip esp32 --port '''/dev/ttyUSB0''' --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0xe000 '''boot_app0.bin''' 0x1000 '''bootloader_qio_40m.bin''' 0x10000 '''miniVirKO_03_test.ino.bin''' 0x8000 '''miniVirKO_03_test.ino.partitions.bin''' |
− | '''/dev/ttyUSB0''' in Windows operating system is '''COM'''''x'' port (being ''x'' programmer port number. For instance: | + | '''/dev/ttyUSB0''' in Windows operating system is '''COM'''''x'' port (being ''x'' programmer virtual port number. For instance: COM''3'') |
[[Image:programmingFWterminal.png|center|Programming firmware from terminal]] | [[Image:programmingFWterminal.png|center|Programming firmware from terminal]] | ||
+ | |||
+ | Once programming is finished, reset button should be pressed again. Or remove red programming board and unplug power supply and plug again. | ||
== Programming from Windows tool == | == Programming from Windows tool == | ||
− | [https://www.espressif.com/en/support/download/other-tools Flash Download Tools] (Explanation about Flash Download Tools use) | + | Prepare uploading with previously explained 5 steps, combining RST and IO0 buttons. |
+ | |||
+ | Windows program tool: [https://www.espressif.com/en/support/download/other-tools Flash Download Tools] ([https://www.aranacorp.com/en/generating-and-uploading-bin-files-for-esp32/ Explanation about Flash Download Tools use]) | ||
+ | |||
+ | Once programming is finished, reset button should be pressed again. Or remove red programming board and unplug power supply and plug again. | ||
= Testing firmware = | = Testing firmware = | ||
+ | [https://www.binefa.cat/nicko/VirKO/v1.02/virko_testing.mp4 Video with expecting test behavior] |
Revisió de 01:05, 9 set 2021
Contingut
Programming firmware
Nice greetings to Nicko from Barcelona, Catalonia.
Connecting programmer
Red board: FT232RL FTDI USB to TTL Serial Adapter Module used as a programmer
It is very important to check jumper socket is at 3.3 volts position (by default it is at 5 volts)
Preparing uploading
Follow these steps on VirKO board:
- 1st: Connect 5V microusb power supply
- 2nd: Hold reset (red) button
- 3rd: While holding reset button, hold IO0 button (close to J1 black connector). At this step both buttons are being pressed.
- 4th: Release reset (red) button
- 5th: Release IO0 button
After these steps, board is ready to be programmed.
Programming from terminal
Software tool: esptool.py
Firmware binary files (this is testing firmware for VirKO board):
- 1/4) boot_app0.bin
Terminal command:
esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0xe000 boot_app0.bin 0x1000 bootloader_qio_40m.bin 0x10000 miniVirKO_03_test.ino.bin 0x8000 miniVirKO_03_test.ino.partitions.bin
/dev/ttyUSB0 in Windows operating system is COMx port (being x programmer virtual port number. For instance: COM3)
Once programming is finished, reset button should be pressed again. Or remove red programming board and unplug power supply and plug again.
Programming from Windows tool
Prepare uploading with previously explained 5 steps, combining RST and IO0 buttons.
Windows program tool: Flash Download Tools (Explanation about Flash Download Tools use)
Once programming is finished, reset button should be pressed again. Or remove red programming board and unplug power supply and plug again.