cancel
Showing results for 
Search instead for 
Did you mean: 

Python stm32com module / tool?

dimtass
Associate II

Hi all.

I'm trying to experiment with the stm32f7 discovery board and the MNIST dataset. I've trained the model and everything seems to be working fine and I'm running the validation app from the cubemx on the stm32.

My problem is that I haven't found any documentation on the serial protocol that cubemx uses to communicate with the stm32. The console refers to a stm32com-base interface (i.e. Python stm32comm module, protocol version 1.0). This is the output of the console:

# Note: At this point, default ASCII-base terminal should be closed
# and a stm32com-base interface should be used
# (i.e. Python stm32com module). Protocol version = 1.0

Where can I find that tool? I've search with no luck.

Thanks in advance.

3 REPLIES 3
dimtass
Associate II

I've found from the code that it's the nanopb protocol.

Is there available the proto file for the validation protocol and a documentation on how to use it?

NT.0
Associate II

Hi

Did you manage to call your network with Python stm32com module? I am also trying to figure out how to invoke my model to get inference.

Yeah ​Sure, I've written a post in my blog about it here:

https://www.stupid-projects.com/machine-learning-on-embedded-part-4/

ST Community schrieb am Mi., 14. Aug. 2019, 12:35: