8 years, 8 months ago.  This question has been closed. Reason: Unclear question

nRF51822 and SDFileSystem

I'm curious as to why SDFileSystem does not work on the nRF51-DK. This is a bit disconcerting for me. Is it the way that SPI is implemented on the nRF51822? Can it be made to work? Will it work on the nRF52 ?

Cheers,

...kevin

What problems are you having?

posted by Martin Kojtal 02 Sep 2015

Everything compiles fine. The nRF freezes at the first read or write call

posted by Kevin Braun 02 Sep 2015

Me too... It will occur freezes when use BLE or Ticker

posted by Kevin Ong 03 Sep 2015

Is there any update on this? A am curious to know as why it doesn't work AND if it can be fixed or not.

posted by Kevin Braun 11 Sep 2015

Hi I'm facing the same problem. I'm using LCD with SPI to check whether SPI works correctly or not.

Please check folllowing source code: functionA(); this function makes lcd yellow fp = fopen("/SD/sample.bmp", "r"); if(fp == NULL) { functionB(); this function makes lcd red return ; } functionC(); this function makes lcd blue

When I don't use SD card, LCD works correctly. However, when I use both of them, above program doesn't work. LCD remains yellow. If file isn't opened correctly, LCD must become red. Opened correctly, LCD must become blue. However, LCD remains yellow and probably program stops.

Can't nRF51822 working with mbed use SDFileSystem lib?

SPI of LCD uses p12(MOSI), p13(MISO), p15(SCLK) and p2(CS). SPI of SDFileSystem uses p12(MOSI), p13(MISO), p15(SCLK) and p21(CS).

Best regards

posted by yu ishikawa 30 Dec 2015

1 Answer

8 years, 4 months ago.

Hi I'm facing the same problem. I'm using LCD with SPI to check whether SPI works correctly or not.

Please check folllowing source code: functionA(); this function makes lcd yellow fp = fopen("/SD/sample.bmp", "r"); if(fp == NULL) { functionB(); this function makes lcd red return ; } functionC(); this function makes lcd blue

When I don't use SD card, LCD works correctly. However, when I use both of them, above program doesn't work. LCD remains yellow. If file isn't opened correctly, LCD must become red. Opened correctly, LCD must become blue. However, LCD remains yellow and probably program stops.

Can't nRF51822 working with mbed use SDFileSystem lib?

SPI of LCD uses p12(MOSI), p13(MISO), p15(SCLK) and p2(CS). SPI of SDFileSystem uses p12(MOSI), p13(MISO), p15(SCLK) and p21(CS).

Best regards