mirror of
https://github.com/meshcore-dev/nRF52-Flash-Format.git
synced 2026-04-20 22:13:50 +00:00
add formatting of ExtraFS area used by MeshCore
This commit is contained in:
parent
673a8b5fe6
commit
f198150adc
3 changed files with 16 additions and 0 deletions
|
|
@ -6,8 +6,11 @@ build_flags =
|
||||||
-D NRF52_S140=1
|
-D NRF52_S140=1
|
||||||
-I src
|
-I src
|
||||||
-L boards
|
-L boards
|
||||||
|
-w
|
||||||
framework = arduino
|
framework = arduino
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
|
lib_deps =
|
||||||
|
https://github.com/oltaco/CustomLFS @ 0.2.1
|
||||||
|
|
||||||
[env:FLASH_ERASE_nrf52_softdevice_v6]
|
[env:FLASH_ERASE_nrf52_softdevice_v6]
|
||||||
extends = nrf52_base
|
extends = nrf52_base
|
||||||
|
|
@ -15,6 +18,7 @@ board = nrf52840_s140_v6
|
||||||
build_flags = ${nrf52_base.build_flags}
|
build_flags = ${nrf52_base.build_flags}
|
||||||
-I arch/nrf52/s140_6.1.1
|
-I arch/nrf52/s140_6.1.1
|
||||||
-I arch/nrf52/s140_6.1.1/nrf52
|
-I arch/nrf52/s140_6.1.1/nrf52
|
||||||
|
lib_deps = ${nrf52_base.lib_deps}
|
||||||
|
|
||||||
[env:FLASH_ERASE_nrf52_softdevice_v7]
|
[env:FLASH_ERASE_nrf52_softdevice_v7]
|
||||||
extends = nrf52_base
|
extends = nrf52_base
|
||||||
|
|
@ -22,3 +26,4 @@ board = nrf52840_s140_v7
|
||||||
build_flags = ${nrf52_base.build_flags}
|
build_flags = ${nrf52_base.build_flags}
|
||||||
-I arch/nrf52/s140_7.3.0
|
-I arch/nrf52/s140_7.3.0
|
||||||
-I arch/nrf52/s140_7.3.0/nrf52
|
-I arch/nrf52/s140_7.3.0/nrf52
|
||||||
|
lib_deps = ${nrf52_base.lib_deps}
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
#include <Adafruit_LittleFS.h>
|
#include <Adafruit_LittleFS.h>
|
||||||
#include <InternalFileSystem.h>
|
#include <InternalFileSystem.h>
|
||||||
#include <Adafruit_TinyUSB.h>
|
#include <Adafruit_TinyUSB.h>
|
||||||
|
#include <CustomLFS.h>
|
||||||
|
|
||||||
using namespace Adafruit_LittleFS_Namespace;
|
using namespace Adafruit_LittleFS_Namespace;
|
||||||
|
|
||||||
|
|
@ -11,6 +12,10 @@ void setup() {
|
||||||
delay(500);
|
delay(500);
|
||||||
InternalFS.format();
|
InternalFS.format();
|
||||||
|
|
||||||
|
delay(500);
|
||||||
|
CustomLFS ExtraFS(0xD4000, 0x19000, 128);
|
||||||
|
ExtraFS.format();
|
||||||
|
|
||||||
delay(500);
|
delay(500);
|
||||||
enterUf2Dfu();
|
enterUf2Dfu();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,12 @@ extern "C"
|
||||||
#define PIN_SERIAL1_TX (-1)
|
#define PIN_SERIAL1_TX (-1)
|
||||||
#define LED_STATE_ON LOW
|
#define LED_STATE_ON LOW
|
||||||
|
|
||||||
|
// Placeholder pins to allow CustomLFS to compile
|
||||||
|
#define SPI_INTERFACES_COUNT (1)
|
||||||
|
#define PIN_SPI_MOSI (255)
|
||||||
|
#define PIN_SPI_MISO (255)
|
||||||
|
#define PIN_SPI_SCK (255)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue