stm32

1.0.1 • Public • Published

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()
}

Readme

Keywords

none

Package Sidebar

Install

npm i stm32

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • hans-gremmen