Skip to content

fossasia/pslab-mini-firmware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pslab-mini

Build Instructions

This will build the bootloader and the main firmware application. The bootloader binary, pslab-mini-bootloader, will be located in build/boot/, while the main firmware application, pslab-mini-firmware will be located in build/src.

Prerequisites

  • CMake
  • A make tool (e.g., GNU Make or Ninja)
  • gcc-arm-none-eabi
  • libnewlib-arm-none-eabi

Steps

mkdir build
cd build
cmake ..
make

Flashing the Bootloader

Flashing the bootloader requires a hardware programmer, such as ST-Link. The Nucleo development board has an onboard ST-Link.

To flash the bootloader using STM32_Programmer_CLI, run:

STM32_Programmer_CLI -c port=SWD -d build/boot/pslab-mini-bootloader.srec -v -rst

To flash the bootloader using the Windows application of STM32_Programmer, follow these steps:

  • Open the STM32_Programmer application and switch to the Erasing & Programming tab from the left menu bar.

  • Connect to the Board using ST-Link and initiate the connection from the application.

  • Browse and select the .srec file for the bootloader inside the build/boot/ folder of your program directory.

  • Initiate Start_Programming, and a successfully uploaded message will appear once programming is complete!

Flashing the Firmware

Once the bootloader is present on the device, the main firmware can be flashed over a serial connection using OpenBLT Host tools, specifically MicroBoot (GUI) or BootCommander (CLI).

To flash the firmware using BootCommander, run:

BootCommander -d=/dev/ttyACM0 build/src/pslab-mini-firmware.srec

To flash the firmware using the MicroBoot GUI tool in Windows, follow these steps:

  • Connect the board via USB.

  • Open Device Manager, then navigate to the Ports and Comms menu and note down the COMM number the board is connected on.

  • Now open the MicroBoot Application, inside Settings, set it to XCP on RS232 Mode, the Device will have the same COMM port as your Device_manager settings.

  • Now, browse and select the .srec for firmware inside the build/src/ folder.

  • Click the reset button to put the board in boot mode, and the firmware will be successfully flashed onto the board!

About

PSLab Mini Firmware https://pslab.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8

Languages