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

nRF52832 GCC Issues

Hello,

I'm trying to prototype an application on the nRf52 DK (PCA10040) using the GCC toolchain. I followed all of the tutorial for setting things up and I can build and flash things fine, but I don't think the application is working correctly.

I'm starting with the HID keyboard example as a baseline. I have not modified any of the source and it builds without errors. The application comes up, the light blinks, but my phone (galaxy S8) cannot see the device. I can occasionally see the device in nRF connect, but the advertisment frequency nRF connect shows does not jive with the configured advertising intervals of 25ms / 2 seconds in the example.

If I flash the board with the hex files provided with the examples everything works nicely. I'm guessing the examples were not built with GCC? I'm thinking this may be the problem may be with the tool chain. I, perhaps foolishly, grabbed the newest version of the GNU ARM (6 2017-q2-update). Are there any known issues with this version? Or is there an older version that is recommended?

I've tried SDK versions 12.3 and 14.2, with the same results

Thanks, Josh

Edit 1: Here is the hex file I referenced in the comment below, couldn't attach to a comment for some reason. Hex file

Parents
  • @Hung Bui, I tried the hex file you provided, same behaivor a described in my previous post, --chiperase works, --sectorerase results in an application my phone can see but pairing is rejected. I merged the hex file you provided with SoftDevice 132 v5.0.0 before programming.

    With this in mind, I think I'm pretty comfortable assuming it's not my build environemnt / GCC setup that is the issue, that said I've attached a hex file form the SDK 14.2 HRS example that I built with this GCC setup:

    GNU_INSTALL_ROOT := D:/GNU_Arm/5_4_2016_q3/bin/
    GNU_VERSION := 6.3.1
    

    See Edit 1 in original post for link to file.

Reply
  • @Hung Bui, I tried the hex file you provided, same behaivor a described in my previous post, --chiperase works, --sectorerase results in an application my phone can see but pairing is rejected. I merged the hex file you provided with SoftDevice 132 v5.0.0 before programming.

    With this in mind, I think I'm pretty comfortable assuming it's not my build environemnt / GCC setup that is the issue, that said I've attached a hex file form the SDK 14.2 HRS example that I built with this GCC setup:

    GNU_INSTALL_ROOT := D:/GNU_Arm/5_4_2016_q3/bin/
    GNU_VERSION := 6.3.1
    

    See Edit 1 in original post for link to file.

Children
No Data
Related