2022-11-14 01:57 AM
Hello, i just bought a STM32WL55JC2. It's working perfectly on Arduino but i want to use the LORA module and Arduino doesn't support it.
I've configured my stm on CubeMX and tried a basic HAL_GPIO_WritePin but it doesn't work and i can't figure why.
Arduino working code :Thank you :)
Solved! Go to Solution.
2022-11-14 07:07 AM
yea, but i see: _MODER shows 0xFFFF... -> pins are on analog mode !!!!! so no hi/lo output.
where you set it analog? check!
2022-11-14 07:16 AM
i generated the code automatically so i didn't change anything. I don't know how to change this.
2022-11-14 07:56 AM
check: did you
x set free pins as analog ?
+
to test : just write
GPIOB->MODER = 0x55555555 ;
while ....set pin .... .
2022-11-14 08:04 AM
Nop this parameter isn't enable. BUT with GPIOB->MODER = 0x55555555 ; my led is now working !!! Thank youu, i still don't know why my pins are on analog mode but it's fine
2022-11-14 08:47 AM
ok, not fine , but we got it going.
there is some instruction doing this - or is an error in Cube/HAL , then you should set pins yourself and not trust in HAL . (it has some errors, shure.)
+
When your question is answered, please close this topic by choosing Select as Best.