This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Building nRF5 application with gcc on Keil uVision

Hello,

I use the nRF5 SDK 11.0.0 and with it we can easily build the examples with armcc from Keil, or with gcc (arm-none-eabi-gcc) from the command line using your Makefiles. So far so good.

Now I'd like to build the application using Keil but with gcc. The reasons are mainly that I will code with eclipse (Makefile build) and it's obviously more convenient with gcc (error parser, indexer, etc.) than with armcc, but I also want to be able to debug the application from Keil UV. It would really make sense to me that both builds have the exact same output, I don't want to mess with two different compilers.

So do you have already set up Keil to use gcc instead of armcc (which can be done under Manage Project Items -> Folders/Extensions -> Use GCC compiler) ? If so could you provide an example project ?

I am currently trying to do this but it's hard to know what exactly Keil is doing during the build since it does not provide the exact compiler calls. There are some compilation errors on files that compile well with the Makefile compiler call and it's not really obvious why the build goes bad.

If you could by example provide a Keil configuration that builds the ble_app_template (ble_peripheral) with gcc the same way than in the Makefile it would be great. Does it seem possible ?

Any help would be greatly appreciated.

Tim.

Keil setting for GCC : image description

Keil website mentioning GCC support : Keil ARM GNU C Compiler support

And its main statement :

The Keil MDK-ARM can be used with the GNU Compiler Collection (GCC).

Parents Reply Children
No Data
Related