Impossible to upload, save or create program on stm32l432kc
Posted: Fri Apr 12, 2019 12:20 pm
Hi,
Im pretty new to the micropython environment and ive managed to flash my stm32 using st-link stm32 utility and an .hex file. I can use putty and write micropython code and it seems to be working fine.
Here's the issue: I want to run a program on the device that I can save on it (like "main.py" or "boot.py" but I can't figure out how to do it. The device doesn't seem to have any file in its memory because when I write "os.listdir()" i get "[]". Ive tryed using ampy or rshell to upload a file that says "hello world" but I get an error everytime, I tryed creating a file on the stm32 using the command " os.mkdir('test.py')" or "os.open('test.py','w')" but that failed too. I read somewhere that there might be no file system on the device due to its small memory size. If that is the case, how do i upload or save a program on the board?
Thanks in advance
Im pretty new to the micropython environment and ive managed to flash my stm32 using st-link stm32 utility and an .hex file. I can use putty and write micropython code and it seems to be working fine.
Here's the issue: I want to run a program on the device that I can save on it (like "main.py" or "boot.py" but I can't figure out how to do it. The device doesn't seem to have any file in its memory because when I write "os.listdir()" i get "[]". Ive tryed using ampy or rshell to upload a file that says "hello world" but I get an error everytime, I tryed creating a file on the stm32 using the command " os.mkdir('test.py')" or "os.open('test.py','w')" but that failed too. I read somewhere that there might be no file system on the device due to its small memory size. If that is the case, how do i upload or save a program on the board?
Thanks in advance