Any one tested with Strontium micro HCSD card?
I followed the the suggestions like BUFFERS=8 AND config_gpio=y.
I am getting the error Storage init ERROR!
GPIO Pins of nrf9160 used: CLK-29,MOSI-27,MISO-30,CS-26
Any one tested with Strontium micro HCSD card?
I followed the the suggestions like BUFFERS=8 AND config_gpio=y.
I am getting the error Storage init ERROR!
GPIO Pins of nrf9160 used: CLK-29,MOSI-27,MISO-30,CS-26
Hi!
Are you using the nRF9160 Development Kit or a custom board?
And I'll need some more information about the application you're running. Is it based on a sample in NCS? Which libraries / subsystems are you using?
You could also just share the whole application with me and the full log file, if you'd like.
Best regards,
Heidi
1. Using our own custom board. Board contains nrf9160 only and no nrf52840. one spi interface is used for sdcard.
2. NCS Apllication is used (sdk V1.5.0) zephyr/samples/subsys/fs/fat_fs code is used in our Application.
3. MOSI and MISO lines are pulled high using 10k resistors. CS is pulled low with 10k resistor.
4. Now tested with scandisk and samsung 32GB SDHC cards other than strontium.
5. With all cards we are getting the error "Storage init ERROR!"., We are redirecting the log messages to our uart port.
6. board common file (nrf9160dk_nrf9160_common.dts) contains
&spi2 { status = "okay"; cs-gpios = <&gpio0 26 0>; sdhc0: sdhc@0 { compatible = "zephyr,mmc-spi-slot"; reg = <0>; status = "okay"; label = "SDHC0"; spi-max-frequency = <24000000>; }; }; &spi2 { compatible = "nordic,nrf-spim"; status = "okay"; sck-pin = <29>; mosi-pin = <27>; miso-pin = <30>; };
7. prj,conf file contains
CONFIG_GPIO=y CONFIG_SPI=y CONFIG_SPI_2=y CONFIG_DISK_ACCESS=y CONFIG_DISK_ACCESS_SDHC=y CONFIG_DISK_ACCESS_SPI_SDHC=y CONFIG_DISK_SDHC_VOLUME_NAME="SD" CONFIG_FILE_SYSTEM=y CONFIG_FAT_FILESYSTEM_ELM=y CONFIG_SPI_NRFX_RAM_BUFFER_SIZE=8
Thank you
NS Murthy
Could you please add CONFIG_FS_LOG_LEVEL to prj.conf and then provide me the resulting log?
And if you have the datasheet for the card that would be great.
Could you please add CONFIG_FS_LOG_LEVEL to prj.conf and then provide me the resulting log?
And if you have the datasheet for the card that would be great.
Stronium and Scandisk cards started working after changing the line
cs-gpios = <&gpio0 26 0>; to cs-gpios = <&gpio0 26 1.>;
But sowhow Samsung card is not working. But it is ok for us.
You can close the ticket Thanks for the replies.