cancel
Showing results for 
Search instead for 
Did you mean: 

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

Gbasi.1
Associate II

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

7 REPLIES 7

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
Up vote any posts that you find helpful, it shows what's working..
berendi
Principal

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

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

Gbasi.1
Associate II

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

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
Associate II

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?