1.0.1 • Published 7 years ago

stm32 v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

stm32

A NodeJS library for communicating with STM32 bootloader.

How to install

npm install stm32

How to use

const STM32 = require("stm32")

async function test() {
  let bootloader = new STM32.Bootloader("/dev/ttyACM0")
  await bootloader.start()
  console.log({version:await bootloader.version()})
  console.log({chip:await bootloader.chip()})
  console.log({get:await bootloader.get()})
  console.log(await bootloader.read(0x08000000, 1024))
  await bootloader.go() // start firmware at 0x08000000
  await bootloader.close()
}