Skip to content
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

test-ci: adc-dma : frdm-k64f: dma dest addess assert #49792

Closed
hakehuang opened this issue Sep 1, 2022 · 0 comments · Fixed by #49793
Closed

test-ci: adc-dma : frdm-k64f: dma dest addess assert #49792

hakehuang opened this issue Sep 1, 2022 · 0 comments · Fixed by #49793
Assignees
Labels
area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: low Low impact/importance bug

Comments

@hakehuang
Copy link
Collaborator

Describe the bug
dma driver meet address assert due to address is not 32 bit aligned.

Please also mention any information which could help others to understand
the problem you're facing:

 ASSERTION FAIL [(((uint32_t)(uint32_t *)destAddr) % destWidth) == 0U] @ WEST_TOPDIR/modules/hal/nxp/mcux/mcux-sdk/drivers/edma/fsl_edma.c:1015

To Reproduce
Steps to reproduce the behavior:
cd tests/driver/adc/adc_dma

  1. mkdir build; cd build
  2. west build -b frdm_k64f
  3. west flash
  4. See error

Expected behavior
test pass

Impact
adc dma

Logs and console output

*** Booting Zephyr OS build zephyr-v3.1.0-4370-g4f8156828674  ***
    Running TESTSUITE adc_dma
    ===================================================================
    START - test_adc_asynchronous_call
    ASSERTION FAIL [(((uint32_t)(uint32_t *)destAddr) % destWidth) == 0U] @ WEST_TOPDIR/modules/hal/nxp/mcux/mcux-sdk/drivers/edma/fsl_edma.c:1015
    E: r0/a1:  0x00000004  r1/a2:  0x000003f7  r2/a3:  0x000000a2
    E: r3/a4:  0x0000000f r12/ip:  0x00000000 r14/lr:  0x00006cf3
    E:  xpsr:  0x4100000f
    E: Faulting instruction address (r15/pc): 0x0000e52c
    E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
    E: Fault during interrupt handling
    E: Current thread: 0x200004a0 (test_adc_asynchronous_call)
    E: Halting system

Environment (please complete the following information):

  • OS: (e.g. Linux,)
  • Toolchain (e.g Zephyr SDK, ...)
  • Commit SHA or Version used: zephyr-v3.1.0-4370-g4f8156828674
@hakehuang hakehuang added the bug The issue is a bug, or the PR is fixing a bug label Sep 1, 2022
@hakehuang hakehuang self-assigned this Sep 1, 2022
@hakehuang hakehuang added area: Tests Issues related to a particular existing or missing test platform: NXP NXP labels Sep 1, 2022
@fabiobaltieri fabiobaltieri added the priority: low Low impact/importance bug label Sep 6, 2022
mmahadevan108 pushed a commit that referenced this issue Sep 15, 2022
force the dma destintion address 32 bit aligned

fixing: #49792

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants