Example of Mbed filesystem using HeapBlockDevice
Dependents: TemperatureButtonFile AccelleratorRead
Diff: README.md
- Revision:
- 2:6a0c72c9d3fb
- Parent:
- 1:2bfc377bcc2a
- Child:
- 6:5be6b5fd262f
--- a/README.md Fri Dec 15 11:15:18 2017 +0000 +++ b/README.md Fri Dec 15 20:45:15 2017 +0000 @@ -225,9 +225,6 @@ interface represents each block device. You can change the filesystem in the example by changing the class declared in main.cpp. -**Note:** Most block devices require pin assignments. Double check that the -pins in `driver/mbed_lib.json` are correct. - ``` diff -SPIFBlockDevice bd( - MBED_CONF_SPIF_DRIVER_SPI_MOSI, @@ -241,6 +238,22 @@ + MBED_CONF_SD_SPI_CS); ``` +**Note:** Most block devices require pin assignments. Double check that the +pins in `<driver>/mbed_lib.json` are correct. For example, to change the pins for the SD driver, open `sd-driver/config/mbed_lib.json`, and change your target platform to the correct pin-out in the `target_overrides` configuration: + +``` + "target_overrides": { + ... + "NUCLEO_F429ZI": { + "SPI_MOSI": "PC_12", + "SPI_MISO": "PC_11", + "SPI_CLK": "PC_10", + "SPI_CS": "PA_15" + }, + ... + } +``` + Mbed OS has several options for the block device: - **SPIFBlockDevice** - Block device driver for NOR-based SPI flash devices that