Skip to content

Add multicore "lockout" example. #722

@rewolff

Description

@rewolff

Many of my pico projects store a "config" structure in the last 4k page of the flash.

I have one project where I use the second core for an important task. But when I wrote that, I of course tried locking out the other core as I'm supposed to, but it only crashed. So I had to resort to resetting the other core and simply rebooting after a flash write (to restart the other core).

Somehow, when I tried this yesterday again to do it the proper way it simply worked. But along the way... I couldn't find any easy example of how it was supposed to work.

My suggestion is to make an example, that counts on core 0 (about once per second), writes the current count to the last page in flash every 10 times, and does something else on core 1, so that core 1 needs to be "locked out".

If you think this is a good idea, I could write the example, and issue a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions