Hey,
I have a weird behavior in my application. Maybe somebody has an idea
what is going on. I am currently writing a driver for an epaper display.
The display only has slave in. There is another mode where the SDI also
acts as SDO, but the reference design does not include that.
So, I checked my wire before. I just pulsed the CS PIN. I can see it in
my logic analyser. There is also a short pulse of down-up and up-down
for SCK and SDI. So, I guess that is the spi_init.
So, the initialization looks like this:
spi_init_pins(config.SPI_BUS);
xtimer_usleep(SLEEP_TIME);
int cs_init = spi_init_cs(config.SPI_BUS, (spi_cs_t) config.CS_PIN);
if(cs_init != SPI_OK){
puts("Something went wrong while initializing the SPI bus with
the CS PIN");
return -1;
}
The Microcontroller crashs after the initialization. ISR stack
overflowed by at least 16 bytes. I tried it with
spi_init_pins(config.SPI_BUS); alone. That works fine. I am using the
hardware MOSI SPI pin. I tried both, the GPIO_PIN and SPI_HWCS.
gpio_t cs_pin = SPI_HWCS(1);
gpio_t cs_pin = GPIO_PIN(1, 12);
Has somebody an idea what it potentielly be? I am developing on a
bluepill. _______________________________________________
users mailing list
[email protected]
https://lists.riot-os.org/mailman/listinfo/users