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

Building my first code with softdevice

Hi, I'm trying to build and install my first code that uses the BLE / softdevice to my NRF52-DK

I'm using Windows 10, Eclipse/gcc and nRF5_SDK_14.2.0_17b948a I'm able to build and download the blinky code to my DK (all working as expected),I'm able to download the "ble_app_uart_pca10040_s132.hex" from "\examples\ble_peripheral\ble_app_uart\hex" to my DK (all works as expected, not this hex file is 452KB). I have the code from "C:\Dev\Nordic\nRF5_SDK_14.2.0_17b948a\examples\ble_peripheral\ble_app_uart\pca10040\s132\armgcc" loaded in Eclipse it shows no errors, but 4 warnings in main.c -

Description/Location/Type

Unused declaration of variable 'm_advertising_ble_obs' line 110 Code Analysis Problem

Unused declaration of variable 'm_advertising_soc_obs' line 110 Code Analysis Problem

Unused declaration of variable 'm_gatt_obs' line 109 Code Analysis Problem

Unused declaration of variable 'm_nus_obs' line 108 Code Analysis Problem

I am able to compile the project with no errors, however the resulting .hex file is only 108KB in size and when loaded to the DK does nothing.

A I missing something simple? what information should I include here to help resolve this?

Thanks

Paul P

Parents
  • I got the micro-bit for £9UK maybe around $14. The only reason I got it (for her... I have far to many uC boards here already) was for the simple block programming and educational support - these have being free given to all UK school children (last year - not sure what age group) and are being used in current lessons. Have a look at the web site www.microbit.co.uk/home - you can try the block coding stuff with out logging in or anything so it's very child friendly (as are the physical boards).

    By the way... I'm not associated in any way, just think it's a nice starting place for the next gen.

Reply
  • I got the micro-bit for £9UK maybe around $14. The only reason I got it (for her... I have far to many uC boards here already) was for the simple block programming and educational support - these have being free given to all UK school children (last year - not sure what age group) and are being used in current lessons. Have a look at the web site www.microbit.co.uk/home - you can try the block coding stuff with out logging in or anything so it's very child friendly (as are the physical boards).

    By the way... I'm not associated in any way, just think it's a nice starting place for the next gen.

Children
No Data
Related