Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT+ Fitness Equipment → Thread

   

GFIT on NRF52 DK Init issue

Rank

Total Posts: 1

Joined 2019-02-20

PM

Hi all,

I've finally been able to load the GFIT library example onto my Nordic NRF52 DK!

However, I keep getting errors when I run any gfit init functions.
Well not errors, APP_ERROR_CHECK_BOOL causes a WDT reset if it sees a non 0.

Example:
ret = gfit_init(gfit_custom_event_handler, app_error_handler, fe_device_id, GFIT_EVALUATION_LICENSE_KEY);

returns a 9 in ret.gfit_response_code

I get a 9 for all the functions below:
ret = gfit_hrp_set_pairing_mode(pairing_mode_proximity);
ret = gfit_hrp_set_pairing_proximity(DEMO_SEARCH_THRESHOLD, DEMO_PAIR_THRESHOLD);
ret = gfit_fep_set_equipment_type(bike);
etc

Can anyone point me in the right direction to what can be the issue?
I've been unable to find what a return code of 9 means, so I'm kinda stuck.

I use armgcc to compile and run my code. No debugging yet.

Any help would be appreciated.

Kind Regards
F
     
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Hi F,

Error code 9 indicates that it is not a supported device, as listed in "gfit_defines.h":

#define GFIT_ERROR_MODULE_NOT_SUPPORTED ((uint8_t) 0x09)

The GFIT library is only supported on GFIT or Starter Kit modules:

GFIT Module
D52DK2 Starter Kit

Other hardware platforms are not supported at this time.

Best regards