PC configuration
• Eclipse (https://www.eclipse.org/home/index.php)
• Board STM32F3 Discovery• System workbench (www.openstm32.org)
2
Eclipse
• Run eclipse
3
Create a new project
4
Create a new project
5
Type the name of your project
Select the AC6 options
Create a new project
6
Click on next
Create a new project: select the development board
7
STM32F3
STM32F3DISCOVERY
Click on finish
Download the Firmware
8
Cube hal
Download the firmware(required only the first time)
Click on finish
Include FreeRTOS
Project Structure
• Your project is composed of several files• Let’s have a look…
9
Project Structure
10
FreeRTOS source code
Project Directory
RTOS configuration file
Your main : your code will be placed here
Build the project
11
Build Result
This is the executable
12
Execute your code
13
• We have to send the binary code to the board
JTAG
JTAG for programming
• To program a device we have two alternatives:– Using a USB / UART / ... connection in bootloader
mode
– Using JTAG and programmer to write flash memory
14
JTAG for programming
15
• To use JTAG we have to pass through the DEBUGGER
– It use OpenOCD (http://openocd.org/)
Debug your code
Double click
16
Debug your code
You can start to debug
17
Debug your code
You activate the debug mode of eclipse
18
The debug view
19