FreeRTOS – Lab Environment bosio@lirmm.fr

19  Download (0)

Full text

(1)

FreeRTOS – Lab Environment bosio@lirmm.fr

(2)

PC configuration

Eclipse (https://www.eclipse.org/home/index.php)

Board STM32F3 Discovery

System workbench (www.openstm32.org)

2

(3)

Eclipse

Run eclipse

3

(4)

Create a new project

4

(5)

Create a new project

5

Type the

name of your project

Select the AC6 options

(6)

Create a new project

6

Click on next

(7)

Create a new project: select the development board

7

STM32F3

STM32F3DISCOVERY

Click on finish

(8)

Download the Firmware

8 Cube hal

Download the firmware (required only the first time)

Click on finish

Include FreeRTOS

(9)

Project Structure

Your project is composed of several files

Let’s have a look…

9

(10)

Project Structure

10

FreeRTOS source code Project Directory

RTOS configuration file

Your main : your code will be placed here

(11)

Build the project

11

(12)

Build Result

This is the executable

12

(13)

Execute your code

13

We have to send the binary code to the board

JTAG

(14)

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

(15)

JTAG for programming

15

To use JTAG we have to pass through the DEBUGGER

It use OpenOCD (http://openocd.org/)

(16)

Debug your code

Double click

16

(17)

Debug your code

You can start to debug

17

(18)

Debug your code

You activate the debug mode of eclipse 18

(19)

The debug view

19

Figure

Updating...

References

Related subjects :