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.

  • Hi Jared.

    I finally found how to merge hex files successfully.

    I am using the SES IDE. When I load one SDK example, I see several folders on the Project Explorer panel. If the goal is merging two different SDK examples and being able to program the merged file to my PCA10056 ble device but keeping the functionalities of both examples, which files from the Project Explorer should I merge from each of them? and, which tool should I use to flash the resulting merged output into the target device, making sure that the device flashed memory contains all the components needed to be fully functional (Application, SoftDevice, MBR, vector info, App data etc)? Is SES able to do it all or I'll have to use the nRF Connect Programmer app and flash each component one by one?

    It is obvious I am a newbie in developing matters, but I have a good idea to implement though. Would you please guide me? I would certainly appreciate it. Thanks for your time.

Reply
  • Hi Jared.

    I finally found how to merge hex files successfully.

    I am using the SES IDE. When I load one SDK example, I see several folders on the Project Explorer panel. If the goal is merging two different SDK examples and being able to program the merged file to my PCA10056 ble device but keeping the functionalities of both examples, which files from the Project Explorer should I merge from each of them? and, which tool should I use to flash the resulting merged output into the target device, making sure that the device flashed memory contains all the components needed to be fully functional (Application, SoftDevice, MBR, vector info, App data etc)? Is SES able to do it all or I'll have to use the nRF Connect Programmer app and flash each component one by one?

    It is obvious I am a newbie in developing matters, but I have a good idea to implement though. Would you please guide me? I would certainly appreciate it. Thanks for your time.

Children
Related