Olimex Driver



Overview¶

Zephyr applications use the olimex_stm32_e407 board configurationto run on the OLIMEX-STM32-E407 open source hardware. It is based onthe STMicroelectronics STM32F407ZG ARM Cortex-M4 CPU.

Hi community, I have a problem getting the Olimex ARM-USB-OCD-H to work on Windows 10 with an esp32. I’m somewhat sure that it is a driver issue. First I followed the instruction from the platformio website. OLIMEX Open Source Hardware Development Boards. STMP1-OLinuXino-LIME2 Industrial grade Linux Computer project took us almost an year of work to build proper software support for our hardware with mainline uboot and kernel.

Olimex driver

Hardware¶

Information about the board can be found at theOLIMEX-STM32-E407 website and OLIMEX-STM32-E407 user manual.The ST STM32F407ZG Datasheet contains the processor’sinformation and the datasheet.

Supported Features¶

The olimex_stm32_e407 board configuration supports the followinghardware features:

InterfaceControllerDriver/Component
NVICon-chipnested vectoredinterrupt controller
SYSTICKon-chipsystem clock
UARTon-chipserial port
GPIOon-chipgpio

Other hardware features are not supported by the Zephyr kernel.

Pin Mapping¶

LED¶

  • LED (green) = PC13
  • PWR_LED (red) = power

External Connectors¶

JTAG/SWD debug

PIN #Signal NamePin #Signal Name
1+3.3V11
2+3.3V12GND
3PB4 / TRST13PB3 / TDO
4GND14GND
5PA15 / TDI15PB4 / TRST
6GND16GND
7PA13 / TMS17
8GND18GND
9PA14 / TCK19+5V_JTAG
10GND20GND

UEXT

PIN #Wire NameSTM32F407 port
1+3.3V
2GND
3PC6/USART6_TXPC6
4PC7/USART6_RXPC7
5PB8/I2C1_SCLPB8
6PB9/I2C1_SDAPB9
7PC2/SPI2_MISOPC2
8PC3/SPI2_MOSIPC3
9PB10/SPI_SCK/UART3_TXPB10
10RB7/UEXT_CSPB7
Olimex Driver

Arduino Headers¶

CON1 power

Olimex
PinSignal NameSTM32F407 Pin#
RSTRESET23
3V3VCC (3V3)N/A
5VVDD (5V)N/A
GNDGNDN/A
GNDGNDN/A
VINVINN/A

CON2 analog

PinSignal NameSTM32F407 Pin#
A0PC026
A1PF618
A2PF719
A3PF820
A4PF921
A5PF1022

CON3 digital

PinSignal NameSTM32F407 Pin#
D0PB7/USART1_RX137
D1PB6/USART1_TX136
D2PE21
D3PE43
D4PE54
D5PR65
D6PG792
D7PG893

CON4 digital

Openocd
PinSignal NameSTM32F407 Pin#
D8PG1235
D9PG1570
D10PA440
D11PB543
D12PA642
D13PA541
GNDAGND31
AREFAREF32

PD

PIN #Signal NamePin #Signal Name
1+3.3V11PD8
2GND12PD9
3PD013PD10
4PD114PD11
5PD2/SD_MMC15PD12
6PD316PD13
7PD417PD14
8PD518PD15
9PD619+5V
10PD720GND

PE

PIN #Signal NamePin #Signal Name
1+3.3V11PE8
2GND12PE9
3PE013PE10
4PE114PE11
5PE2/D215PE12
6PE316PE13
7PE4/D317PE14
8PE5/D418PE15
9PE6/D519+5V
10PE720GND

PF

PIN #Signal NamePin #Signal Name
1+3.3V11PF8/A3
2GND12PF9/A4
3PF013PF10/A5
4PF114PF11/A6
5PF215PF12
6PF316PF13
7PF417PF14
8PF518PF15
9PF6/A119+5V
10PF7/A220GND

PG

PIN #Signal NamePin #Signal Name
1+3.3V11PG8/D7
2GND12PG9
3PG013PG10/UEXT_CS
4PG114PG11/TX_EN
5PG215PG12/D8
6PG316PG13/TXD0
7PG417PG14/TXD1
8PG518PG15/D9
9PG619+5V
10PG7/D620GND

System Clock¶

Olimex Drivers

OLIMEX-STM32-E407 has two external oscillators. The frequency ofthe slow clock is 32.768 kHz. The frequency of the main clockis 12 MHz. The processor can setup HSE to drive the master clock,which can be set as high as 168 MHz.

Programming and Debugging¶

Olimex

The OLIMEX-STM32-E407 board does not include an embedded debug toolinterface. You will need to use ST tools or an external JTAG probe.In the following examples a ST-Link V2 USB dongle is used.

Flashing an application to the Olimex-STM32-E407¶

The sample application Hello World is being used in this tutorial. Tobuild the Zephyr kernel and application, enter:

Connect the ST-Link USB dongle to your host computer and to the JTAG port ofthe OLIMEX-STM32-E407 board.Then, enter the following command:

Run a serial host program to connect with your board:

Olimex Jtag Tiny Driver

After reseting the board you should see the following message:

Debugging¶

Olimex Usb Driver

Access gdb with the following make command: