Waveshare Open429I-C (HAL) User manual

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 1/ 47
Open429I-C (HAL)
User Manual
CONTENT
1. Overview...............................................................................................................................................4
1.1. What’s on the mother board ........................................................................................4
1.2. What’s on the core429I...................................................................................................6
2. Demo .....................................................................................................................................................8
2.1. LED.............................................................................................................................................8
2.2. KEY.............................................................................................................................................9
2.3. Interrupt...................................................................................................................................9
2.4. TIM.............................................................................................................................................9
2.5. PWM ......................................................................................................................................10
2.6. USART....................................................................................................................................10
2.6.1. USART_Printf..........................................................................................................10
2.6.2. USART_IT.................................................................................................................11
2.6.3. USART_DMA...........................................................................................................11
2.7. ADC+DMA...........................................................................................................................12
2.8. DAC ........................................................................................................................................12
2.9. I2C-AT24C02.......................................................................................................................13
2.10. SPI-AT45DBXX....................................................................................................................14
2.11. CAN........................................................................................................................................15

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 2/ 47
2.12. DS18B20 ...............................................................................................................................16
2.13. RTC .........................................................................................................................................16
2.14. MCU_Temperature............................................................................................................17
2.15. IWDG .....................................................................................................................................17
2.16. WWDG ..................................................................................................................................18
2.17. RNG........................................................................................................................................18
2.18. CRC.........................................................................................................................................19
2.19. SDIO.......................................................................................................................................19
2.20. FATFS.....................................................................................................................................21
2.21. DCMI-OV2640 ....................................................................................................................22
2.22. I2S-WM8960 .......................................................................................................................23
2.23. SAI-WM8960.......................................................................................................................24
2.24. SAI-WM8960 Record .......................................................................................................24
2.25. FSMC-NANDFLASH..........................................................................................................25
2.26. FSMC-SDRAM.....................................................................................................................26
2.27. LDTC.......................................................................................................................................27
2.28. DMA2D .................................................................................................................................28
2.29. LCD_Display.........................................................................................................................29
2.30. Touch.....................................................................................................................................30
2.30.1. Touch 4.3inch 480x272 ......................................................................................30
2.30.2. Touch 7inch 800x480..........................................................................................31
2.31. STemWin ..............................................................................................................................32

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 3/ 47
2.32. USB FS ...................................................................................................................................33
2.32.1. USB FS Device (CDC_Standalone)...................................................................33
2.32.2. USB FS Device (HID_Standalone)....................................................................34
2.32.3. USB FS Device (MSC_Standalone)..................................................................35
2.32.4. USB FS Host (HID_Standalone)........................................................................36
2.32.5. USB FS Host (MSC_Standalone)......................................................................37
2.32.6. USB FS Host (DynamicSwitch_Standalone).................................................38
2.33. USB HS ..................................................................................................................................39
2.33.1. USB HS Device (HID_Standalone)...................................................................39
2.33.2. USB HS Device (MSC_Standalone).................................................................40
2.33.3. USB HS Host (MSC_Standalone).....................................................................40
2.34. ETH .........................................................................................................................................41
2.34.1. LwIP_TCP_Echo_Client.........................................................................................41
2.34.2. LwIP_TCP_Echo_Server .......................................................................................42
2.34.3. LwIp_UDO_Echo_Client ......................................................................................43
2.34.4. LwIP_UDO_Echo_Server......................................................................................44
2.34.5. LwIP_HTTP_Server_Raw......................................................................................45
2.35. FreeRTOS..............................................................................................................................46
2.36. uCOS III.................................................................................................................................46

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 4/ 47
1. OVERVIEW
Open429I-C is an STM32 development board designed for the STM32F429IGT6
microcontroller, consists of the mother board and the MCU core board Core429I.
The Open429I-C supports further expansion with various optional accessory
boards for specific application. The modular and open design makes it the ideal for
starting application development with STM32 series microcontrollers.
1.1. WHAT’S ON THE MOTHER BOARD
1. MCU core board connector: for easily
connecting the Core429I
2. USART3 interface: easily connects to
RS232, RS485, USB TO 232, etc.
3. DCMI interface: for connecting
camera
4. Capacitive touch panel interface: for
connecting capacitive touch panel
5. CAN2 interface: for connecting CAN
modules
6. CAN1 interface: for connecting CAN
modules
7. SDIO interface: for connecting Micro
SD module, features much faster
access speed rather than SPI
8. ULPI interface: for connecting high-
speed USB peripheral (the STM32F429I

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 5/ 47
integrates USB HS controller without
any PHY device)
9. LCD interface 1: for connecting 7inch
LCD
10. ONE-WIRE interface: easily connects
to ONE-WIRE devices (TO-92
package), such as temperature sensor
(DS18B20), electronic registration
number (DS2401), etc.
11. LCD interface 2: for connecting
4.3inch LCD
12. I2C2/I2C3 interface: easily connects
to I2C peripherals such as I/O
expander (PCF8574), EEPROM
(AT24Cxx), etc.
13. SAI1 interface: for connecting audio
modules like UDA1380 module
14. Ethernet interface: for connecting
Ethernet modules
15. USB connector: USB to UART via the
onboard convertor PL2303
16. SPI1/SPI2 interfaces:
a) easily connects to SPI peripherals
such as DataFlash (AT45DBxx), SD
card, MP3 module, etc.
b) easily connects to AD/DA
modules (SPI1 features AD/DA
alternative function)
17. I2S2/I2S3/I2C1 interface: easily
connects to I2S peripherals such as
audio module, etc.
18. 8-bit FMC interface: easily connects
to peripherals such as NandFlash
19. 5V DC jack
20. 5V/3.3V power input/output: usually
used as power output, also common-
grounding with other user board
21. MCU pins connector: all the MCU I/O
ports are accessible on expansion
connectors for further expansion
22. PL2303: USB to UART convertor
23. LEDs: convenient for indicating I/O
status and/or program running state
24. PL2303 TX-LED / RX-LED
25. 12MHz crystal: for PL2303
26. Joystick: five positions
27. WAKE UP button: used as regular
button, and/or wake up the STM32
MCU from sleep
28. USB to UART jumper
29. LED jumper
a) short the jumper to connect to
default I/Os used in example code
b) open the jumper to connect to
custom I/Os via jumper wires
30. Button/Joystick jumper
a) short the jumper to connect to
default I/Os used in example code
b) open the jumper to connect to
custom I/Os via jumper wires

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 6/ 47
1.2. WHAT’S ON THE CORE429I
1. STM32F429IGT6: the high performance STM32 MCU which features:
⚫Core: Cortex-M4 32-bit RISC
⚫Feature: single-cycle DSP instructions
⚫Operating Frequency: 180MHz, 225 DMIPS/1.25 DMIPS/MHz
⚫Operating Voltage: 1.8V-3.6V
⚫Package: LQFP176
⚫Memories: 1024kB Flash, 256+4kB SRAM
⚫MCU communication Interfaces:
⚫6 x SPI, 4 x USART, 4 x UART, 2 x I2S, 1 x SAI, 3 x I2C
⚫1 x FMC, 1 x SDIO, 2 x CAN
⚫1 x LCD-TFT
⚫1 x USB 2.0 HS/FS controller (with dedicated DMA)
⚫1 x USB HS ULPI (external PHY required)
⚫1 x 10/100 Ethernet MAC
⚫1 x 8 to 14-bit camera interface
⚫AD & DA converters: 3 x AD (12-bit, 1μs, shares 24 channels); 2 x DA (12-bit)
⚫Debugging/Programming: supports JTAG/SWD interfaces, supports IAP
2. IS42S16400J: SDRAM 1 Meg Bits x 16 Bits x 4 Banks (64-MBIT)
3. AMS1117-3.3: 3.3V voltage regulator
4. MIC2075: onboard USB power management device
5. Power supply switch, powered from 5Vin or USB connection
6. Boot mode selection, for configuring BOOT0 pin

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 7/ 47
7. Power indicator
8. VBUS LED
9. Reset button
10. 8M crystal
11. 32.768K crystal, for internal RTC with calibration
12. JTAG/SWD interface: for debugging/programming
13. USB connector, supports Device and/or Host
14. MCU pins expander, VCC, GND and all the I/O pins are accessible on expansion connectors
for further expansion
15. 5Vin pinheader, 5V power supply is required when using USB HOST/OTG
16. USB OTG/HOST jumper
⚫short the jumper when using USB OTG/HOST
⚫open the jumper to disconnect from related I/O port
17. VBAT selection jumper
⚫short the jumper to use system power supply
⚫open the jumper to connect the VBAT to external power, such as battery
18. VREF selection jumper
⚫short the jumper to connect VREF+ to VCC
open the jumper to connect VREF+ to other custom pin via jumper wire

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 8/ 47
2. DEMO
⚫KEIL MDK Version:5.12or above.
⚫Programmer/Debugger: ST-LINK V2
⚫Programming/Debugging interface: JTAG/SWD
⚫Results of demo which based on serial port are all checked via onboard PL2303;
connect the USB cable to the USB TO UART interface.
⚫PC’s serial port settings:
Baud rate
115200
Data bits
8
Stop bits
1
Parity bits
None
Flow control
None
Note: All the below Demo results are available when push the reset button after the
program has been downloaded.
2.1. LED
⚫Overview
IO output demo
⚫Hardware connection
Fit all the jumpers LED JMP
⚫Operation and result
The LED blinking

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 9/ 47
2.2. KEY
⚫Overview
IO input, output demo
⚫Hardware connection
Fit all the jumpers LED JMP and JOYSTICK JMP
⚫Operation and result
The LED status will keep changing when push the buttons
2.3. INTERRUPT
⚫Overview
GPIO Interrupt demo
⚫Hardware connection
Fit all the jumpers LED JMP and JOYSTICK JMP
⚫Operation and result
The LED1 status will keep changing when push the buttons
2.4. TIM
⚫Overview
Timer demo
⚫Hardware connection
Fit all the jumpers LED JMP
⚫Operation and result
The LED1 flashing

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 10 / 47
2.5. PWM
⚫Overview
PWM demo
⚫Hardware connection
Fit all the jumpers LED JMP
⚫Operation and result
The brightness of LED1 keep changing
2.6. USART
⚫Overview
Three demos (Roll polling, Interrupt, DMA)
⚫Hardware connection
Connect USB TO UART interface to USB port of PC by mini USB cable. This port is
connected to USART1 by default, you can also change it by setting jumper UART1
JMP.
2.6.1. USART_PRINTF
⚫Overview
Use Roll Polling measure, reconfigure Printf function for data printing.
⚫Operation and result
Download codes then press Reset button. Information are printed to UART as
below:
UART Printf Example: retarget the C library printf function to the UART

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 11 / 47
welcome to www.waveshere.com !!!
welcome to www.waveshere.com !!!
welcome to www.waveshere.com !!!
2.6.2. USART_IT
⚫Overview
Use HAL Interrupt measure, UART demo.
⚫Operation and result
Download codes then press Reset button. With Serial assistance software, it
require to you input 10 characters, it will send and echo (for example, input string
Open4x9i-C)
****UART-Hyperterminal communication based on IT ****
Enter 10 characters using keyboard :
Open4x9I-C
Example Finished
2.6.3. USART_DMA
⚫Overview
Use HAL DMA measure, UART demo.
⚫Operation and result
Download codes then press Reset button. Information are printed as below:
**** UART-Hyperterminal communication based on DMA ***
WaveShare Open4X9I-C Board

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 12 / 47
2.7. ADC+DMA
⚫Overview
AD acquisition demo, DMA transfer
⚫Hardware connection
Connect Analog Test Board to SPI1 (ADC+DAC)connector
⚫Operation and result
Rotate the onboard potentiometer, the below message will be printed on the
serial debugging assistant:
******** ADC DMA Example ********
AD1 value = 3.298V
AD2 value = 1.647V
******** ADC DMA Example ********
AD1 value = 3.298V
AD2 value = 1.647V
2.8. DAC
⚫Overview
DA output demo, output via DMA channel

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 13 / 47
⚫Hardware connection
Connect the Analog Test Board to the SPI1 (ADC+DAC)connector
Connect the Analog Test Board onboard 5V interface to the board onboard 5V
interface via jumper wire.
⚫Operation and result
You may hear sound from the Analog Test Board.
2.9. I2C-AT24C02
⚫Overview
Read and write data on E2PROM via I2C protocol

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 14 / 47
⚫Hardware connection
Connect the AT24/FM24 Board to the board via I2C1 connector.
⚫Operation and result
The below information will be printed on the serial debugging assistant:
***************I2C Example*******************************
EEPROM 24C02 Write Test OK
EEPROM 24C02 Read Test OK
2.10. SPI-AT45DBXX
⚫Overview
Drive the AT45DBXX DataFlash Board via SPI interface
⚫Hardware connection
Connect the AT45DBXX DataFlash Board via SPI1 connector

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 15 / 47
⚫Operation and result
Information are printed on the serial assistant:
****** SPI Example *****
AT45DBXX ID is 0x1F 0x24 0x00 0x00
FALSH AT45DBXX Write Test:
0 1 2 3 4 …… 255
FALSH AT45DBXX Read Test:
0 1 2 3 4 …… 255
2.11. CAN
⚫Overview
CAN1 TO CAN2 communication demo
⚫Hardware connection
Connect the two CAN modules to the onboard CAN1 and CAN2 interface
Connect the two CAN modules via jumper wire (CANL<->CANL, CANH<->CANH)

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 16 / 47
⚫Operation and result
Information are printed to serial assistant:
**** This is CAN test program ****
StdId : 123
RxMsg : CAN Test
StdId : 123
RxMsg : CAN Test
2.12. DS18B20
⚫Overview
Temperature detecting demo
⚫Hardware connection
Connect DS18B20 to OneWire interface
⚫Operation and result
Information are printed to serial assistant
DS18B20 Example !!!!
Temperate: 24.0 ℃
Temperate: 24.0 ℃
2.13. RTC
⚫Overview
RTC demo (STM32 internet RTC)

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 17 / 47
⚫Operation and result
Information are printed to serial assistant (You can change time by modifying
MX_RTC_Init function in rtc.c file)
2015/09/08
18:50:00
2015/09/08
18:50:01
2.14. MCU_TEMPERATURE
⚫Overview
Temperature of STM32 board measuring demo
⚫Operation and result
Information are printed to serial assistant:
MCU Temperature : 32.6℃
MCU Temperature : 32.6℃
MCU Temperature : 32.6℃
2.15. IWDG
⚫Overview
Independent watchdog demo
⚫Operation and result
Information are printed to serial assistant:

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 18 / 47
***** WaveShare Open7XXI-C Board *****
Refreshes the IWDG !!!
Refreshes the IWDG !!! Refreshes the IWDG !!!
2.16. WWDG
⚫Overview
Windows watchdog demo
⚫Operation and result
Information are printed to serial assistant
***** WaveShare Open7XXI-C Board *****
waveshare.net !!!
waveshare.net !!!
waveshare.net !!!
2.17. RNG
⚫Overview
Random numbers generate demo
⚫Operation and result
Information are printed to serial assistant
Random 32bit Numbers : 0x3664130B !!!
Random 32bit Numbers : 0xFF7D82B4 !!!
Random 32bit Numbers : 0xD1BAFF04 !!!
Random 32bit Numbers : 0xAAC48854 !!!

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 19 / 47
2.18. CRC
⚫Overview
CRC demo
⚫Operation and result
Information are printed to serial assistant
****** CRC Test Example *****
CRC right value
2.19. SDIO
⚫Overview
Read SD card information demo
⚫Hardware connection
Connect Micro SD Storage Board to SDIO interface.
Insert SD card to Micro SD Storage Board

Open429I-C User Manual
Version: V1.3.3, Date: 2019.04.02 20 / 47
⚫Operation and result
Information are printed to serial assistant (Note that this demo may erase all the
data of TF card, please backup the data before you use it):
Warning: this program may erase all the TF card data.
Make sure you have backed up. Press 'y' to continue.
Initialize SD card successfully!
SD card information!
CardCapacity : 8053063680
CardBlockSize : 512
RCA : 2
CardType : 2
Enable wide bus operation successfully!
Write block successfully!
00:0x15151515 01:0x15151515 …… 7f:0x15151515
Read block successfully!
00:0x15151515 01:0x15151515 …… 7f:0x15151515
Erase block successfully!
Table of contents
Other Waveshare Motherboard manuals