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
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
Christopher Haster
7c2a930ccf
Merge pull request #9 from ARMmbed/shell-anon
...
Anonymise the shell prompts
2017-07-05 12:15:47 -05:00
Christopher Haster
438bb6ed59
Rename the test dir (not TESTS) to util
...
This has already confused at least one person.
Long term we should support a util folder of sorts for mbed-test.
2017-07-05 12:12:31 -05:00
Christopher Haster
22c9c85beb
Merge pull request #17 from ARMmbed/g-fs-dot-entries
...
Add checks for '.' and '..' in readdir tests
2017-07-05 12:06:38 -05:00
Christopher Haster
90ffa86880
Add checks for '.' and '..' in readdir tests
2017-07-05 11:53:11 -05:00
Christopher Haster
8f37760f00
Merge pull request #30 from deepikabhavnani/sdh_repo_tidy
...
sd-driver repository clean-up to follow common mbed-os component organisation
2017-07-05 11:51:12 -05:00
Simon Hughes
072446b631
Removed warnings from basic test case.
2017-07-05 11:45:11 -05:00
Simon Hughes
3fa6b88ef8
Repository re-organisation and cleanup to follow same structure as other mbed-os component repositories.
2017-07-05 11:45:11 -05:00
Deepika
a662514f51
Merge pull request #29 from deepikabhavnani/trans_freq_func
...
Function to update transfer freq
2017-07-05 10:54:58 -05:00
Deepika
6b1fded4d8
Merge pull request #27 from deepikabhavnani/single_cmd
...
Cleanup and add functionality
2017-07-05 10:28:33 -05:00
Deepika
3ce07dceee
Function to update transfer freq
2017-07-05 10:25:41 -05:00
Deepika
085f32a354
CSD register 16 bytes to be read as spi byte read
2017-07-05 08:53:07 -05:00
Deepika
cae4da0a5e
Stop timer before returning
2017-06-29 11:37:45 -05:00
Deepika
34cbdb8fc8
Temporary: Loop in read
2017-06-27 17:11:28 -05:00
Deepika
b31e9754da
Implemented Erase functionality
2017-06-27 17:08:31 -05:00
Deepika
d82f084f11
Retry command sending on SD card
...
Sometimes card is busy programming multiple blocks and responds with 0xFF
i.e. response. Re-trying 3 times to send the command.
2017-06-27 14:01:46 -05:00
Deepika
a7f23635a4
Added pre-erase command to boost multiple write block performance
2017-06-27 14:00:44 -05:00
Deepika
04e1a57c2d
Added more debug statements
2017-06-27 13:59:29 -05:00
Deepika
a0dd8cd45d
SPI block read/write calls
...
1. Used SPI block read/write calls
2. Corrected SD write response handling (different for single and multiple
block writes)
2017-06-27 12:32:42 -05:00
Deepika
d9c055bf93
Added timer functions for busy wait while loops
2017-06-27 08:40:44 -05:00
Deepika
06136a0386
Cleanup
...
1. Additional debug level to trace SD commands and response.
2. Added space after if statements.
2017-06-23 15:38:01 -05:00
Deepika
25652a50cd
Replaced busy wait while loop with timers
2017-06-23 15:37:26 -05:00
Deepika
df8e085ee3
Proper response and error handling done
2017-06-23 13:03:24 -05:00
Deepika
22d7e4063f
Multiple block write command added
2017-06-22 11:08:22 -05:00
Deepika
f066339b80
Multiple block read command added
2017-06-21 16:19:46 -05:00
Deepika
ae280d99e1
pulled in capacity issue changes
2017-06-21 15:04:49 -05:00
Deepika
99f3d25f44
Removed hardcoded values for block size
2017-06-21 15:00:47 -05:00
Deepika
c890e0cfc7
Updated Init function
...
Modified initialization flow as per spec diag 7-2
Keep track of card status
block size supported is 512 bytes
Updated read/write functions to use correct block size
2017-06-21 14:16:28 -05:00
Deepika
547da1b24c
Using _cmd for _go_idle_state funciton
2017-06-21 12:16:22 -05:00
Deepika
e68d54efd0
Replaced _cmd58 with common _cmd function
2017-06-21 11:21:45 -05:00
Deepika
e10c59d134
Added response type handling for _cmd
2017-06-21 11:11:47 -05:00
Deepika
27ceeee5b5
Single command function call for all commands supported
...
5. Separated SPI functionality in different function call.
6. Used enums for existing commands using _cmd function.
2017-06-21 10:56:39 -05:00
Deepika
fbd1faf0b1
Single command function call for all commands supported.
...
1. Added enum for all commands supported.
2. Added error codes
3. Command Response defines
4. SPI Data Read/Write defines
2017-06-21 09:59:01 -05:00
Deepika
fa885f4b68
Cleanup of SPI related code
...
3. Removed redundant function _cmdx
2017-06-20 17:03:59 -05:00
Deepika
a26b3bca61
Cleanup of SPI related code
...
1. Added function to select/deselect the device
2. Init function for SPI
2017-06-20 16:41:23 -05:00
Deepika
f462bb6b5a
capacity of card to be calcualted from csd [69,48]
2017-06-20 13:36:06 -05:00
simosillankorva
efc6bbc46e
Add pin override for NUCLEO_F429ZI ( #20 )
...
This is needed as the regular configuration does not work with this board due pin conflict with Ethernet and SD-card.
2017-05-18 10:32:08 +03:00
Janne Kiiskilä
be68bf8f58
Merge pull request #15 from ARMmbed/ublox_odin_int_sd
...
Add UBLOX_EVK_ODIN_W2 override for int. SD-card
2017-05-04 15:41:17 +03:00
Janne Kiiskilä
59fafba0db
Add UBLOX_EVK_ODIN_W2 override for int. SD-card
...
Enable the internal SD-card reader in UBLOX_EVK_ODIN_W2. This will
disable the CI-shield SD-card reader if you have, if you prefer using it
you have to remove this target override section.
Please note that there seem to be some reliability problems with the
internal SD-card slot, in my case the mbed OS CI-shield works better.
2017-04-20 13:17:31 +03:00
Janne Kiiskilä
2dc0da56c3
Merge pull request #13 from ARMmbed/mbed_lib
...
Start using mbed_lib.json
2017-04-13 16:01:24 +03:00
Janne Kiiskilä
f90353cfe7
Start using mbed_lib.json
...
Modify example also similarly to match the PIN definitions. This encapsulates
all the SD-card related stuff to this library. By including this library you
also get the pin definitions on the same go.
2017-04-13 15:14:40 +03:00
Janne Kiiskilä
2ee24bd2f8
Anonymise the shell prompts
...
Into shell..
2017-04-10 14:31:10 +03:00
Sam Grove
37b5043d06
Merge pull request #5 from simonqhughes/master
...
Fix for armmbed/sd-driver issue 4: SDCard Initialisation fails for ES…
2017-04-06 11:23:49 -05:00