This tutorial is basically a documentation about the two switches on the daughter board.
- The Pyboard and the training daughter board from HyperPanel Lab (pict01).
- A installation of an Hyperpanel OS release on a Linux PC, including tools for flashing and debugging. You need at least two USB ports on the computer (one for flashing and running, one for terminal).
- The Olimex ARM-USB-OCD interface & cables (pict02).
- A USB/Mini-USB cable (pict03).
hypv9wr61 and higher.
On the daughter board, there are 2 switches to the left of the red LED. These two switches have different functions. The one on the left (switch 1) is used to define how to flash the Pyboard (from the Olimex interface or from the USB). The one on the right (switch 2) is used to define how the Pyboard is powered (from the JTAG interface or from the USB).
Switch “1” – ON – Flashing from USB.
This mode (pict05) is used for flashing the software from the USB.
– If not already installed, install “pip” and “pyusb” tools.
>> sudo apt-get install pip
>> pip install pyusb
– For converting the software to “dfu” format, enter following commands:
>> python $hhome/os/linux/dfu.py -b 0x08000000:hypos.bin hypos.dfu
– With the Pyboard unplugged, set the switch “1” to ON.
– Plug the USB/Mini-USB cable from the Pyboard to USB on computer.
– For flashing the software, enter following commands:
>> python $hhome/os/linux/pydfu.py -u hypos.dfu