I am trying to compile files with ARM's GCC for an NRF51822 mkit board in linux. I have edited private_settings.py to reflect the location of my GCC. However, when I run build.py or make.py they fail. Here's the output:
pi@raspberrypi ~/jimi/mbed_sdk/mbed/workspace_tools $ python make.py -p 25 -m NRF51822 -t GCC_ARM
Building project BLINKY (NRF51822, GCC_ARM)
Compile: main.cpp
[ERROR] [Errno 8] Exec format error
pi@raspberrypi ~/jimi/mbed_sdk/mbed/workspace_tools $ python build.py -m NRF51822 -t GCC_ARM
Building library CMSIS (NRF51822, GCC_ARM)
Assemble: startup_NRF51822.s
[Errno 8] Exec format error
Completed in: (0.25)s
Build failures:
* GCC_ARM::NRF51822
I read here that python 2.7.6 is a 'prerequisite' for this. I am running python 2.7.3, and I have read of people getting 'Exec format error' caused by incorrect Python versions. So I am currently installing 2.7.6 (which is taking forever, so I haven't been able to try it yet!).
Have I forgotten to change some other necessary settings? Is there something else that I might be missing or doing wrong? Or is the other Python version going to fix the problem?
Any help or guidance is much appreciated!
EDIT: Just as I was about to give up and go home, python 2.7.6 finished installing. So I ran make.py and build.py with it... and got exactly the same results as with 2.7.3 posted above. Sigh! Does anyone have any ideas why I'm getting these errors?
I am trying to compile files with ARM's GCC for an NRF51822 mkit board in linux. I have edited private_settings.py to reflect the location of my GCC. However, when I run build.py or make.py they fail. Here's the output:
I read here that python 2.7.6 is a 'prerequisite' for this. I am running python 2.7.3, and I have read of people getting 'Exec format error' caused by incorrect Python versions. So I am currently installing 2.7.6 (which is taking forever, so I haven't been able to try it yet!).
Have I forgotten to change some other necessary settings? Is there something else that I might be missing or doing wrong? Or is the other Python version going to fix the problem?
Any help or guidance is much appreciated!
EDIT: Just as I was about to give up and go home, python 2.7.6 finished installing. So I ran make.py and build.py with it... and got exactly the same results as with 2.7.3 posted above. Sigh! Does anyone have any ideas why I'm getting these errors?