![]() setting - most likely calling 'python' = which on the 16.04 version will fail. $(Q)$(PYTHON) $(PY_SRC)/makeversionhdr.py $(PYTHON) must be some sort of env. $(HEADER_BUILD)/mpversion.h: FORCE | $(HEADER_BUILD) So when you make mpy-cross - in the make file ( py.mk line 269) with the error it refers to : But if I type 2python" on the machine with 14.04, it opens python 2.7.6. If I type "python" I get a message saying python can be found in the following packages python-minimal and python3. If I list packages it shows that I have python3.5.2 installed. I'm guessing that whats happening here is it is trying to run a python script and not finding python. py/py.mk:269: recipe for target 'build/genhdr/mpversion.h' failed But when I try to make the mpy-cross it throws the following error: When you try and install the above packages there are a few problems, but if you follow the instructions on the package download data these seem to get fixed. However, when I went to repeat the installation on my production machine - which is win10 version 1703, install bash under win10 pulls down Ubuntu 16.04. I did the tests on my test pc, which is using win10 build 1607 - when you install bash under win10 it downloads and install Ubuntu 14.04 - and the above package install sequence works just fine. Or if you can get the board into dfu mode, then use the stm dfu utility and use the firmware.dfu file to flash. Reset it and then plug usb into the 'other' usb connector - and you should see the flash file system etc as normal. Start up either stflash (from wndows) or if you can set boot0 etc on the stmboard and get it in dfu mode) use the stm dfu example app.Ĭonnect to the board to the pc using the st link usb ( the one that powers it up on a nucleo board) and then erase the flash, then browse to the firmware.hex file and program the board. ![]() ![]() Make BOARD=Īt the end of a scuccessfull build in the stm32 directory you will have a folder for the build, in there you will find the firmware.hex and firmware.dfu Now everything is set up to allow builds of the stm boards Then back to the micrpython directory and build the cross compiler Now you can set the directory to the portts/unix directory and On the VM build with a 'full' version of UBUNTU you needed to first remove the binutils or arm gcc, but these are not installed on the Sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa Sudo apt-get install build-essential libreadline-dev libffi-dev git I installed as root - so you don't need passwords or to prefix commands with sudo Install Bash under Win 10 - I followed this link: I find this more convenient than using a Linux vm under windows as it is easier to get at the final hex/dfu files and then use STMLINK or the STM DFU app under windows to flash the boards This is a setup for build the stm32 boards under windows using Bash for Win 10
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |