Closed teetak01 closed 8 years ago
Can you try to build for the NRF51822 target and let me know whether that builds?
How do I build for NRF51822? I tried mbed compile -m NRF51822 -t GCC_ARM -c
It fails on error "no target defined"
also the README says that only -m K64F
is currently supported
Can you send me the codebase you're trying to compile? Or add me on Skype?
The error "no target defined"
message is from when compiling RTOS, not from mbed CLI. And that's right, NRF51822 doesn't have RTOS.
Regarding the missing Python modules, IntelHex is needed for compiling (successfully) NRF51822 which uses .hex file format, not .bin
Long story short - even though you are able to compile for a specific platform, other platforms have requirements for specific modules. mbed CLI correctly reports the missing Python modules.
getting warnings about missing Python modules which are already installed, see attached file for details.
sudo pip install -r mbed-os/requirements.txt -U mbed update --protocol ssh
=> [mbed WARNING] The mbed build tools in this program require Python modules that are not installed. [mbed WARNING] This might prevent you from compiling your code or exporting to IDEs and other toolchains. [mbed WARNING] The missing Python modules are: pyserial, Jinja2, IntelHex, mbed-ls
[mbed WARNING] You can install all missing modules by opening a command prompt in "/home/mbed-client/morpheus/mbed-client-testapp/mbed-os" and running "pip install -r requirements.txt"
(The code builds fine regardless of the warnings)
mbed-cli-warnings.txt