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

nRF52 + ANT + example problem

Hi there,

I'm new to the nRF52 and to ANT, so I'm in the process of running through some of the example code. I've been able to successfully run peripheral and BLE examples. However, I haven't been able to do the same using the ANT SoftDevices.

I'm using a nRF52 Preview DK, and am trying to run the heart rate monitor example (ant_hrm_tx_auto_s212_pca10036.uvprojx).

Here’s what I’ve done so far:

  • Downloaded the ANT SoftDevices and programmed the ANT_s212_nrf52_1.SD to the board using nRFgo, through the OB J-Link.

  • Copied the header files from the ANT SoftDevice zip to \Nordic_Semiconductor\components\softdevice\s212\headers

  • Defined the ANT_LICENSE_KEY in nrf_sdm.h

  • Compiled the program in Keil uVision (v5)

When I try to load the program to the nRF52, I get an error:

Error: Flash Download failed - Could not load file 'D:\Program Files (x86)\Nordic Semiconductor\examples\ant\ant_plus\ant_hrm\hrm_tx\auto\pca10036\arm5_no_packs_build\nrf52832_xxaa.axf'

Any idea what's going on here? I haven't had this problem when running other example/tutorial files.

Cheers!

Parents
  • Thanks Petter. I managed to figure out my issue. I guess that I had the header file in the wrong folder. Pretty silly problem to have.

    For anyone else (although this is fairly obvious), it should be in \Nordic Semiconductor\components\softdevice\s212\headers and you'll need to be sure to remove the comment in front of #define ANT_LICENSE_KEY to use the evaluation license.

Reply
  • Thanks Petter. I managed to figure out my issue. I guess that I had the header file in the wrong folder. Pretty silly problem to have.

    For anyone else (although this is fairly obvious), it should be in \Nordic Semiconductor\components\softdevice\s212\headers and you'll need to be sure to remove the comment in front of #define ANT_LICENSE_KEY to use the evaluation license.

Children
Related