Skip to content

nikola-suljagic/click_20_rtos

Repository files navigation

click_20_rtos

Description

This project showcase how FREE RTOS can be used for MirkoE development borad Sensor Fusion for ARMv8.

Hardware used in project

Software used in project

HW setup:

  • Plug Temp&Hum20 click board to mikroBUS socket 1
  • Plug SiBRAIN for STM32 (STM32F407ZG) to MCU card socket
  • Connect POWER/DEBUG with host CPU in order to enable debugging as well as provide power for board
  • Connect USB-UART with host CPU to enable sending messages to serial port (logging)

Project setup

Setup Sensor fusion for armv8 dev board

  • Move pull up on port A swicth SW3
  • Connect POWER/DEBUG port to the laptop for downloading and debug firmware purpose
  • Conect USB-UART to the laptop
  • PA5 button is used as user button

Cube IDE

Import project

  • Go to File->Import->General->Existing Projects into Workspace
  • Navigate to the folder where project reside
  • Configuring OpenOCD debugger:
    • Install GNU ARM C/C++ OpenOCD Debugging plugin:
      Alt text
    • Right click on project and go Debug As -> Debug Configurations -> GDB Open OCD Debugging:
      Alt text
    • Setup debug configuration:
      Alt text
  • Configure printf with floating point numbers:
    • Right click on the project and go to Properties -> C/C++ Build -> Settings -> MCU settings
    • Check 'Use float with printf from (-u_printf_float)':
      Alt text

Download firmware

CODEGRIP

  • Open CODEGRIP
  • Navigate to .bin file in Debug or Release folder:

    Alt text
  • Press write command:

    Alt text

Logging messages

Logging messages are expressed in json format. Logging structure has 2 fields name and value.

In order to see messages on host PC, it needs to setup serial port

Steps to setup serial port on Putty:

  • Open putty and setup baud rate to 921600 and pick right serial port (in this case it is /dev/ttyUSB0):

    Alt text
  • Terminal output should look:

    Alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published