Skip to content

run function stuck the MCU #1

@superusrs

Description

@superusrs

when using a bare metal MCU without rtos, the MCU will get stuck in _run(void) function. in below code the toggle led function is never excuted

while (1)
{
  Shell.run();
  HAL_GPIO_TogglePin(GPIOD, GPIO_PIN_4);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions