stm32
v1.0.1
Published
A NodeJS library for communicating with STM32 bootloader.
Downloads
76
Readme
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()
}