Adding batch script for generating uf2 files for NRF boards (#945)

* Updated generated protos

* Added uf2-converter batch for windows machines
1.2-legacy
Ben Meadors 2021-12-02 10:19:25 -06:00 zatwierdzone przez GitHub
rodzic 79eb5546a1
commit 9d019c1a99
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -0,0 +1,2 @@
@echo off
if [%1]==[] (echo "Please specify a platformio NRF target (i.e. rak4631) as the first argument.") else (python3 .\bin\uf2conv.py .\.pio\build\%1\firmware.hex -c -o .\.pio\build\%1\firmware.uf2 -f 0xADA52840)

Wyświetl plik

@ -4,9 +4,9 @@
#ifndef PB_ADMIN_PB_H_INCLUDED #ifndef PB_ADMIN_PB_H_INCLUDED
#define PB_ADMIN_PB_H_INCLUDED #define PB_ADMIN_PB_H_INCLUDED
#include <pb.h> #include <pb.h>
#include "channel.pb.h"
#include "mesh.pb.h" #include "mesh.pb.h"
#include "radioconfig.pb.h" #include "radioconfig.pb.h"
#include "channel.pb.h"
#if PB_PROTO_HEADER_VERSION != 40 #if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator. #error Regenerate this file with the current version of nanopb generator.

Wyświetl plik

@ -4,8 +4,8 @@
#ifndef PB_DEVICEONLY_PB_H_INCLUDED #ifndef PB_DEVICEONLY_PB_H_INCLUDED
#define PB_DEVICEONLY_PB_H_INCLUDED #define PB_DEVICEONLY_PB_H_INCLUDED
#include <pb.h> #include <pb.h>
#include "mesh.pb.h"
#include "channel.pb.h" #include "channel.pb.h"
#include "mesh.pb.h"
#include "radioconfig.pb.h" #include "radioconfig.pb.h"
#if PB_PROTO_HEADER_VERSION != 40 #if PB_PROTO_HEADER_VERSION != 40