Closed idea--list closed 1 year ago
Are you using SD Library with one of these examples? The SD Library uses different pin connections than the ones on MAX32630FTHR board. Please modify the pins accordingly in your existing library.
Yes, i am using those examples. I modified Sd2Card.h file like that `/**
/* The default chip select pin for the SD card is SS. / //uint8_t const SD_CHIP_SELECT_PIN = SS; uint8_t const SD_CHIP_SELECT_PIN = 7;
//uint8_t const SD_CHIP_SELECT_PIN = SDCARD_SS_PIN; uint8_t const SD_CHIP_SELECT_PIN = 7;
// The following three pins must not be redefined for hardware SPI, // so ensure that they are taken from pins_arduino.h or variant.h, depending on architecture.
/ SPI Master Out Slave In pin */ //uint8_t const SPI_MOSI_PIN = MOSI; uint8_t const SPI_MOSI_PIN = 5; /* SPI Master In Slave Out pin / //uint8_t const SPI_MISO_PIN = MISO; uint8_t const SPI_MISO_PIN = 6; / SPI Clock pin */ //uint8_t const SPI_SCK_PIN = SCK; uint8_t const SPI_SCK_PIN = 4;
//uint8_t const SPI_MOSI_PIN = SDCARD_MOSI_PIN; //uint8_t const SPI_MISO_PIN = SDCARD_MISO_PIN; //uint8_t const SPI_SCK_PIN = SDCARD_SCK_PIN; uint8_t const SPI_MOSI_PIN = 5; uint8_t const SPI_MISO_PIN = 6; uint8_t const SPI_SCK_PIN = 4;
I took those pinnumbers from Users/USER/Documents/Arduino/packages/Maxim/hardware/arm/1.1.5/variants/max3263x_fthr/variant.h
. Recompiled and uploaded the sketch on the board, but nothing changes. I can not make SD work.
Do you have any idea what i might be doing wrong?
arduino-max326xx repo has been archived and is now read only.
Have a project that would need the SD card functionality of my MAX32630FTHR board. Using arduino v1.8.9 and maxim's 32-bit microcontroller v1.1.5 the SD functionality does not work, though i have set P0_7 as chipselect pin.. Tried all the SD code examples bundled to arduino but none of them work. The SD card itself has no issues.