NRF52832 (Nordic Thingy52 ) SD CARD problem #7663
Replies: 1 comment
-
Posted at 2018-02-19 by @gfwilliams Yes, it should be totally fine. Software SPI is used for FS on a few platforms and works fine on those. If the MOSI pin isn't changing, and is sometimes, are you sure you haven't just wired it to the wrong pin on the SD card? Also, using D11 for CS is a bit scary, because that's shared with the button on the Thingy? Posted at 2018-02-20 by @yerpj
Yes it is. I just unsoldered the button to avoid conflicts.
I am. In addition, I tried to remove the SD card just to be 100% sure there isn't any electrical conflict. driving the SPI directly from prompt (
Posted at 2018-02-20 by @gfwilliams You could try compiling with the THINGY52 target just in case there's some pin conflict from something else? I wouldn't expect Posted at 2018-02-20 by @yerpj I was not aware that the Thingy52 was supported!! Thanks Gordon, I'm going to try compiling this target and post the results here. Posted at 2018-02-20 by @yerpj Unfortunately I have the exact same behaviour than previously, I'm afraid this is not a pin conflict. How can I verify that the Posted at 2018-02-20 by @gfwilliams Assuming the SCK pin is going up and down you could be pretty sure it's the correct software SPI I'd have thought. Posted at 2018-02-20 by @yerpj Is that possible that pin P0.11 ( I reverted to the generic I really dislike when problems resolve by themselves... this is very frustating... Attachments: Posted at 2018-02-20 by @gfwilliams Ahh, yes that's it - so if you used the Thingy build with different pins then it should be fine. Pins V0..V3 work transparently via the IO expander and might be fine for CS. Also the 4 MOS transistor pins might be possible to hook up if you can get to the opposite side of them. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-02-19 by @yerpj
Hi,
I am trying to use a FS on SD Card with a NRF52. I compiled the image for the
nrf52dk
target , taking care to add thefilesystem
feature to it. this works (I have access to functionE.connectSDCard()
).I am using software SPI (
var ThingySpi=new SPI();
):MOSI=D4
MISO=D3
SCK=D2
CS=D11
This doesn't work. CS pin correctly goes down when a communication occurs, SCK line sends multiple pulses (8 at a time) but nothing goes out of MOSI. By calling getPinMode it tells me that the pin is "output", that seems to be correct for a software SPI.
By calling
digitalWrite()
I can correctly put it high or low. edges are very clean (verified with a scope).Then I tried to call
ThingySpi.write(0xFF)
and this time, the data correctly went out of MOSI.My question is then: Can the SD/FS module run on top of software SPI?
ps: The same setup on another board (by example my STM32F4DISCOVERY with a custom build with added
filesystem
feature) works perfectly.Beta Was this translation helpful? Give feedback.
All reactions