Skip to main content
NWeis.19
Associate II
August 30, 2022
Question

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

  • August 30, 2022
  • 2 replies
  • 1160 views

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.

2 replies

Karthik Kumar
Associate II
August 30, 2022

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
August 30, 2022

Sorry I did not understand your question...

Piranha
Principal III
September 4, 2022

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