Skip to main content
NWeis.19
Associate II
Question

Hi, I see something that looks like a bug in CubeIDE 1.10.1

Hi,

In gpio.c file the order of operations is first writing to a pin/port and after that defining the pin.

All MCU pins are defined to input low by default. So writing GPIO_PIN_SET to a pin that is input before we set it to be an output PP seems like a bug or rendering order.

Any ideas ?

BR,

Noam.

This topic has been closed for replies.

3 replies

Karthik Kumar
Associate II

Dear

@NWeis.19​ 

So writing GPIO_PIN_SET to a pin that is input before we set it to be an output PP seems like a bug or rendering order.

GPIO MODER is in output Mode??

NWeis.19
NWeis.19Author
Associate II

Sorry I did not understand your question...

Piranha
Principal III

ODR and BSRR registers can still be read and written regardless or the MODER configuration. And the same is true for reading IDR.