Commit Graph

112 Commits (f32cad9c5c46b44847e99ea1d9b97d8cb571e14b)

Author SHA1 Message Date
Christopher Haster f32cad9c5c Fix .travis.yml requirements install
Needs --user flag for reasons, see https://github.com/ARMmbed/mbed-os/pull/5061

superseeds https://github.com/ARMmbed/sd-driver/pull/60
cc @deepikabhavnani
2017-09-27 11:33:06 -05:00
Deepika 1cb007fb38 Merge pull request #61 from deepikabhavnani/sd_diff_cards
Deselecting card between read/write ops caused issues
2017-09-11 11:36:31 -05:00
Deepika c46d0779e7 Deselecting card between read/write ops caused issues
Deselecting card while it is busy programming and selecting again was causing
corruption (Illegal command) with slow speed cards. Will wait for read/write
operations to complete before deselecting the card.
2017-09-07 09:56:57 -05:00
Christopher Haster 9edd43dba5 Merge pull request #60 from ARMmbed/g-fix-travis
Fix .travis.yml requirements install
2017-09-06 18:35:05 -05:00
Christopher Haster 685e971c9e Fix .travis.yml requirements install
Recently, how pip installs dependencies in travis has changed.
Now, installing dependecies with sudo prevents import in user space.
2017-09-06 17:47:56 -05:00
Deepika 49262a39cd Merge pull request #58 from deepikabhavnani/sd_cmd12
Should not wait for card to be ready when sending stop command
2017-09-06 14:11:11 -05:00
Christopher Haster 94392432be Merge pull request #59 from deepikabhavnani/big_buf_issue
Force D0 enabled during device select
2017-08-31 10:24:19 -05:00
Deepika 6c6a594c95 Force D0 enabled during device select 2017-08-30 15:48:01 -05:00
Deepika d4d1d87bf8 Should not wait for card to be ready when sending stop command 2017-08-29 13:14:56 -05:00
Deepika 1d3fa9db3a Merge pull request #55 from ARMmbed/g-softer-erase
Changed erase to just noop if erases are too small for erase command
2017-08-28 15:17:46 -05:00
Ren Boting 6b10f286f5 Merge pull request #56 from soramame21/master
Add SD card reader support over DISCO_L476VG platform for running Cloud Client.
2017-08-24 01:36:26 +09:00
Deepika 2f6b8ead03 Merge pull request #54 from bentcooke/HEXIWEAR-add
add support for SD card holder on HEXIWEAR base board.
2017-08-21 10:14:06 -05:00
Deepika d5671e2b39 Merge pull request #48 from ARMmbed/cmd41_init_issue
Fixed SD card intialization failure
2017-08-21 10:13:30 -05:00
Boting Ren cbc18048a6 Add SD card reader support on DISCO_L476VG platform. 2017-08-21 23:44:36 +09:00
bentcooke fd4cd6aa0b increased test timeout to fix failing test due to slow sd card 2017-08-18 11:15:07 -05:00
Christopher Haster bab6699799 Changed erase to just noop if erases are too small for erase command
Since it's an optimization, we should only send the command if the range
of bytes being erased fits. get_erase_size should still report 512, and
the erase should just noop with <SECTOR_SIZE bytes being erased. If
filesystems erase a larger range (at least spiffs does this), the
optimization can kick in.
2017-08-18 11:12:39 -05:00
bentcooke e77f0ee9af add support for SD card holder on HEXIWEAR base board. 2017-08-18 10:38:32 -05:00
Deepika 0ac12a0251 Merge pull request #49 from LemonBoy/erase_size
Correct calculation of the erase sector size
2017-08-17 13:37:53 -05:00
LemonBoy 705462d321 Correct calculation of the erase sector size
The specification states that the real value is obtained by increasing
by one the value extracted from the csd register.
2017-08-17 17:18:44 +02:00
Deepika c7347c967c Merge pull request #50 from LemonBoy/sdcard-init-seq
Make the initialization sequence more flexible
2017-08-17 10:06:06 -05:00
Deepika 48c1b7e973 Merge pull request #42 from ARMmbed/test
Add support for Travis CI
2017-08-17 10:05:00 -05:00
Christopher Haster 2a1c923ec7 Merge pull request #53 from deepikabhavnani/dummy_read
Checking for version, for OS master support
2017-08-16 17:11:29 -05:00
Christopher Haster 521e7aeea7 Added support for Travis CI 2017-08-15 15:33:53 -05:00
LemonBoy 52f5e0d41a Make the initialization sequence more flexible
According to the SD specification v2.00 we this is the right way to
initialize a card using the v1 protocol in a forward-compatible way.
2017-08-14 16:46:38 +02:00
deepikabhavnani 1a02b0528c Fixed SD card intialization failure
Few SD cards were failing for CMD41 as device was not ready after CMD55.
Added busy delay loop to make sure device is ready and than proceed.
2017-08-12 00:11:36 -05:00
Deepika a1445562bc Checking for version, for OS master support 2017-08-10 09:53:58 -05:00
Deepika 2d247581c6 Merge pull request #32 from ARMmbed/Readme_update
Update Readme
2017-08-03 13:01:24 -05:00
Deepika 5abee1e078 Merge pull request #43 from ARMmbed/dummy_read
SPI block read fix
2017-08-03 13:00:17 -05:00
Deepika d94cb26883 Added version build error 2017-08-03 10:57:10 -05:00
Deepika 3b85386642 Merge pull request #44 from ARMmbed/g-fix-ferror-null
Remove test assert on NULL ferror
2017-08-03 10:43:22 -05:00
Deepika fcd2f3db51 Sd-driver updated to 0.1.1 dependency:mbed-os-5.5.4 2017-08-03 10:25:38 -05:00
Deepika 38247b9987 Updated Readme example 2017-07-24 11:19:36 -05:00
Christopher Haster 803ebe4cf7 Remove test assert on NULL ferror
ferror(NULL) is undefined behavior
2017-07-19 10:45:28 -05:00
Deepika 4856a20c38 Merge pull request #41 from deepikabhavnani/csd_issue
CSD Failure
2017-07-17 11:08:46 -05:00
Deepika 497aaaf915 SPI block read fix
Using fix from mbed-os core, where few devices were failing with
SPI block read, as default data on SPI was sent 0x00.
Using API 'set_default_write_value' to set the default tx fill data.
2017-07-17 11:05:06 -05:00
Deepika e2dbe1fae7 Updated Readme example to handle return values 2017-07-13 13:09:54 -05:00
Deepika 46b2c0623f Updated version 2017-07-13 13:09:54 -05:00
Deepika b63d8ac773 Updated readme as per new directory structure 2017-07-13 13:09:53 -05:00
Deepika f99690487b Refer to example readme, instead re-writing all steps 2017-07-13 13:09:53 -05:00
Deepika 4745e0b21f Replaced mbed_app.json to mbed_lib.json in Readme 2017-07-13 13:09:53 -05:00
Deepika 954167fb40 Clear _is_initialized flag during deinit 2017-07-11 14:30:59 -05:00
Deepika 21e6f47aa4 Error handling for CMD9 2017-07-11 08:31:30 -05:00
Deepika cdbbea6c52 Fix: SD read failed for Strontium Card
CMD9 fails for few cards if spi.write is performed during deslect of card
 Card immediately sends start packet token, which goes missing in this dummy
 write to SPI. Should not clock SPI bus in deselect operation.
2017-07-10 15:59:40 -05:00
Deepika f9550bc1d9 Merge pull request #37 from deepikabhavnani/test_block
Added block device test for SD driver
2017-07-10 14:38:46 -05:00
Deepika 566f455739 Added block device test for SD driver 2017-07-05 17:02:26 -05:00
Deepika 29861960ca Merge pull request #33 from ARMmbed/g-frequency-changes
Small consistency changes to frequency function
2017-07-05 12:35:08 -05:00
Christopher Haster 97248873a4 Added constructor parameter for frequency 2017-07-05 12:27:22 -05:00
Christopher Haster b11b635775 Added error propogation from frequency functions 2017-07-05 12:24:26 -05:00
Christopher Haster 15f33154c6 Renamed set_freq -> frequency 2017-07-05 12:19:29 -05:00
Christopher Haster 6426b63a91 Merge pull request #31 from ARMmbed/g-rename-test-dir
Rename the test dir (not TESTS) to util
2017-07-05 12:16:05 -05:00