Skip to main content
PPowe.1
Associate II
December 17, 2020
Question

Program microcontroller in Python using ctypes to utilize HAL libraries

  • December 17, 2020
  • 0 replies
  • 547 views

I am familiar with the STM32CubeIDE; I've done several of the examples and understand how it works on a basic level. What I need to do is create a user-interface (hence needing Python) that will allow a user to interact with the microcontroller. Ctypes is a Python library that allows the access and use of functions written in C as long as I have access to the library(ies) containing the C functions. I'm wondering if everything I need for an H743ZI2 MCU are in the STM32H7xx_HAL_Driver folder in my STM32Cube Repository so that I can write code in Python with the same functionality as if I had written it in the IDE.

Of course this is more work on my end because I won't have all the capabilities from the CubeIDE in handling peripherals/monitoring data/ect. I'm hoping that it is possible to replicate what the IDE does in Python though.

This topic has been closed for replies.