target icon

Purpose

This tutorial explains how to connect the Pyboard to a PC Linux for flashing the software and for serial traces output.

list icon

Prerequisites

  • The Development Kit provided by Hyperpanel Lab.
  • Last release of Hyperpanel OS software for Pyboard.
  • PC linux.

list icon

Software release

hypv9wr58 and higher

align left icon

Description

1.

Connect the Pyboard to the Olimex ARM-UB-OCD interface (pict01 and pict02) and the Olimex to the PC (pict03).

2.

Connect the serial cable to ASY0 scart of the daughter board If you use a standard ASY / USB cable, the connectors are (pict04):

  • Black cable -> GND
  • Yellow cable -> TX signal
  • Orange cable -> RX signal

Connect the USB scart of the cable to the PC (pict05).

3.

On the PC Linux, the Hyperpanel OS software have to be installed. For following information, the software is hypv9wr58, installed in home/hyperpanel directory. Open a shell and enter the following commands:

cd /home/hyperpanel/hypv9wr58/os/linux
source stm32py 
exe
hgdb

GDB should start and display information lines like:

 

GNU gdb (7.10-1ubuntu3+9) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. 
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". (gdb)

4.

Enter the flashing command:

  • (gdb) romload stm32py hypos

Wait (almost 30 seconds). The debugger should display information lines similar to (pict06):

Open On-Chip Debugger 0.10.0+dev-00001-g0ecee83-dirty (2017-02-10-06:53)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
0x20000046 in ?? ()
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00001008 msp: 0x20002000
auto erase enabled
wrote 393216 bytes from file hypos.bin in 12.594071s (30.491 KiB/s)
(gdb)

5.

Start the software (pict07):

(gdb) continue

6.

On another shell, access to the trace with (for example) minicom. The release includes minicom configuration file. Enter following commands:

cd /home/hyperpanel/hypv9wr58/os/linux
source stm32py
minicom python

On the daughter board, press the reset button (RST1), the menu is launched (pict08).

7.

You can now use the menu, with the keyboard of the computer, or with the infrared RCU. You can also use the button BUT1 (for red light), BUT2 (for green light) and BUT3 (for yellow light). You can see that the software is running because of the clock on the top of the screen.

 

Terminal

sauron stm32py ~/hypv9wr58/stm32py/exe >> hgdb
GNU gdb (7.10-1ubuntu3+9) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) romload stm32py hypos
Open On-Chip Debugger 0.10.0+dev-00001-g0ecee83-dirty (2017-02-10-06:53)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
0x00001008 in ?? ()
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x00001008 msp: 0x20002000
auto erase enabled
wrote 393216 bytes from file hypos.bin in 12.508219s (30.700 KiB/s)
(gdb) continue
Continuing.