Difference: MicroSdBlocks (72 vs. 73)

Revision 732021-03-30 - PeterSchmid

Line: 1 to 1
 
META TOPICPARENT name="WebHome"
%DASHBOARD{ section="banner"
Line: 44 to 44
 

Serial Flash

Changed:
<
<
The STM32F405 Feather has an 2 MiB Serial Flash W25Q16.
>
>
The STM32F405 Feather has an 2 MiB Serial Flash W25Q16 on board. The smallest erasable chunk of data is the 4 KiB sector. But the default SD block is 512 Bytes, that means if you want to write something to a not erased block you have to erase the whole sector. For this the sector has to be buffered in RAM. For details see:
 
Added:
>
>
You can use the local CLI commands like mkfs, mkdir and cp to populate the serial flash with files and directories. But this is tedious job because there is no recursive copy. It is easier to use a real GNU/Linux for this.

Create a 2 MiB FAT filesystem as a loop device on Linux (or use the already prepared fd-2MiB.img):

 
$ dd if=/dev/zero of=fd-2MiB.img bs=512 count=4096
# losetup /dev/loop1 fd-2MiB.img

Line: 56 to 59
 # mount -o loop /dev/loop1 /mnt
Added:
>
>
Copy the the files and directories with cp or tar to the mounted image, e.g.
# cd sd
# tar cf - etc fsr home man README.md | tar xvf - -C /mnt

Umount the loop-device and copy the file to a SD-card.

Copy the filesystem to the flash disk on the target Mecrisp-Cube F405 system:

dd 1:/fd-2MiB.img 0:
 

SD Drive

Home Brewed microSD Adapter for STM32WB55 Nucleo/Dongle

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback