Problems with running the HRM example (ANT+)

Hello.

I bought an nRF5340 DK board and am trying to run the HRM example (which uses the ANT+ protocol) on it. The standard (create a new application -> copy a sample) blinky starts and works well, while the standard HRM_TX does not work.
I'm getting an error related to ANT+ initialization (hrm_tx: ant_plus_key_set failed: -63).
I have an ANT+ key that I got from thisisant.com and I tried writing it into the prj.conf file and the ant_rpc.conf file (adding the line "CONFIG_ANT_LICENSE_KEY=xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx -xxxx"). When it didn’t work out for me, I set “CONFIG_ANT_EVALUATION_KEY=y”.
What is this error? How to fix it?

I installed everything strictly according to the instructions from the video: https://youtu.be/yg2p-scEyUA (except for the last step since I couldn't open Kconfig —> Menuconfig, see screenshot below)

Thanks in advance, Victor

  • Good afternoon.
    Thank you for your quick response.

    The whole point here is that at the moment (see my steps above) I am NOT using my Ant+ key (I use CONFIG_ANT_EVALUATION_KEY=y). So I don't really understand how it can be invalid.

    Edit: You can try to zip your project with the change to "child_image/ant_rpc.conf" and I can try to run it here.

    I would be grateful to you. Let's check.
    I zipped the project file and uploaded it on DropMeFiles:
    https://dropmefiles.com/dMHKK

    By the way, maybe let's do the opposite? You managed to launch the project. Maybe you can zip it and send it to me, and I'll try to load it onto my nRF53 board

    Thank you!
    Sincerely, Victor.

  • Please drag and drop any files you want so send to me in text box you are replying. Unfortunately the page you are using is marked as Dangerous and I am not able to download from it. Though here are my files:

    5658.sample.zip

    Kenneth

  • Good afternoon.

    For some reason I did not receive a notification, so I did not notice your message.
    DropMeFiles is a very popular file sharing service (it’s been around for over 10 years). Honestly, I don't know why you consider it's dangerous.
    I didn't know about the ability to upload files directly to the forum.
    hrm_tx.zip
    Now I’ll check your file to see if it works for me.
    And you, please, check my file.

    Thank you very much for your quick response.
    Sincerely, Victor

  • I built your project, tried to run it on my board - I get the same error "<err> ant_init: ant_stack_init() failed: -22", "<err> ant_rpc_net: cmd handler missing cb"

    I also tried running it in debug mode.

    The program stops at this point.

    I have a big request to ask you - if you don’t know how to help me with this problem, please refer me to another employee of yours.
    I really don't want to ask new questions, but I have to, since I bought a NEW board and can't run the example code, I don't think it should be this way.

    I will look forward to your help.
    Sincerely, Victor.

  • In this particular case I recommend to ask for support on https://www.thisisant.com/ , they are the ones that both develop the ANT stack and licensing, and should be best able to look into your problems with -NRF_EINVAL (ANT License Key argument is invalid).

    Maybe you can see a difference between our views when buildling:

    Kenneth

Related