Git Product home page Git Product logo

Comments (9)

kaetemi avatar kaetemi commented on August 17, 2024 1
#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.

hathach avatar hathach commented on August 17, 2024 1
#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.

henrygab avatar henrygab commented on August 17, 2024 1

@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.

kaetemi avatar kaetemi commented on August 17, 2024

Yeah, that would be more practical. :)

from tinyuf2.

kaetemi avatar kaetemi commented on August 17, 2024

Can we include the tested large value combination in the comments?

from tinyuf2.

hathach avatar hathach commented on August 17, 2024

Yeha, there is still lots of TODO, we will move it to per ports/boards later on. But this look good

from tinyuf2.

hathach avatar hathach commented on August 17, 2024

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.

hathach avatar hathach commented on August 17, 2024

@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.

henrygab avatar henrygab commented on August 17, 2024

Mostly done, except for a couple build/CI steps I need help with. See PR #94.

from tinyuf2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.