This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF51 IoT SDK MQTT example on nRF51 Dongle

MQTT Example in the IoT SDK compiles with size bigger than available 160KB Program space?!! Is this correct as I can't flash with the IoT SoftDevice on it.

  • I tried to compile both the MQTT publisher and MQTT subscriber examples and both have a program size of about 37KB. After you compile the program size is shown in the Build Output window (the hex-file contains a lot of overhead and will be larger).

    I did successfully flash both examples on the nRF51 Dongle, and they are advertising. I have not changed anything in the Keil project files. I flashed the modified SoftDevice included in the IoT SDK first.

    Which version of Keil are you using? Have you downloaded the legacy support for Keil? Are you sure you haven't altered anything? Try to download a clean copy of the IoT SDK and try again.

  • Hi Stian,

    Thanks for the reply. I'm using Keil 5.12 with Legacy Support installed. The only changes I made were to remove LED4 ref, button references and publish on timed intervals instead on connect on Button 1 press, publish on button 2 press and disconnect on button 3 press.

    Also, compiler options to use board PCA10031 instead of PCA10028

    Thanks, Saurabh

  • Unfortunately, I'm not able to reproduce your problem. Can you please post your code so I can try to compile it here?

Related