Hi, Real starter question here.
What are the steps and dependencies to setting up a build environment in Windows, so as to be able to build STM ports? Is this a good way to go? Is it better to use 'Bash' under Win10. Is 'bash' in Win 10 enough of a Linux environment to work? If Bash under win 10 is a better way to go, is there a step by step tutorial on installing all the dependencies etc. required? Another option is Mac OS - same question - is there a step by step tutorial on all the steps required to get the environment set up?
Apologies if this seems to basic a question - but we all have to start somewhere!
Setting up build environment
Re: Setting up build environment
You need a toolchain. I installed the Windows one from here: https://launchpad.net/gcc-arm-embedded
You'll also need make and the regular toolchain. Using Win10 bash, I was able to build micropython but I couldn't flash it. I had to use the regular shell to do that.
You should probably do an apt-get install build-essentials
You can also use cygwin, or MinGW, or build it using MSVC if you want to use a non-gcc toolchain (although I haven't personally tried MSVC).
You'll also need make and the regular toolchain. Using Win10 bash, I was able to build micropython but I couldn't flash it. I had to use the regular shell to do that.
You should probably do an apt-get install build-essentials
You can also use cygwin, or MinGW, or build it using MSVC if you want to use a non-gcc toolchain (although I haven't personally tried MSVC).
Re: Setting up build environment
From a previous thread by peter Kenyan
viewtopic.php?t=1691
I installed using hyper V on windows. This worked with the a few missing steps on build..
On unix build you need to 'make axtls' first, then do make, then unix builds works fine. On STMHal you need to build the cross compiler first : 'make -C mpy-cross', after this stmhal boards build just fine.
However I would like to try building using bash under windows. This would have less overhead than a VM and easier access to the final *.hex, *.dfu files in windows for flashing etc. Would I use the same package install sequence in in bash as in the Ubuntu linix install?...
sudo apt-get install build-essential libreadline-dev libffi-dev git
git clone https://github.com/micropython/micropython.git
1). sudo apt-get remove binutils-arm-none-eabi gcc-arm-none-eabi
2). sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
3). sudo apt-get update
4). sudo apt-get install gcc-arm-embedded
viewtopic.php?t=1691
I installed using hyper V on windows. This worked with the a few missing steps on build..
On unix build you need to 'make axtls' first, then do make, then unix builds works fine. On STMHal you need to build the cross compiler first : 'make -C mpy-cross', after this stmhal boards build just fine.
However I would like to try building using bash under windows. This would have less overhead than a VM and easier access to the final *.hex, *.dfu files in windows for flashing etc. Would I use the same package install sequence in in bash as in the Ubuntu linix install?...
sudo apt-get install build-essential libreadline-dev libffi-dev git
git clone https://github.com/micropython/micropython.git
1). sudo apt-get remove binutils-arm-none-eabi gcc-arm-none-eabi
2). sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
3). sudo apt-get update
4). sudo apt-get install gcc-arm-embedded