You are viewing an older revision! See the latest version
Getting Started mbed Exporters
Exporting To Offline Tool-chains¶
Congratulations! You are one of the elite few who have chosen the path of ultimate power! You have chosen to take your code to an offline tool-chain. This means you will acquire the power of advanced debug, single step debugging, break points, and oh so much more. But be careful, with great power comes greater responsibility. You are leaving the online tools and their enhanced ease of use. With this step into the void you are now taking your destiny into your own hands. We have done our best to make the offline tools experience seamless and easy, unfortunately this is not always the case. Some tool-chains and some boards will have issues. This page is our attempt at documenting those problems and providing fixes. If you are reading this paragraph then fear not, you are likely not affected. If however you were first spirited away to a lower paragraph then read carefully as we think you may encounter some issues. Now, go forth, be productive, and use the force, we believe in you!
-The mbed team.
Nordic NRF51822 Chips¶
The Nordic NRF51822 chips in boards like the NRF51822-Mkit, the Seeed Arch BLE, the RedBear Labs board... etc
Keilv4¶
In KeilV4 by default a target for the NRF51822 chips exists, but there is no flash algorithm. This means an exported project will compile, but will not be able to be flashed to the board. To fix this please do the following steps the first time you want to use a nRF51822 BLE chip. You should only have to do this the first time.
pre-requisite¶
Steps¶
- Download nordic SDK V6, we're using V6 as it is the last version of the SDK to support KeilV4.
- install the nrf51_sdk
- Go build, load and debug your code!
possible error¶
If the flash algorithm is missing from your project please do the following. right click on the project -> Options for Target... -> Utilities tab -> Configure Flash Menu Command Settings button -> Add button -> select nrf51xx -> click Add -> Click OK -> click OK. Now you should be able to flash to the nrf51822 target.
GCC¶
Gcc exports for the NRF51822 also require some files from the Nordic nrf51_SDK. Please download and install it from the nordic website to enable offline compiles with gcc.