adafruit / Adafruit_nRF52_Bootloader

USB-enabled bootloaders for the nRF52 BLE SoC chips
MIT License
445 stars 401 forks source link

Missing prerequisites for compiling under windows #131

Closed frankbolton closed 4 years ago

frankbolton commented 4 years ago

Is your feature request related to a problem? Please describe. I am following the setup instructions in this repo README and the corresponding Adafruit instruction pagenrf52840-bootloader and can't get the line make BOARD=pca10056 clean to run. I have the ARM gcc compiler installed and on the system path as arm-none-eabi-gcc.exe and I have GNUWin32 Make installed and also on the system path. It appears that LadyADA is using MinGW based on screenshots from nrf52840-bootloader-compile.

armgcc_and_make_commandsworking

Describe the solution you'd like I would like the README file to contain more detailed prerequisites for compiling on a Window 10 workstation, including details of any application specific setup. If the addition is a link to a pre-existing reference, this would also be really helpful as make is a really unfortunate name when searching for resources.

Describe alternatives you've considered I have looked up alternative instructions and they seem to require IDE setup (e.g. eclipse or TI CCS), which is something @ladyada didn't do and that I want to avoid. EEV Blog forum Hacker workshop getting started arm gcc windows

Additional context This might be a beginner problem, but NRF52840 is a good platform for this.. This is one of my first dives into cross-compiling. I played with trying to compile things for Raspberry Pi a few years ago and gave up.

frankbolton commented 4 years ago

I managed to resolve the issue. Mingw needs to be installed.

Then using mingw to locate the folder with the Adafruit NRF52840 bootloader: MINGW - browsing folders in msys cd /c/and df