I am trying to move my Mbed code to a custom nRF51822 board. My first step is to get the code to build in uVision and then try to get everything working with my J-Link. I have followed the mBed instructions, but they are pretty sparse... They suggest that by exporting and unzipping, everything should just work. I exported to uVision4, as there is no 5 version. Then I opened the result in Keil, but when I try to build it, I get the loads of errors (see below):
Should I do anything else? Why isn't this working for me? Any guidance much appreciated.
Update:
Having continued to work on this, I have updated the uVision packs and configured the debugger, to connect to my JLink. I now don't get the error, so I can complete a build, but I am still getting 700+ warning, which seem to mostly be "last line of file ends without a new line".
Should I have done anything to configure this as a C++ project rather than a C project?