cancel
Showing results for 
Search instead for 
Did you mean: 

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

NWeis.19
Associate II

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.

3 REPLIES 3
Karthik Kumar
Associate III

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??

Sorry I did not understand your question...

Piranha
Chief II

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