This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[SDK 10.0 Scanner Beacon] sd_ble_enable returns error 9

Using

  • IAR EWARM 7.20

  • PCA10001 V 2.0.0 (Changed the MCU to QFAAH00 Revision 3)

  • SDK 10.0

  • SoftDevice S110 8.0

  • J-Link Edu

  • Example: Scanner Beacon

(examples\ble_peripheral\experimental_ble_app_multiactivity_beacon\hrs_scanner)

/********************************************************************/

Hi, I'm using the PCA10001 board. This board had a revision 2 nRF51822 QFAA chip.

I replaced that chip to a QFAAH00 (0x0072) with a heat gun

to test SDK 10 and S110 8.0 codes.

I check with other examples, such as HRS and NUS, to check whether the board works

and it paired with my iPhone 6 plus's nRF Toolbox app with no problem.

After calling ble_stack_init,

the sd_ble_enable function returns error number 9, which means NRF_ERROR_INVALID_LENGTH.

NRF_ERROR_INVALID_LENGTH

Linker 1

Linker 2

Linker 3

I just migrated to SDK 10. I used SDK 7.2 in the past. So I hope I didn't make a mistake

about the Linker settings.

nRF Tool

Anyways, any ideas why sd_ble_enable returns error number 9?

-Best Regards, Mango922

Parents
  • Why on earth are you talking about linker settings. The linker has absolutely nothing at all to do with it. Read the documentation on the error message which tells you the attribute table size isn't valid, despite the fact you're passing in 0 which should be the default and ought to work. Go give it a proper value which is bigger than the minimum and a multiple of 4.

Reply
  • Why on earth are you talking about linker settings. The linker has absolutely nothing at all to do with it. Read the documentation on the error message which tells you the attribute table size isn't valid, despite the fact you're passing in 0 which should be the default and ought to work. Go give it a proper value which is bigger than the minimum and a multiple of 4.

Children
No Data
Related