Giter VIP home page Giter VIP logo

bluenrg-1-vscode's Introduction

BlueNRG-1-VSCode

This repo is a template for setting up VSCode to compile and debug code for the EMB-1061 BlueNRG-1 module

Watch this video for an introduction to this project

Watch this video

Please note:

This is an ongoing project and there are some issues and jank. Things like printing floats may not work correctly. Please take this into account when you decide to use this chip.

It's still better than paying $1500 a year for licenses to IAR or MDK5 though...

Features

  • OTA
  • Low Power (multiple years on a coin cell)

Base Setup ( all OS )

  1. Fork this template for your own project and clone to your computer
  2. Download and install VSCode and open your cloned project
  3. Install the Cortex-Debug extension by marus25
    1. Search marus25.cortex-debug in the extensions menu and install
  4. Install the Arm Cortex Debug Tools

Windows Setup

  1. In your opened project in VSCode, open and modify .vscode/settings.json as follows:
    1. In the integrated terminal run the getShort.bat with your Arm Cortex Debug Tools version's bin file location as the argument, for example: ./getshort.bat "C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\bin"
    2. Copy the output and put it into the "cortex-debug.armToolchainPath" setting, for example: '"cortex-debug.armToolchainPath": "C:/PROGRA\~2/GNUARM\~1/102020~1/bin",'
    3. Open your Arm Cortex Debug Tools version's file location in explorer and navigate to \lib\gcc\arm-none-eabi and copy the name of the file at that location.
      • My full path was C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\lib\gcc\arm-none-eabi
      • The file name I copied was 10.2.1
    4. Replace the setting "armToolchainVersion" with the file name you copied, for example: "armToolchainVersion": "10.2.1",
    5. (Optional if using JLink) Copy your JLink Server's install location into the setting "cortex-debug.JLinkGDBServerPath", for example: '"cortex-debug.JLinkGDBServerPath": "C:/Program Files (x86)/SEGGER/JLink_V635c/JLinkGDBServerCL.exe"'
  2. Install the BlueNRG-1_2 DK
    1. If building the project doesn't work, you may need to update the settings.json with the file location. Check and make sure that the "bluenrgDkLocation" setting's value is where your BlueNRG DK installed. If it wasn't, find it and run the getshort.bat with its lib file location.
      • For example, my install was located in C:\Users\<USER>\ST\BlueNRG-1_2 DK 3.2.1\Library so my setting looks like "bluenrgDkLocation": "C:/Users/<USER>/ST/BLUENR~1.1/Library"

You should be done!

