im using a Nucleo32l432kc flashed in Micropython and I would like to execute a python script whenever the device boots up.
Problem is, there's no file system so I can't save any code in "main.py" or "boot.py" like you would do on other Nucleo boards. The only way i found to put python code permanently on my Nucleo is to rebuild my firmware with a frozen module ("testModule.py") which worked, but its not very convenient since I have to type
Code: Select all
import testModule
testModule.test()
What I want to do is have my Nucleo execute a specific frozen module everytime it boots up. The frozen module would essentially act like "boot.py" but it wouldn't be editable without rebuilding the firmware. I already tryed modifying the main.c file
like in this thread viewtopic.php?f=2&t=3067 but it didn't work.
If anyone can help me achieve this I would really appreciate it.
Thank you
Gbergero