Skip to content

Commit

Permalink
File system in flash is cleared after program flash #463
Browse files Browse the repository at this point in the history
  • Loading branch information
niklauslee committed Dec 19, 2021
1 parent e1040aa commit 2503182
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions targets/rp2/boards/pico/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Flash partitions
|--------------------|---|-----------|-----------|
| 1008K |16K| 512K | 512K |
|------------------------------------------------|
|--------- flash.c ---------|
|--------- 1MB ----------|---------- 1MB---------|
|---------------------- 2MB ---------------------|
Expand Down
3 changes: 2 additions & 1 deletion targets/rp2/boards/pico/board.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ global.board.LED = 25;
const fs = require("fs");
const { VFSLittleFS } = require("vfs_lfs");
fs.register("lfs", VFSLittleFS);
const bd = new global.Flash(0, 128);
// start block is 4(storage) + 128(program)
const bd = new global.Flash(132, 128);
fs.mount("/", bd, "lfs", true);

0 comments on commit 2503182

Please sign in to comment.