Skip to content

nucleo-f446re problem with using the led and spi at the same time #21336

@tanneberger

Description

@tanneberger

Description

@edwardalee and I were trying to program for the nucleo-f446re and discovered that when we added the USEMODULE += periph_spi the LED macros stopped working.

Steps to reproduce the issue

#include <stdio.h>

#include "clk.h"
#include "board.h"
#include "periph_conf.h"
#include "timex.h"
#include "ztimer.h"

int main(void)
{
    while (1) {
        ztimer_sleep(ZTIMER_USEC, 1 * US_PER_SEC);
        LED0_TOGGLE;
    }

    return 0;
}

Now just add USEMODULE += periph_spi to your Makefile and this program stops working / led stops blinking.

Expected results

a blinking led

Actual results

no blinking led

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions