cancel
Showing results for 
Search instead for 
Did you mean: 

Compiling code for BlueNRG-2

LPetr.1
Senior

Hello. I would like to get some help compiling any project for BlueNRG-2.

I have downloaded Keil uVision5 IDE and also BlueNRG SDK from:

https://www.st.com/en/embedded-software/stsw-bluenrg1-dk.html

In my Keil, I have downloaded package for BlueNRG-20693W00000WLJeeQAH.png 

In Keil, I go to Project->Open Project,

Then in the BlueNRG SDK that I have downloaded I go:

ST->BlueNRG-1_2 DK 3.2.3->Project->BLE_Examples->BLE_ANCS->MDK-ARM->BlueNRG-2 and open BLE_ANCS.uvprojx

0693W00000WLJfSQAX.png 

I open the project and I can see it:

0693W00000WLJfcQAH.png 

I simply try to build the project and get the following error:

Build started: Project: BLE_ANCS
 
*** Target 'Release' uses ARM-Compiler 'Default Compiler Version 5' which is not available.
 
*** Please review the installed ARM Compiler Versions:
 
  'Manage Project Items - Folders/Extensions' to manage ARM Compiler Versions.
 
  'Options for Target - Target' to select an ARM Compiler Version for the target.
 
*** Build aborted.
 
Build Time Elapsed: 00:00:00

In my target options, I see the folowing compilers available:

0693W00000WLJg1QAH.png 

I have tried with default compiler 6 and I get a bunch of compilation errors:

Build started: Project: BLE_ANCS
 
*** Using Compiler 'V6.19', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
 
Build target 'Release'
 
ArmClang: error: unsupported option '--wchar32'
 
compiling BlueNRG1_mft.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling BlueNRG1_i2c.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling BlueNRG1_gpio.c...
 
ArmClang: error: unsupported option '--cpreproc'
 
assembling context_switch.s...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling BlueNRG1_sysCtrl.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling BlueNRG1_pka.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling BlueNRG1_rtc.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling BlueNRG1_dma.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling miscutil.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling BlueNRG1_spi.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling clock.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling sleep.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling osal.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling BlueNRG1_adc.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling BlueNRG1_flash.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling BlueNRG1_wdg.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling misc.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling BlueNRG1_uart.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling LSM6DS3.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling SDK_EVAL_Button.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling SDK_EVAL_Com.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling SDK_EVAL_Config.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling SDK_EVAL_Led.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling SDK_EVAL_SPI.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling stack_user_cfg.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling system_BlueNRG1.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling BlueNRG1_it.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling BLE_ANCS_main.c...
 
ArmClang: error: unsupported option '--wchar32'
 
compiling demo_application.c...
 
".\Release\Objects\BLE_ANCS.axf" - 29 Error(s), 0 Warning(s).
 
Target not created.
 
Build Time Elapsed: 00:00:01

I also tried with to select V6.19 but it is same as above.

Could someone point me in the right direction how to solve this issue? I have read a simillar post here:

https://community.arm.com/support-forums/f/keil-forum/52719/how-can-i-install-compiler-version-5-for-keil-vision-5

and I cannot fully understand why do we need a seperate compiler? Why default compiler that is being installed when you install Keil not good?

Is this the only option to install Arm Compiler 5.06 as it seems quite complex. You need to create account on ARM website and wait up to 5 days for their confirmation about your account...

1 REPLY 1
LPetr.1
Senior

UPDATE 2

I have tried to download Attollic TrueSTUDIO and open project from TrueSTUDIO IDE.

When I try to build the project, I am getting a message:

**** Build of configuration SPI for project DTM ****
 
Nothing to build for project DTM

I have tried to clean the project, but nothing is displayed on the console.