Comments (9)
#define CFG_UF2_FLASH_SIZE (256*1024*1024)
#define CFG_UF2_NUM_BLOCKS (0x300000) // 1.5 GB
#define CFG_UF2_SECTORS_PER_CLUSTER (64)
That's for 256MB flash, so 2x a 512MB UF2 file, and plenty for space remaining for the two text files (or for the remainder of a UF2 file with non-flash content).
Tested on RP2040, for flashing BT815-series graphics chip. (Maybe add a note on the memory required for the buffer that keeps the written block flags... CFG_UF2_FLASH_SIZE / 256 / 8
iirc? That's the bottleneck, it seems.)
from tinyuf2.
#define CFG_UF2_FLASH_SIZE (256*1024*1024) #define CFG_UF2_NUM_BLOCKS (0x300000) // 1.5 GB #define CFG_UF2_SECTORS_PER_CLUSTER (64)
That's for 256MB flash, so 2x a 512MB UF2 file, and plenty for space remaining for the two text files (or for the remainder of a UF2 file with non-flash content).
Tested on RP2040, for flashing BT815-series graphics chip. (Maybe add a note on the memory required for the buffer that keeps the written block flags...
CFG_UF2_FLASH_SIZE / 256 / 8
iirc? That's the bottleneck, it seems.)
Great, would you make an PR to add these comment along with the note. CFG_UF2_FLASH_SIZE
is from original uf2 bootloader for nrf52, there is still work to generalize this project. It is still in early stage, so yeah, we will revise it and update/remove it when needed.
from tinyuf2.
@kaetemi - It was my PR that removed the large commented-out values. Sorry!
@hathach - Having the CFG_* values is important ... I am close to having self-validation code working, at least to the point I must hand it to you for proper integration. I will open a separate issue/PR for that. :)
from tinyuf2.
Yeah, that would be more practical. :)
from tinyuf2.
Can we include the tested large value combination in the comments?
from tinyuf2.
Yeha, there is still lots of TODO, we will move it to per ports/boards later on. But this look good
from tinyuf2.
Can we include the tested large value combination in the comments?
Yeah, I think having a working/tested value combination would be great. It is removed recently (probably mistaken as obsolete value). Would you mind added it, maybe along with a bit of detail on your setup e.g like this combination appear as 1.5 GBs disk and tested on abc hardware would be helpful as well.
from tinyuf2.
@henrygab ah ok, actually, I have no plan/time to remove it anytime soon. But rather will evolve slowly when needed :) I am looking forward to your PR.
from tinyuf2.
Mostly done, except for a couple build/CI steps I need help with. See PR #94.
from tinyuf2.
Related Issues (20)
- CI Deprecation Warnings HOT 3
- Update GitHub Actions to Upload to Amazon S3 HOT 1
- mimxrt1011, 400mhz support HOT 7
- iMXRT10xx Linker Issues HOT 2
- self-update doesn't reboot after update HOT 5
- Drive not appearing on ESP32-S3-DevKitC-N32R8 HOT 2
- CURRENT.UF2 always blank HOT 2
- Skip define DISPLAY_PIN_BL if not used
- [STM32H7] Cant get user code running HOT 8
- Adafruit ESP32 S3 REV TFT Arduino 2.2.1 No Comm Port V0.16.0 HOT 1
- Build for Adafruit Qualia S3 board HOT 4
- Add release support for 'ESP32-S3 Cam' HOT 2
- Can't build Espressif boards on macOS with latest master. HOT 3
- Windows flashing produces error 0x800701B1 HOT 1
- ESP32 C6 support HOT 1
- Download missing for lolin s3 mini? HOT 3
- Add definition for the LilyGO T-Deck HOT 1
- UF2 on OSX HOT 1
- ESP32-S3-Devboard-C1 wont run .uf2 HOT 2
- CH32v20x jump to app not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinyuf2.