7 years, 6 months ago.

L432KC using D7 and D8

I'm trying to upgrade my project from F303K8 to L432KC because of bigger FLASH size. Everything seems working fine but initializing ports D7 and D8 as DigitalIn.

According to datasheet's Table 5, the D7 and D8 are set as OSC32_in and OSC32_out as default. So, I did the Solder Bridge modification:

  • SB4: OFF (Default, didn't change it)
  • SB17: OFF (Default, didn't change it)
  • SB6: ON
  • SB8: ON
  • SB5: OFF
  • SB7: OFF

I updated mbed library to revision 127. But DigitalIn's are not working for D7 and D8. I think it is a library port definition bug. Any idea?

Found answer! You need to disable LSE with this command:

__HAL_RCC_LSE_CONFIG(RCC_LSE_OFF);
posted by Ekin YILDIRIM 22 Oct 2016
Be the first to answer this question.