cancel
Showing results for 
Search instead for 
Did you mean: 

BlueNRG-1_2 DK 3.2.1 fails to compile on Linux. The included patch fixes it.

Wingunder
Associate III

Hi,

Compilation of the BlueNRG-1_2 DK 3.2.1 on Linux fails due to two files that were misspelt. The spelling mistakes are due to the fact that Windows file systems are not case sensitive and explains why it compiles on Windows, but not on Linux.

For those that are interested, here is a patch that fixed it for me:

diff --git a/Library/CMSIS/Device/ST/BlueNRG1/Include/BlueNRG2.h b/Library/CMSIS/Device/ST/BlueNRG1/Include/BlueNRG2.h

index 3323c94..b64fb8e 100644

--- a/Library/CMSIS/Device/ST/BlueNRG1/Include/BlueNRG2.h

+++ b/Library/CMSIS/Device/ST/BlueNRG1/Include/BlueNRG2.h

@@ -91,7 +91,7 @@ typedef enum {

 /** @} */ /* End of group Configuration_of_CMSIS */

 #include "core_cm0.h"                          /*!< ARM Cortex-M0 processor and core peripherals                             */

-#include "system_BlueNRG2.h"                   /*!< BlueNRG2 System                                                          */

+#include "system_bluenrg2.h"                   /*!< BlueNRG2 System                                                          */^M

 #ifndef __IM                                   /*!< Fallback for older CMSIS versions                                        */

  #define __IM  __I

diff --git a/Library/CMSIS/Device/ST/BlueNRG1/Source/system_bluenrg1.c b/Library/CMSIS/Device/ST/BlueNRG1/Source/system_bluenrg1.c

index 5392ddc..6203865 100644

--- a/Library/CMSIS/Device/ST/BlueNRG1/Source/system_bluenrg1.c

+++ b/Library/CMSIS/Device/ST/BlueNRG1/Source/system_bluenrg1.c

@@ -111,7 +111,7 @@

 **/

 #include "bluenrg_x_device.h"

-#include "BluenRG1_flash.h"

+#include "BlueNRG1_flash.h"^M

 #include "misc.h"

 #include "miscutil.h"

 #include "hal_types.h"

Cheers

0 REPLIES 0