1

nrf51 to nrf52 issues

intern619 gravatar image

asked 2015-07-24 18:55:04 +0100

I'm trying to compile a project I have for nrf51 on nrf52. I am running into errors with macros not being set.

For example: error: #20: identifier "ADC_CONFIG_RES_10bit" is undefined error: #20: identifier "ADC_CONFIG_RES_Pos" is undefined error: #20: identifier "ADC_CONFIG_PSEL_Disabled" is undefined

I also have this issue: error: #20: identifier "ble_gap_enable_params_t" is undefined error: #136: struct "<unnamed>" has no field "gap_enable_params"

edit retag flag offensive close delete report spam

Comments

1

The API has changed -- have you set up the new SDK?

syntroniks ( 2015-07-24 19:45:31 +0100 )editconvert to answer

Yes, I believe I have.

mrintern7 ( 2015-07-27 04:49:37 +0100 )editconvert to answer

1 answer

Sort by ยป oldest newest most voted
3
hungbui gravatar image

answered 2015-07-27 13:07:07 +0100

@mrintern7: As mentioned here, the ADC peripheral has be redesigned and is not backward compatible with the nRF51 ADC. You would need to port your code for the ADC for NRF51 to the SAADC on the NRF52. You can follow the SAADC description here to use it.

The nrf_adc.c library file in the nRF52 SDK should not be used.

edit flag offensive delete publish link more

Comments

Thanks for the reply, I did not notice that before. Do you know what happened to ble_gap_enable_params_t?

mrintern7 ( 2015-07-27 22:41:15 +0100 )editconvert to answer

@mrintern7: Which SDK version did you use ? I can't find ble_gap_enable_params_t in our current SDK for nRF51 (SDK 7,8,9), we use ble_enable_params_t

Hung Bui ( 2015-07-28 11:30:18 +0100 )editconvert to answer

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

User menu

    or sign up

Recent questions

Question Tools

2 followers

Stats

Asked: 2015-07-24 18:55:04 +0100

Seen: 701 times

Last updated: juli 27 '15