Linux Setup

  1. In your opened project in VSCode, open and modify .vscode/settings.json as follows:

    1. Set path to toolchain in the "cortex-debug.armToolchainPath" setting, for example: '"cortex-debug.armToolchainPath": "/home/<user>/gcc-arm-none-eabi-10-2020-q4-major/bin",'
    2. Open your Arm Cortex Debug Tools version's file location in explorer and navigate to \lib\gcc\arm-none-eabi and copy the name of the directory at that location.
      • My full path was /home//gcc-arm-none-eabi-10-2020-q4-major/lib/gcc/arm-none-eabi
      • The dir name I copied was 10.2.1
    3. Replace the setting "armToolchainVersion" with the file name you copied, for example: "armToolchainVersion": "10.2.1",
  2. Install the BlueNRG-1_2 DK

    1. register and wait for email to download :(
    2. use innoextract to get files from the exe
    3. copy %USERPROFILE/ST/BlueNRG-1_2 DK 3.2.1 to your desired destination
    4. update the settings.json with the file location. Check and make sure that the "bluenrgDkLocation" setting's value is where your BlueNRG DK installed., for example: "/home/<user>/BlueNRG-1_2-DK-3.2.1"
  3. Build and install openocd-0.11.0-rc2

    1. see openocd readme for instructions http://openocd.org/doc-release/README
    • no special options needed, defaults work

Building and running the example project

  1. Press ctrl+shift+b to build the project, if everything is set up, it should build!
  2. Navigate to the run menu on the left and set your debug configuration to "Debug (ST-Link)" or "Debug (JLink)" depending on which debug device you are using
    • You will also need to connect your debug device to your ST-Link or JLink using the SWDIO, SWCLK, and GND pins. NOTE: I do not recommend using the 3.3V line to power your BlueNRG module, it causes errors. Please use an external power supply or coin cell between 1.7 to 3.6 V
  3. Click run or press f5, a debug window should pop up. Please note that this also executes the make task, so you do not need to press ctrl+shift+b every time you want to build and upload. To modify this behavior, edit the .vscode/launch.json file
  4. You should be able to step through your program, or click continue to let it run. When running it should blink the LED (GPIO_Pin_14 on my dev board) and also become a BLE Beacon. You should be able to see the BLE device through a BLE sniffer on your phone

File locations explanation

Here is the location of where the BlueNRG-1 DK is from https://www.st.com/content/st_com/en/products/embedded-software/evaluation-tool-software/stsw-bluenrg1-dk.html When you install this the actual location of the DK files should be C:/Users/<your user>/ST/BlueNRG-1_2 DK 3.2.1

BlueNRG-1 Dev Board

You can support this project by picking up a Development Board from here

pinout

Design files can be found here

Troubleshooting

bluenrg-1-vscode's People

Contributors

calebmarting avatar ctjet avatar nkruzan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bluenrg-1-vscode's Issues

Build error 'stdout' undeclared

Using MacOs.

Follow the steps on readme but getting this error when building:

libs/SDK_EVAL_Com.c:244:11: error: 'stdout' undeclared (first use in this function)
  244 |   setvbuf(stdout, NULL, _IONBF, 0);
      |           ^~~~~~
libs/SDK_EVAL_Com.c:27:1: note: 'stdout' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
   26 | #include <stdio.h>
  +++ |+#include <stdio.h>
   27 | 
Full output
> Executing task: make <

$SRCS is [src/BlueNRG1_it.c src/main.c  ]
PRE
if [ -d  libs ] ; then echo "dir  libs exists" ; else mkdir  libs ; fi
file exists
/Applications/Xcode.app/Contents/Developer/usr/bin/make --no-print-directory bin/blinkTest.bin
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
arm-none-eabi-gcc  -o obj/BlueNRG1_it.o src/BlueNRG1_it.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/main.o src/main.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
src/main.c: In function 'Device_Init':
src/main.c:256:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  256 |     printf ("Error in aci_hal_set_tx_power_level() 0x%04xr\n", ret);
      |     ^~~~~~
src/main.c:256:5: warning: incompatible implicit declaration of built-in function 'printf'
src/main.c:230:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  229 | #include "clock.h"
  +++ |+#include <stdio.h>
  230 | 
src/main.c:263:5: warning: incompatible implicit declaration of built-in function 'printf'
  263 |     printf ("Error in aci_gatt_init() 0x%04xr\n", ret);
      |     ^~~~~~
src/main.c:263:5: note: include '<stdio.h>' or provide a declaration of 'printf'
src/main.c:265:5: warning: incompatible implicit declaration of built-in function 'printf'
  265 |     printf ("aci_gatt_init() --> SUCCESS\r\n");
      |     ^~~~~~
src/main.c:265:5: note: include '<stdio.h>' or provide a declaration of 'printf'
src/main.c:271:5: warning: incompatible implicit declaration of built-in function 'printf'
  271 |     printf ("Error in aci_gap_init() 0x%04x\r\n", ret);
      |     ^~~~~~
src/main.c:271:5: note: include '<stdio.h>' or provide a declaration of 'printf'
src/main.c:273:5: warning: incompatible implicit declaration of built-in function 'printf'
  273 |     printf ("aci_gap_init() --> SUCCESS\r\n");
      |     ^~~~~~
src/main.c:273:5: note: include '<stdio.h>' or provide a declaration of 'printf'
src/main.c:280:5: warning: incompatible implicit declaration of built-in function 'printf'
  280 |     printf ("Error in Gatt Update characteristic value 0x%02x\r\n", ret);
      |     ^~~~~~
src/main.c:280:5: note: include '<stdio.h>' or provide a declaration of 'printf'
src/main.c:281:12: warning: 'return' with a value, in function returning void [-Wreturn-type]
  281 |     return ret;
      |            ^~~
src/main.c:246:6: note: declared here
  246 | void Device_Init(void)
      |      ^~~~~~~~~~~
src/main.c:283:5: warning: incompatible implicit declaration of built-in function 'printf'
  283 |     printf ("aci_gatt_update_char_value_ext() --> SUCCESS\r\n");
      |     ^~~~~~
src/main.c:283:5: note: include '<stdio.h>' or provide a declaration of 'printf'
src/main.c: In function 'Start_Beaconing':
src/main.c:341:5: warning: incompatible implicit declaration of built-in function 'printf'
  341 |     printf ("Error in hci_le_set_scan_resp_data() 0x%04x\r\n", ret);
      |     ^~~~~~
src/main.c:341:5: note: include '<stdio.h>' or provide a declaration of 'printf'
src/main.c:345:5: warning: incompatible implicit declaration of built-in function 'printf'
  345 |     printf ("hci_le_set_scan_resp_data() --> SUCCESS\r\n");
      |     ^~~~~~
src/main.c:345:5: note: include '<stdio.h>' or provide a declaration of 'printf'
src/main.c:353:5: warning: incompatible implicit declaration of built-in function 'printf'
  353 |     printf ("Error in aci_gap_set_discoverable() 0x%04x\r\n", ret);
      |     ^~~~~~
src/main.c:353:5: note: include '<stdio.h>' or provide a declaration of 'printf'
src/main.c:357:5: warning: incompatible implicit declaration of built-in function 'printf'
  357 |     printf ("aci_gap_set_discoverable() --> SUCCESS\r\n");
      |     ^~~~~~
src/main.c:357:5: note: include '<stdio.h>' or provide a declaration of 'printf'
src/main.c:365:5: warning: incompatible implicit declaration of built-in function 'printf'
  365 |     printf ("Error in hci_le_set_advertising_data() 0x%04x\r\n", ret);
      |     ^~~~~~
src/main.c:365:5: note: include '<stdio.h>' or provide a declaration of 'printf'
src/main.c:369:5: warning: incompatible implicit declaration of built-in function 'printf'
  369 |     printf ("hci_le_set_advertising_data() --> SUCCESS\r\n");
      |     ^~~~~~
src/main.c:369:5: note: include '<stdio.h>' or provide a declaration of 'printf'
src/main.c: In function 'main':
src/main.c:428:5: warning: incompatible implicit declaration of built-in function 'printf'
  428 |     printf("Error in BlueNRG_Stack_Initialization() 0x%02x\r\n", ret);
      |     ^~~~~~
src/main.c:428:5: note: include '<stdio.h>' or provide a declaration of 'printf'
src/main.c:441:12: warning: incompatible implicit declaration of built-in function 'printf'
  441 |   if(ret) {printf("Setting address failed.\n");}
      |            ^~~~~~
src/main.c:441:12: note: include '<stdio.h>' or provide a declaration of 'printf'
src/main.c:457:3: warning: incompatible implicit declaration of built-in function 'printf'
  457 |   printf("BlueNRG-1 BLE Beacon Application (version: %s)\r\n", BLE_BEACON_VERSION_STRING);
      |   ^~~~~~
src/main.c:457:3: note: include '<stdio.h>' or provide a declaration of 'printf'
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/BlueNRG1_adc.o libs/BlueNRG1_adc.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/BlueNRG1_dma.o libs/BlueNRG1_dma.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/BlueNRG1_flash.o libs/BlueNRG1_flash.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/BlueNRG1_gpio.o libs/BlueNRG1_gpio.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/BlueNRG1_mft.o libs/BlueNRG1_mft.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/BlueNRG1_pka.o libs/BlueNRG1_pka.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/BlueNRG1_radio.o libs/BlueNRG1_radio.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/BlueNRG1_rng.o libs/BlueNRG1_rng.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/BlueNRG1_rtc.o libs/BlueNRG1_rtc.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/BlueNRG1_spi.o libs/BlueNRG1_spi.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/BlueNRG1_sysCtrl.o libs/BlueNRG1_sysCtrl.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/BlueNRG1_timer.o libs/BlueNRG1_timer.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/BlueNRG1_uart.o libs/BlueNRG1_uart.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/BlueNRG1_wdg.o libs/BlueNRG1_wdg.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/SDK_EVAL_Button.o libs/SDK_EVAL_Button.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
if [ -d obj ] ; then echo "dir obj exists" ; else mkdir obj ; fi 
dir obj exists
arm-none-eabi-gcc  -o obj/SDK_EVAL_Com.o libs/SDK_EVAL_Com.c -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Profile_Central/includes -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/library/static_stack -I./inc -I/Users/myuser/dev/bluenrg/Library/hal/inc -I/Users/myuser/dev/bluenrg/Library/BlueNRG1_Periph_Driver/inc -I/Users/myuser/dev/bluenrg/Library/Bluetooth_LE/inc -I/Users/myuser/dev/bluenrg/Library/CMSIS/Include -I/Users/myuser/dev/bluenrg/Library/CMSIS/Device/ST/BlueNRG1/Include -I/Users/myuser/dev/bluenrg/Library/SDK_Eval_BlueNRG1/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/OTA/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/Utils/inc -I/Users/myuser/dev/bluenrg/Library/BLE_Application/layers_inc -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include -I/Applications/ARM/bin/../lib/gcc/arm-none-eabi/10.3.1/include-fixed -I/Applications/ARM/bin/../arm-none-eabi/include -I/Applications/ARM/bin/../arm-none-eabi/include/machine -I/Applications/ARM/bin/../arm-none-eabi/include/newlib-nano -I/Applications/ARM/bin/../arm-none-eabi/include/sys -mthumb -mcpu=cortex-m0 -DBLUENRG1_DEVICE -DDEBUG -DHS_SPEED_XTAL=HS_SPEED_XTAL_16MHZ -DLS_SOURCE=LS_SOURCE_INTERNAL_RO -DSMPS_INDUCTOR=SMPS_INDUCTOR_4_7uH -Dmcpu=cortexm0 -specs=nano.specs -mfloat-abi=soft -MD -std=c99 -c -fdata-sections -ffunction-sections  -Og -fdata-sections -g -fstack-usage -Wall
libs/SDK_EVAL_Com.c: In function 'SdkEvalComIOConfig':
libs/SDK_EVAL_Com.c:244:3: warning: implicit declaration of function 'setvbuf' [-Wimplicit-function-declaration]
  244 |   setvbuf(stdout, NULL, _IONBF, 0);
      |   ^~~~~~~
libs/SDK_EVAL_Com.c:244:11: error: 'stdout' undeclared (first use in this function)
  244 |   setvbuf(stdout, NULL, _IONBF, 0);
      |           ^~~~~~
libs/SDK_EVAL_Com.c:27:1: note: 'stdout' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
   26 | #include <stdio.h>
  +++ |+#include <stdio.h>
   27 | 
libs/SDK_EVAL_Com.c:244:11: note: each undeclared identifier is reported only once for each function it appears in
  244 |   setvbuf(stdout, NULL, _IONBF, 0);
      |           ^~~~~~
libs/SDK_EVAL_Com.c:244:25: error: '_IONBF' undeclared (first use in this function)
  244 |   setvbuf(stdout, NULL, _IONBF, 0);
      |                         ^~~~~~
libs/SDK_EVAL_Com.c: In function '__aeabi_memcpy':
libs/SDK_EVAL_Com.c:550:3: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
  550 |   memcpy(dest, src, n);
      |   ^~~~~~
libs/SDK_EVAL_Com.c:550:3: warning: incompatible implicit declaration of built-in function 'memcpy'
libs/SDK_EVAL_Com.c:547:1: note: include '<string.h>' or provide a declaration of 'memcpy'
  546 | #include <string.h>
  +++ |+#include <string.h>
  547 | 
libs/SDK_EVAL_Com.c: In function '__aeabi_memcpy4':
libs/SDK_EVAL_Com.c:555:3: warning: incompatible implicit declaration of built-in function 'memcpy'
  555 |   memcpy(dest, src, n);
      |   ^~~~~~
libs/SDK_EVAL_Com.c:555:3: note: include '<string.h>' or provide a declaration of 'memcpy'
libs/SDK_EVAL_Com.c: In function '__aeabi_memclr':
libs/SDK_EVAL_Com.c:560:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
  560 |     memset(dest, 0, n);
      |     ^~~~~~
libs/SDK_EVAL_Com.c:560:5: warning: incompatible implicit declaration of built-in function 'memset'
libs/SDK_EVAL_Com.c:560:5: note: include '<string.h>' or provide a declaration of 'memset'
libs/SDK_EVAL_Com.c: In function '__aeabi_memclr4':
libs/SDK_EVAL_Com.c:565:5: warning: incompatible implicit declaration of built-in function 'memset'
  565 |     memset(dest, 0, n);
      |     ^~~~~~
libs/SDK_EVAL_Com.c:565:5: note: include '<string.h>' or provide a declaration of 'memset'
libs/SDK_EVAL_Com.c: In function '__aeabi_memset':
libs/SDK_EVAL_Com.c:570:5: warning: incompatible implicit declaration of built-in function 'memset'
  570 |     memset(dest, c, n);
      |     ^~~~~~
libs/SDK_EVAL_Com.c:570:5: note: include '<string.h>' or provide a declaration of 'memset'
make[1]: *** [obj/SDK_EVAL_Com.o] Error 1
make: *** [main-build] Error 2
The terminal process "zsh '-c', 'make'" terminated with exit code: 2.

Terminal will be reused by tasks, press any key to close it.

Make issue

I am having this issue we I tried to build the project

$ make $SRCS is [src/BlueNRG1_it.c src/main.c ] PRE if not exist libs mkdir libs /usr/bin/sh: -c: line 2: syntax error: unexpected end of file make: *** [Makefile:131: pre-build] Error 2

my settings:
`
{
"json.schemas": [
{
"fileMatch": [
"/myfile"
],
"url": "schemaURL"
}
],

"armToolchainVersion": "10.3.1",
"cortex-debug.armToolchainPath": "C:/PROGRA~2/GNUARM~1/102021~1.10/bin", 
"cortex-debug.openocdPath": "${workspaceRoot}/openocd-0.11.0-rc1/bin/openocd.exe",
//Please modify this to your server location if different
"cortex-debug.JLinkGDBServerPath": "C:/Program Files/SEGGER/JLink/JLinkGDBServerCL.exe",
//TODO: update this with your user directory's name
"bluenrgDkLocation":"C:/Users/Fathi/ST/BlueNRG-1_2 DK 3.2.3/Library",
"binaryFileName":"blinkTest"

}
`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.