CalPolyRobotics / IGVC-OlympusFirmware

Funware repository
6 stars 1 forks source link

IGVC-Olympus Firmware ⛅

The autonomous golf cart is a project at the Cal Poly Robotics Club focused on producing a golf cart that can drive around campus without human intervention. Olympus is the name of the electronic control board for the the golf cart, and this reposistory contains firmware for the microcontrollers on Olympus. To learn more about our project, click here.

Project Structure

This repository contains multiple directories, each pertaining to the different applications run on the microcontrollers living on Olympus:

Programming

Bootloader

After connecting your computer to the USB port on Olympus, and changing into the root directory of the reposistory: To Program All MCUs:

$ make flash

To Program Specific MCU:

$ make flash-<mcuFolderName>

JLink

After connecting your computer to the Segger JLink, connecting the JLink to the MCU you wish to program, and changing into the root directory of the repository: To Program Specific MCU:

$ cd <mcuFolderName>
$ make flash-jlink

Debugging

To debug one of the microcontroller on Olympus, you must use a Segger Jlink.

  1. Connect the Jlink to the MCU you wish to debug

  2. Open a terminal and run the following (depends on the MCU you are debugging): Olympus

    JLinkGDBServer -Device stm32f205RG -if swd

    Apollo, Hera, or Janus

    JLinkGDBServer -Device stm32f042K6 -if swd

    Hephaestus

    JLinkGDBServer -Device stm32f042C6 -if swd
  3. Open another terminal and run (from the directory of the mcu you are debugging):

    arm-none-eabi-gdb build/program.elf
  4. You will now be able to use standard gdb commands to debug the microcontroller