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.
This repository contains multiple directories, each pertaining to the different applications run on the microcontrollers living on Olympus:
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>
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
To debug one of the microcontroller on Olympus, you must use a Segger Jlink.
Connect the Jlink to the MCU you wish to debug
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
Open another terminal and run (from the directory of the mcu you are debugging):
arm-none-eabi-gdb build/program.elf
You will now be able to use standard gdb commands to debug the microcontroller