Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@GautierAtWork

Description

@GautierAtWork
Issue body actions

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.