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

nRF52840 DK. May I run two example applications at the same time in the same board?

In order to establish a wireless connection from my pca10056 developing card and a second nRF52840 SoC module using example CLI commands, and then being able to check/set several parameters in the SoC module, I would need programming two different example applications in the nRF52840 DK (I mean instead off building a new app and commands on my own). Is this possible?

Parents
  • Hi

    I strongly suggest that you merge your examples. The use of thread would require you to use an OS, which would be much more complicated than merging. In addition, the Softdevice isn't thread safe which would make it unsafe to use with threading. 

    Best Regards

    Jared 

  • Hi Jared.

    I'm trying to merge two hex files through mergehex command, but I consistently get this error message:

    C:\Users\jtorr>mergehex -m ble_app_interactive_s140_pca10056.hex radio_test_pca10056.hex -o merge_app.hex
    Parsing input hex files.
    ERROR: One of the files to merge cannot be found.

    C:\Users\jtorr>

    Of course, both files are in the Windows path

    Any suggestion?

    Thanks

  • Hi

    Either the path is incorrect or the name of the files is. The error message isn't shown otherwise.

  •  I tried it again but this time using two SDK original files from the blinky example. Then I just copy pasted each windows tree. The command syntax seems to be correct, but again the same error. I am afraid it must be something else?:

    ----------------------------------------------------

    Microsoft Windows [Versión 10.0.17134.407]
    (c) 2018 Microsoft Corporation. Todos los derechos reservados.

    C:\Users\jtorr>mergehex -m C:\Nordic\SDK\nRF5_SDK_15.2.0_9412b96\examples\peripheral\blinky\hex C:\Nordic\SDK\nRF5_SDK_15.2.0_9412b96\examples\peripheral\blinky\hex -o out.hex
    Parsing input hex files.
    ERROR: One of the files to merge is not a valid hex file.

    C:\Users\jtorr>

    ----------------------------------------------------

    Thanks for your help

  • The error code is now different from before. The previous error code was about the path, this one says: "One of The files to merge is not a valid hex file". 

    Which clearly explains what the cause of the error is.

Reply Children
Related