Skip to content

M5Stack-ATOM: allow Events and Arduino loop on core0 #8461

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
1 task done
GautierAtWork opened this issue Jul 26, 2023 · 0 comments · Fixed by #8462
Closed
1 task done

M5Stack-ATOM: allow Events and Arduino loop on core0 #8461

GautierAtWork opened this issue Jul 26, 2023 · 0 comments · Fixed by #8462
Labels
Type: Feature request Feature request for Arduino ESP32

Comments

@GautierAtWork
Copy link
Contributor

Related area

Board support

Hardware specification

M5Stack ATOM

Is your feature request related to a problem?

When using an M5Stack-ATOM and nimble library, using defaults board parameters ends up to SW reset:

assert failed: interrupt_hlevel_disable bt.c:517 (xPortGetCoreID() == CONFIG_BTDM_CTRL_PINNED_TO_CORE)

This could be avoided by letting the Events and the Arduino loop to run on core0

Describe the solution you'd like

make following options available in the Tools menu for board M5stack-ATOM.

  • Events Run On
  • Loop Run On

This is achievable by adding these lines at the relevant place in boards.txt:
`

m5stack-atom.menu.LoopCore.1=Core 1
m5stack-atom.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
m5stack-atom.menu.LoopCore.0=Core 0
m5stack-atom.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0

m5stack-atom.menu.EventsCore.1=Core 1
m5stack-atom.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
m5stack-atom.menu.EventsCore.0=Core 0
m5stack-atom.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0
`

Describe alternatives you've considered

Configuring the nimble library is more cumbersome for the end-user. (and does not work)

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.
@GautierAtWork GautierAtWork added the Type: Feature request Feature request for Arduino ESP32 label Jul 26, 2023
@GautierAtWork GautierAtWork changed the title allow Events and Arduino loop on core0 M5Stack-ATOM: allow Events and Arduino loop on core0 Jul 26, 2023
GautierAtWork pushed a commit to GautierAtWork/arduino-esp32 that referenced this issue Jul 26, 2023
me-no-dev pushed a commit that referenced this issue Aug 29, 2023
Closes #8461

Co-authored-by: Gautier Seidel <[email protected]>
Co-authored-by: Jan Procházka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature request Feature request for Arduino ESP32
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant