Skip to content

MIMXRT1020_EVK sample/subsys/logging/logger report unaligned memory access #13727

@hakehuang

Description

@hakehuang

Describe the bug
logger report unaligned memory access

To Reproduce
Steps to reproduce the behavior:

  1. mkdir build; cd build
  2. cmake -DBOARD=mimxrt1020_evk ..
  3. make
  4. make flash

Expected behavior
case can run well

Impact
logger subsystem can not work well

Screenshots or console output

�start application at 0x600053d5 !!!

***** Booting Zephyr OS 1.14.0-rc1 *****

Module logging showcase.

[00:00:00.130,586] �[0m<inf> sample_module: log in test_module 11�[0m

[00:00:00.130,630] �[0m<inf> sample_module: Inline function.�[0m

Disabling logging in the sample_module module

Function called again but with logging disabled.

Instance level logging showcase.

[00:00:00.132,265] �[0m<inf> sample_instance.inst1: Inline call.�[0m

[00:00:00.132,309] �[0m<inf> sample_instance.inst1: counter_value: 0�[0m

[00:00:00.132,371] �[1;33m<wrn> sample_instance.inst1: Example of hexdump:

                                                01 02 03 04             |....    �[0m

[00:00:00.132,423] �[0m<inf> sample_instance.inst2: Inline call.�[0m

[00:00:00.132,467] �[0m<inf> sample_instance.inst2: counter_value: 0�[0m

[00:00:00.132,528] �[1;33m<wrn> sample_instance.inst2: Example of hexdump:

                                                01 02 03 04             |....    �[0m

Changing filter to warning on sample_instance.inst1 instance.

[00:00:00.133,402] �[1;33m<wrn> sample_instance.inst1: Example of hexdump:

                                                01 02 03 04             |....    �[0m

[00:00:00.133,464] �[0m<inf> sample_instance.inst2: Inline call.�[0m

[00:00:00.133,509] �[0m<inf> sample_instance.inst2: counter_value: 1�[0m

[00:00:00.133,568] �[1;33m<wrn> sample_instance.inst2: Example of hexdump:

                                                01 02 03 04             |....    �[0m

Disabling logging on both instances.

Function call on both instances with logging disabled.

Severity levels showcase.

[00:00:01.146,297] �[1;31m<err> main: Error message example.�[0m

[00:00:01.146,337] �[1;33m<wrn> main: Warning message example.�[0m

[00:00:01.146,378] �[0m<inf> main: Info message example.�[0m

***** USAGE FAULT *****

  Unaligned memory access

***** Hardware exception *****

Current thread ID = 0x80000004
Faulting instruction address = 0x60002956

Fatal fault in thread 0x80000004! Aborting.

Environment (please complete the following information):

  • OS: Linux
  • Toolchain Zephyr SDK
  • Commit SHA: v1.14.0_rc1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions