Mobsya / aseba-target-thymio2

Thymio 2 firmware
8 stars 8 forks source link
firmware thymio

Compiling Thymio firmware

Source code

To compile the firmware from git, you need the following source code:

Tools

You need the MPLAB X environment and C compiler:

Compilation

You can compile using two methods, one using CMake (only compiling) or used the Microchip MPLAB X tool

CMake

Follow compilation instructions

Use MPLAB X

First, you need to start MPLAB X and create a new project:

Use the linker script provided in the aseba-target-thymio2 git tree.

Use the following sources:

Note that if you want to edit the firmware, you should add the following two files from the aseba-target-thymio2 git tree as "Important files": skel-usb-user.c, skel-usb-user.h. You should not compile them directly, as they are included from skel-usb.c/h. The reason is that skel-usb.c/h is target-independent code, while skel-usb-user.c/h is target-dependent code.

Project setup:

Here are screenshots of the detailed options you should set in the project properties:

Then you should be able to compile the firmware. To upload it to the robot, use the Thymio firmware upgrader and not a program such as icd3 or pickit3.