-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lora-e5 plus sdcard does not work #18975
Comments
The reason this does not work may be because the SPI bus does not work, see issue #19025 |
This actually works... I just had to use Before closing the issue, I have one question. The board does not include a SDcard reader, it must be an external module.
Thanks! |
What kind of module is it? |
Self wired, I'm testing one from Adafruit. |
hmm I wonder if that would be generally helpful or rather just confusing. You can however add the config to |
Thanks that works. I think Here there's a picture with the pinout of the LoRa-E5 mini, https://files.seeedstudio.com/products/317990687/image/3001615286723_.pic_hd.jpg Should I open a PR to add the |
I've added a board outside of RIOTBASE, so I won't do a PR for now. Just a question, it picks I think it should be done in This may be somehow related to issue #17059 Will comment there. |
Sorry for the long delay. You could use the This is how I create a variant of an existing RIOT board outside of the tree: Structure
Makefile(Copy-paste of original board. An MODULE = board
DIRS = $(RIOTBOARD)/common/nucleo
include $(RIOTBASE)/Makefile.base Makefile.depifneq (,$(filter mtd,$(USEMODULE)))
USEMODULE += mtd_sdcard_default
endif
# default to using fatfs on SD card
ifneq (,$(filter vfs_default,$(USEMODULE)))
USEMODULE += fatfs_vfs
USEMODULE += mtd
endif Add an Makefile.include# reuse periph config from nucleo-f429zi board
INCLUDES += -I$(RIOTBOARD)/nucleo-f429zi/include
# load the common Makefile.include for Nucleo boards
include $(RIOTBOARD)/common/nucleo144/Makefile.include Note that adding the include folder of the original board is done so that the Makefile.features# load the Nucleo-F429ZI features list
include $(RIOTBOARD)/nucleo-f429zi/Makefile.features This now is the clean include/board.h#ifndef BOARD_H
#define BOARD_H
#include "board_nucleo.h"
#include "arduino_pinmap.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name LED pin definitions and handlers
* @{
*/
#define LED0_PIN_NUM 0
#define LED0_PORT_NUM PORT_B
#define LED1_PIN_NUM 7
#define LED1_PORT_NUM PORT_B
#define LED2_PIN_NUM 14
#define LED2_PORT_NUM PORT_B
/** @} */
/**
* @name User button
* @{
*/
#define BTN0_PIN GPIO_PIN(PORT_C, 13)
#define BTN0_MODE GPIO_IN_PD
/** @} */
/**
* @name SD card configuration
* @{
*/
#define SDCARD_SPI_PARAM_SPI SPI_DEV(0)
#define SDCARD_SPI_PARAM_CS GPIO_PIN(PORT_D, 14)
#define SDCARD_SPI_PARAM_CLK GPIO_PIN(PORT_A, 5)
#define SDCARD_SPI_PARAM_MISO GPIO_PIN(PORT_A, 6)
#define SDCARD_SPI_PARAM_MOSI GPIO_PIN(PORT_A, 7)
//#define SD_CARD_SPI_SPEED_POSTINIT SPI_CLK_1MHZ
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#include "stm32_leds.h"
#endif /* BOARD_H */
/** @} */ It theoretically be possible to also include the original boards |
Description
A SD card attached to the lora-e5-dev board does not work.
Steps to reproduce the issue
To quickly test I added this to the
boards/lora-e5-dev/include/board.h
file:Then I tried the test program
tests/driver_sdcard_spi
Tried with 2 boards, one LoRa-E5 mini and one LoRa-E5 development. And 2 microSD cards. And 3 different SD card readers. All gave the same error. These are the SD card readers:
For the last one I tried with Arduino and it worked. So I think the sd card modules are fine.
Expected results
I expected the test to work, something like:
Actual results
With debugging enabled this is the output:
Versions
The text was updated successfully, but these errors were encountered: