Page 1 of 1

Micropython with HSI on F767 for testing

Posted: Mon Aug 08, 2022 6:23 am
by Sunnyside
I have a custom board that's based on the nucleo f767. I created board.definition files based on the nucleo files and I am able to get the python console prompt on my uart but Ethernet doesn't work. I think I have a hardware issue with my clock. I am able to use the Ethernet interface only when the hsi is used with a cube IDE project so I would like to try this in my micropython.

How do I setup the board to use HSI?

thanks.

Re: Micropython with HSI on F767 for testing

Posted: Thu Aug 11, 2022 1:36 am
by jimmo
I'm guessing that there's missing config to make the ethernet peripheral use the HSI. You can use machine.mem32[stm.REGISTER] to access the clock registers at runtime and see that everything is set up the same way as your cube IDE config.