Search found 54 matches

by TravisT
Sun Aug 04, 2019 3:45 pm
Forum: Development of MicroPython
Topic: mboot from mounted SD card
Replies: 2
Views: 158

Re: mboot from mounted SD card

You are correct, the intent was to use the fwupdate.py with the zipped DFU firmware. And yes the hope is that it could be done from SPI flash device, since it is a common storage method and relative to microcontrollers nearly unlimited in size. You do bring up some good points regarding what MBOOT w...
by TravisT
Mon Jul 29, 2019 5:31 pm
Forum: Development of MicroPython
Topic: mboot from mounted SD card
Replies: 2
Views: 158

mboot from mounted SD card

I have started working with using mboot from the filesystem on a device with plenty of filesystem thanks to an external flash chip. So far I am very happy with this setup, and it is not too different than how the pyboard-D is setup. I might be running into a project where support for an older design...
by TravisT
Tue Jul 02, 2019 2:19 pm
Forum: General Discussion and Questions
Topic: Freezing / Compiling raw binary data in DFU
Replies: 11
Views: 530

Re: Freezing / Compiling raw binary data in DFU

@pythoncoder Very fair point, and the wiki would make more sense. It is unfortunate that the documentation, forums, and wiki are not always the easiest to search, but it could easily be argued that eventually any body of knowledge gets hard to keep track of and fully utilize. I am also guilty of not...
by TravisT
Sun Jun 30, 2019 1:46 pm
Forum: General Discussion and Questions
Topic: Freezing / Compiling raw binary data in DFU
Replies: 11
Views: 530

Re: Freezing / Compiling raw binary data in DFU

You are correct, I was worried when cross compiling did not benefit me at all, and bytes objects alone did not help. Then I realized that of course it is optimization during when freezing and building the firmware. Your libraries also noted and confirmed this. One downside of the forums is that valu...
by TravisT
Sun Jun 30, 2019 3:09 am
Forum: General Discussion and Questions
Topic: Freezing / Compiling raw binary data in DFU
Replies: 11
Views: 530

Re: Freezing / Compiling raw binary data in DFU

I was able to use the same method as Peter to minimally use RAM and read binary information from flash using bytes object in a python source file. Similar I also have asset build scripts. It is an extra step with including assets in DFU build, but luckily assets do not change too often and I can use...
by TravisT
Sat Jun 29, 2019 7:31 pm
Forum: General Discussion and Questions
Topic: Freezing / Compiling raw binary data in DFU
Replies: 11
Views: 530

Re: Freezing / Compiling raw binary data in DFU

I am working now to utilize something that @pythoncoder did for his font utilities. I realize one thing I did wrong when evaluating is the difference between cross compiling and actually freezing the code into the DFU. https://github.com/peterhinch/micropython-font-to-py Hopefully this yield better ...
by TravisT
Tue Jun 25, 2019 7:00 am
Forum: General Discussion and Questions
Topic: Freezing / Compiling raw binary data in DFU
Replies: 11
Views: 530

Re: Freezing / Compiling raw binary data in DFU

Sorry I meant external RAM, this is what the chip that actually uses the bitmap and font data reads from. The micropython based device is really just providing assets and commands over SPI. I cannot easily get around writing to the external device. My main issue is not so much taking up space in fla...
by TravisT
Tue Jun 25, 2019 5:33 am
Forum: General Discussion and Questions
Topic: Freezing / Compiling raw binary data in DFU
Replies: 11
Views: 530

Re: Freezing / Compiling raw binary data in DFU

When doing some testing with just cross compiled modules I do get the size significantly smaller, but the import does seem to live in RAM. I have tried to "del" the module but I never could get that to work and free up memory. Luckily I am using the F7 chip right now and have about 307k RAM free bef...
by TravisT
Tue Jun 25, 2019 4:59 am
Forum: General Discussion and Questions
Topic: Freezing / Compiling raw binary data in DFU
Replies: 11
Views: 530

Freezing / Compiling raw binary data in DFU

I am trying to store raw binary data efficiently but in a way that is easy to compile into my DFU for bootloading. The data can and will change frequently enough that it should be treated almost like application source code. It will hold font and bitmap information. My current implementation is stor...
by TravisT
Thu Mar 21, 2019 3:03 pm
Forum: General Discussion and Questions
Topic: Filesystem size with custom STM32F7 build
Replies: 10
Views: 519

Re: Filesystem size with custom STM32F7 build

Thank you for clarifying, and that makes a lot of sense. I knew that only a certain portion of the sector could be used but did not realize that it could not jump over that, which now seems obvious. It also makes sense now why I kept seeing the additional filesystem segment, and why it was typically...