Search found 8 matches

by bradstew
Wed Jan 08, 2020 10:54 pm
Forum: MicroPython pyboard
Topic: How to get file size
Replies: 4
Views: 416

Re: How to get file size

Works for me.
Thanks!
by bradstew
Wed Jan 08, 2020 7:06 pm
Forum: MicroPython pyboard
Topic: How to get file size
Replies: 4
Views: 416

Re: How to get file size

Yes, that works. But the numbers returned are not documented.
by bradstew
Wed Jan 08, 2020 5:49 pm
Forum: MicroPython pyboard
Topic: How to get file size
Replies: 4
Views: 416

How to get file size

I am using uPython on a STM32F405 using a modified pyboard build. I have a 128Mb SPI external flash connected. i am able to format it for FAT and can read and write files with no problems. But I cannot get the size of a file on the flash. I have been logging data successfully. It's a large file and ...
by bradstew
Sat Dec 28, 2019 11:33 pm
Forum: General Discussion and Questions
Topic: SPI py2py Master and Slave comm problem
Replies: 6
Views: 1501

Re: SPI py2py Master and Slave comm problem

Perhaps the reason interrupt don't work is the "ti=false" property.
I'm only guessing as there is no documentation on what this does
by bradstew
Tue Apr 30, 2019 4:16 pm
Forum: Pyboard D-series
Topic: External 2MB Flash
Replies: 1
Views: 482

External 2MB Flash

These boards have two extneral 2MB QSPI Flash memory chips.
How do you access either or both of them?

I can't find any information. I'm assuming I can mount them under some name?
Can it be "seen" by Windows as a mountable drive? (similar to Circuit-Python)
by bradstew
Wed Jan 09, 2019 2:50 pm
Forum: General Discussion and Questions
Topic: SD card vs flash drive, speed?
Replies: 11
Views: 9501

Re: SD card vs flash drive, speed?

OK. Using a 128K for a r/w buffer still allows an additional 380+K. Or make it 256K buffer which still allows for an 256K of additional storage. Still better than what's in there now. I'm an embedded engineer (for 40 years) and it particularly troubles me that so much flash memory is not utilized. I...
by bradstew
Fri Jan 04, 2019 10:42 pm
Forum: General Discussion and Questions
Topic: SD card vs flash drive, speed?
Replies: 11
Views: 9501

Re: SD card vs flash drive, speed?

Doubling of size is good. It's too small as it is. Frozen But it seems to me that the upper 512K could be used as a virtual flash file system. It would be a great place to store modules, most of which are under 64K. I understand the block sizes are 64K, but that shouldn't be a show stopper.
by bradstew
Fri Jan 04, 2019 4:58 pm
Forum: General Discussion and Questions
Topic: SD card vs flash drive, speed?
Replies: 11
Views: 9501

Re: SD card vs flash drive, speed?

Why is the internal flash file system limited to 112K? The STM32F405RG has 1MB of flash memory. Looking at the linker file, it places end of memory at 512K (0x80000) Is there a reason why this wasn't set to 1M (0x100000)? This should add another 512K to the internal flash file size.