Skip to main content
Gbasi.1
Associate III
May 21, 2020
Question

hi guys, I'm having trouble trying to change a specific pin.

  • May 21, 2020
  • 6 replies
  • 2148 views

i can switch between all pin but this one is static, pin PC14 (I call it olcl).

I think maybe one of the peripheral units in the card is catching it to me.

this is the code and the setup.

sbs_pol_Pin is swiching states properly.

 while (1)

 {

HAL_GPIO_WritePin(sbs_pol_GPIO_Port,sbs_pol_Pin,GPIO_PIN_SET);

HAL_GPIO_WritePin(olcl_GPIO_Port,olcl_Pin,GPIO_PIN_SET);

delay_1u(100);

HAL_GPIO_WritePin(olcl_GPIO_Port,olcl_Pin,GPIO_PIN_RESET);

HAL_GPIO_WritePin(sbs_pol_GPIO_Port,sbs_pol_Pin,GPIO_PIN_RESET);

/*}

0693W000001cfPCQAY.png0693W000001cfP2QAI.png

This topic has been closed for replies.

6 replies

Tesla DeLorean
Guru
May 21, 2020

PC14 would be in the Low Power domain, it has very low current sink/source capability, review Data Sheet, and notes on pin

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Gbasi.1
Gbasi.1Author
Associate III
May 24, 2020

can you enplane a bit more please?

for exmple when im trying to write a different program which only toggle this pin up and down, it is doesnt changing as well.

i havnt seen nothing on datasheet that neutralize this pin when im working only with this pin.

by the way this is STM32L412KB

berendi
Principal
May 21, 2020

> I think maybe one of the peripheral units in the card is catching it to me.

Then check the schematics what is connected to the pin. No software can remove components from the board.

Gbasi.1
Gbasi.1Author
Associate III
May 24, 2020

can you enplane a bit more please?

for exmple when im trying to write a different program which only toggle this pin up and down, it is doesnt changing as well.

i havnt seen nothing on datasheet that neutralize this pin when im working only with this pin.

by the way this is STM32L412KB

berendi
Principal
May 24, 2020

Are you looking at the right datasheet? Does it contain a schematics?

Find the schematics of your board, and find out what is connected to the pin. Check that the pin is actually connected to the test point or pin header that you are measuring, no jumpers or solder bridges are missing.

Gbasi.1
Gbasi.1Author
Associate III
May 24, 2020

I'm looking in here https://www.st.com/resource/en/datasheet/stm32l412kb.pdf

and i can not find nothing about it.

there is no specific schematic in there that can help me in the topic you presented.

do you have something like that?