Skip to content

Firmware for an STM32F042, broadcasts dual HX711 readings to CAN bus

License

Notifications You must be signed in to change notification settings

lucansky/hexamon-firmware

Repository files navigation

HEXAMON.io MCU firmware

Hexamon firmware for STM32F042. Dual channel HX711 periodic weight measuring, sends acquired data over CAN.

  • PA1 -- shared CLK for HX711 modules
  • PA4 -- DATA pin HX711 module 0
  • PA5 -- DATA pin HX711 module 1

Written in http://ivorylang.org/

Requires

Fedora:

dnf install arm-none-eabi-gcc-cs arm-none-eabi-newlib

Building

Run make hexamon to build application.

To load Hexamon firmware run:

make hexamon-load

to also issue run and start application after loading use:

make hexamon-run

to just run gdb with new binary without loading:

make hexamon-gdb
# issuing 'load' in gdb         == hexamon-load
# running both 'load' and 'run' == hexamon-run

Flashing

Manually with BlackMagic Probe:

arm-none-eabi-gdb --ex 'target extended-remote /dev/ttyACM0' --ex 'monitor swdp_scan' --ex 'attach 1' --ex 'load' build/hexamon/image

About

Firmware for an STM32F042, broadcasts dual HX711 readings to CAN bus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages