Skip to content

SPI fails on Nucleo_f334r8 #3850

@zephyrbot

Description

@zephyrbot

Reported by Erwan Gouriou:

tests/drivers/spi/spi_loopback fails on nucleo_f334r8.

bus error: (irq & poll)
Faulting instruction address: 0x8001f0e (drivers/spi/spi_context.h:229)
Imprecise data bus error
Fatal fault in ISR! Spinning...

Following part of code is pointed:
drivers/spi/spi_context.h:
{code:java}
void spi_context_update_tx(struct spi_context *ctx, u8_t dfs)
{
if (!ctx->tx_len) {
return;
}

ctx->tx_len--;
if (!ctx->tx_len) {
	ctx->current_tx++;
	ctx->tx_count--;

{code}

Issue lies since introduction of SPI LL Based driver.
Not a regression since there was no SPI driver for STM32F3 based socs before that.

Issue remains with mbolivar rework of driver:
#832

(Imported from Jira ZEP-2419)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: SPISPI busbugThe issue is a bug, or the PR is fixing a bugplatform: STM32ST Micro STM32priority: lowLow impact/importance bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions