Skip to content

DWORD access must be aligned on ARM M0 #428

Closed

Description

@kriegsman

First reported as a crash bug with CRGBPalette16 and a 'gradient palette' on a TeensyLC. Gradient palettes are defined as a series of bytes, but read as unit32_t's, which was causing hangs if the gradient palette happens to not be aligned in memory.

https://plus.google.com/u/1/113416559182515729363/posts/N73kZ4Q6D7t

https://forum.pjrc.com/threads/41051-Code-stops-working-when-I-try-to-output-to-serial

Reading four-byte chunks as 'dword's is okay, but the memory has to be aligned on platforms that require it.

cc: @PaulStoffregen

Activity

  1. self-assigned this
    on Mar 24, 2017
  2. added a commit that references this issue on Jul 28, 2017
    df7c993
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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