npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@libs-scripts-mep/grav-fw-pvi

v4.0.0

Published

Auxilia na gravação de microcontroladores por linha de comando através do PVI

Downloads

150

Readme

Gravação de Firmware PVI

Biblioteca que auxilia na gravação de microcontroladores por linha de comando através do PVI.

Instalando

Abra o terminal, e na pasta do script, execute:

npm i @libs-scripts-mep/grav-fw-pvi

Desinstalando

Abra o terminal, e na pasta do script, execute:

npm uninstall @libs-scripts-mep/grav-fw-pvi

| Fabricante | Ferramenta | Suporte | | ---------- | ------------------------ | ------- | | ST | STVP | ✔️ | | Renesas | Renesas Flash Programmer | ✔️ | | Nuvoton | JLink v7.82 | ✔️ |

Exemplo de Utilização do Modulo

STM8


static async GravaFirmware(dirFirm, dirOpt) {

        const ObjParams = {

            objArguments: {
                verbose: true,
                Device: "STM8S003F3",
            },
            timeOut : 4000

        }

        return new Promise(async (resolve) => {

            let RetornoGravacao = await GravaFW.STM8(dirFirm, dirOpt, ObjParams.objArguments, ObjParams.timeOut)

            if (RetornoGravacao.sucess) {

                console.log("GRAVOU")
                
            } else {

                console.log("NÃO GRAVOU")
            }

        })

}  

Possíveis valores para os argumentos da gravação

[-BoardName=STxxx] ==========> Programming Tool name (ST-LINK, RLINK, STICE, ...)
[-Tool_ID=x] ================> ST-LINK Programming Tool ID (0, 1, 2...)
[-NbTools=x] ================> Number of ST-LINK Tools with same device connected (Tool_ID is automatically incremented)
[-Port=xxx] =================> Communication Port (USB, LPT1)
[-ProgMode=xxx] =============> Programming mode or protocol (SWIM, JTAG, SWD)
[-Device=STxxx] =============> Device name (exact same name as in STVP)
[-version] ==================> Display version of this application
[-verbose] ==================> Display messages, warnings, errors
[-log] ======================> Generate or append Result.log log file
[-loop] =====================> Loop on actions until 'Space' key hit
[-progress] =================> Display progress of each action
[-warn_protect] =============> Message Box if programming Option Byte protection
[-no_progProg] ==============> Do not program PROGRAM MEMORY (used to verify device from a file)
[-no_progData] ==============> Do not program DATA MEMORY (used to verify device from a file)
[-no_progOption] ============> Do not program OPTION BYTE (used to verify device from a file)
[-readProg] =================> Read PROGRAM MEMORY
[-readData] =================> Read DATA MEMORY
[-readOption] ===============> Read OPTION BYTE
[-erase] ====================> Erase the device (before programming)
[-blank] ====================> Blank Check the device (before programming)
[-verif] ====================> Verify the device after programming
[-FileProg=fname.hex/s19] ===> File name to program PROGRAM MEMORY area (hex or s19)
[-FileData=fname.hex/s19] ===> File name to program DATA MEMORY area (hex or s19)
[-FileOption=fname.hex/s19] => File name to program OPTION BYTE area (hex or s19)



objArguments = {

    log: true or false 
    loop: true or false
    erase: true or false
    blank: true or false
    verif: true or false
    verbose: true or false
    version: true or false
    progress: true or false
    readProg: true or false
    readData: true or false
    readOption: true or false
    no_progProg: true or false
    warn_protect: true or false
    no_progOption: true or false
    verbose: true or false,

    Port:"USB",
    ProgMode:"SWIM",
    NbTools:"1",
    Tool_ID:"0",
    BoardName:"ST-LINK",
    Device: "STM8S003F3",
    FileData: ""

},