Skip to content

issue with nrf52840_pca10040 and peripheral sample #8683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GerlichM opened this issue Jul 2, 2018 · 6 comments
Closed

issue with nrf52840_pca10040 and peripheral sample #8683

GerlichM opened this issue Jul 2, 2018 · 6 comments
Assignees
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: low Low impact/importance bug

Comments

@GerlichM
Copy link

GerlichM commented Jul 2, 2018

Hello everyone,

i want to use the peripheral sample under samples/bluetooth/peripheral with the nrf52840_pca10040 board using Zephyr release 1.12.
The building via cmake and ninja works fine, however after the board is flashed i get the following output:

peripheral error

The Settings in the prj.conf file are the default Settings:

CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048

CONFIG_BT=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_SMP=y
CONFIG_BT_SIGNING=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_ATT_PREPARE_COUNT=2
CONFIG_BT_PRIVACY=y
CONFIG_BT_DEVICE_NAME="Test peripheral"
CONFIG_BT_DEVICE_APPEARANCE=833

CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_FCB=y
CONFIG_SETTINGS=y
CONFIG_SETTINGS_FCB=y

When CONFIG_FCB=y or CONFIG_SETTINGS=y is commented out the error does not occur so i assume it has something to do with the persistent storage.

Does someone have the same issue or a solution?

Thank you

@nashif nashif added the bug The issue is a bug, or the PR is fixing a bug label Jul 3, 2018
@GerlichM GerlichM changed the title issue with nrf52840_pca10056 and peripheral sample issue with nrf52840_pca10040 and peripheral sample Jul 3, 2018
@nashif
Copy link
Member

nashif commented Jul 3, 2018

@jhedberg fyi

@jhedberg
Copy link
Member

jhedberg commented Jul 3, 2018

You might be busting some thread stack, since the settings usage increases stack usage. I've tested peripheral on the nRF51 USB dongle (nrf51_pca10028) without issues. I'll try to find time to check the nRF52840 tomorrow. Meanwhile, you could try analyzing or increasing the size of the various stacks (Bluetooth RX, system workqueue, main, etc) .

@jhedberg
Copy link
Member

jhedberg commented Jul 4, 2018

I'm unable to reproduce this with the latest master branch. Can you confirm the same?

@nashif nashif added priority: medium Medium impact/importance bug priority: low Low impact/importance bug and removed priority: medium Medium impact/importance bug labels Jul 13, 2018
@cvinayak
Copy link
Collaborator

cvinayak commented Aug 9, 2018

@GerlichM please check you toolchain, also do try clean build starting with cmake

@carlescufi
Copy link
Member

@GerlichM is this still an issue?

@carlescufi
Copy link
Member

Closing due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

5 participants