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

Can't get ble_app_uart working on nRF51822 with GCC

I'm having trouble building the ble_app_uart example in: SDK11/examples/ble_peripheral

My build environment is: Ubuntu 15.04 SDK 11.0 GCC S130 PCA10000 nRF51822_xxaa - Rev 2 silicon

I can load and run the pre-built hex file: ble_app_uart_s130_pca10028.hex using JLinkExe. I can also successfully make the armgcc example.

My application doesn't run like the pre-built example when I do the following:

make make_flash_softdevice make flash

I have tried copying the PCA10028 folder and renaming it to PCA10000. I have edited Makefile and changed any references for PCA10028 and nrf51422_xxac to PCA10000 and nrf51822_xxaa respectively. I have tried various changes to the FLASH and RAM sections of ble_app_uart_gcc_nrf51.ld. However, I am not exactly sure what these should be as no combination seems to work.

I have tried using mergehex, but this doesn't work either.

I think my problem is related to the FLASH and RAM settings.

Can anyone point me in the right direction to resolving this issue.

Thanks Lee

Parents
  • A am not sure why you would get the pre-built hex file for pca10028 to work on a pca10000 with rev2 nRF51. It is not compatible according to the compatibility matrix.

    Did your make commands show any error messages? You can always use nrfjprog to program the hex file directly, rather than through make. nrfjprog -e to erase the flash, then nrfjprog --program <path-to-hex-file> for the SoftDevice and for the application. Will compiling the pca10028 examples and loading them using nrfjprog give the exact same behaviour as when downloading the pre-built hex file?

Reply
  • A am not sure why you would get the pre-built hex file for pca10028 to work on a pca10000 with rev2 nRF51. It is not compatible according to the compatibility matrix.

    Did your make commands show any error messages? You can always use nrfjprog to program the hex file directly, rather than through make. nrfjprog -e to erase the flash, then nrfjprog --program <path-to-hex-file> for the SoftDevice and for the application. Will compiling the pca10028 examples and loading them using nrfjprog give the exact same behaviour as when downloading the pre-built hex file?

Children
No Data
Related