aboutsummaryrefslogtreecommitdiff
path: root/drivers/sdcard
AgeCommit message (Collapse)Author
2021-04-23drivers/sdcard: Add sleep_ms(1) delay in SDCard.readinto sync loop.Damien George
So this driver works on faster MCUs (that run this loop fast) with older, slower SD cards. Fixes issue #7129. Signed-off-by: Damien George <damien@micropython.org>
2020-02-28all: Reformat C and Python source code with tools/codeformat.py.Damien George
This is run with uncrustify 0.70.1, and black 19.10b0.
2019-11-06drivers/sdcard: Raise exception on timeout of readinto.Jeremy Herbert
Otherwise the code can get stuck in an infinite loop if the SD card fails to respond to a read.
2018-09-20drivers/sdcard: Remove debugging print statement in ioctl method.Peter Hinch
2018-09-20drivers/sdcard: In test use os.umount and machine module instead of pyb.Peter Hinch
pyb.umount(None, mountpoint) no longer works.
2018-07-05drivers/sdcard: Do not release CS during the middle of read operations.Mateusz Kijowski
It seems that some cards do not tolerate releasing the card (by setting CS high) after issuing CMD17 (and 18) and raising it again before reading data. Somehow this causes the 0xfe data start marker not being read and SDCard.readinto() is spinning forever (or until this byte is in the data). This seems to fix weird behviour of SDCard.readblocks() returning different data, also solved hanging os.mount() for my case with a 16GB Infineon card. This stackexchange answer gives more context: https://electronics.stackexchange.com/questions/307214/sd-card-spi-interface-issue-read-operation-returns-0x3f-0xff-instead-of-0x7f-0#307268
2018-06-15drivers/sdcard: Fix bug in computing number of sectors on SD Card.Damien George
This was a typo from the very first commit of this file.
2018-06-15drivers/sdcard: Change driver to use new block-device protocol.Damien George
2018-02-18drivers/sdcard: Update SD mounting example code for ESP8266.Damien George
2018-01-31drivers/sdcard: Update doc for ESP8266 to use correct SPI number.Hemanth kumar
machine.SPI(0) results in ValueError on ESP8266. SPI(1) is the user hardware SPI port (or use SPI(-1) for software SPI).
2018-01-10drivers/sdcard: Avoid allocation on the heap.Ayke van Laethem
This commit fixes two things: 1. Do not allocate on the heap in readblocks() - unless the block size is bigger than 512 bytes. 2. Raise an error instead of returning 1 to indicate an error: the FAT block device layer does not check the return value. And other backends (e.g. esp32 blockdev) also raise an error instead of returning non-zero.
2017-12-22drivers/sdcard: Support old SD cards (<=2GB).Ayke van Laethem
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
There were several different spellings of MicroPython present in comments, when there should be only one.
2017-05-21drivers: Replace deprecated Pin.high()/low() methods with .__call__(1/0).Paul Sokolovsky
2017-01-18drivers: Fix some minor spelling mistakes.Mike Causer
respones -> response succeses -> successes
2016-11-03drivers: Add "from micropython import const" when const is used.Damien George
Following best-practice use of the const feature, to make it compatible with Python.
2016-09-01drivers/sdcard: Port the SDCard driver to new machine API.Radomir Dopieralski
With backwards compatibility for pyboard.
2016-02-02drivers/sdcard: Add support for multi-block read/write; add SD test.Peter Hinch
2015-10-10drivers/sdcard: Allow up to 5 retries to initialise SD card.Damien George
Apparently some cards need more than 2 retries. See issue #1482.
2014-12-27drivers: Add SD card driver, controlled via SPI bus.Damien George