Skip to content

Perhaps an issue with PB3, PB4, PA15 #57

@mstrens

Description

@mstrens

In order to use those pins, the code has to ask a remap of pin and to activate a clock (RCC_APB2Periph_AFIO).

Therefore in main.c you currently have
RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1 | RCC_APB2Periph_GPIOA | RCC_APB2Periph_AFIO, ENABLE);

Still this line is active only if you are using UART1 instead of USB.
Quite similar line of code exist for "limits" and "controls" files but not in stepper.c
So I expect (but not tested it), that it will not be possible to use those pins for step, dir or enable stepper when USB is used instead of uart1.
It would be better to add a line in main.c in order to ALWAYS activate RCC_APB2Periph_AFIO

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