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

frdm_k64f: failed to run testcase tests/drivers/adc/adc_emul/ #35027

Closed
Zhaoningx opened this issue May 10, 2021 · 3 comments · Fixed by #35090
Closed

frdm_k64f: failed to run testcase tests/drivers/adc/adc_emul/ #35027

Zhaoningx opened this issue May 10, 2021 · 3 comments · Fixed by #35090
Labels
area: ADC Analog-to-Digital Converter (ADC) area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Milestone

Comments

@Zhaoningx
Copy link
Collaborator

To Reproduce

Failed to run testcase tests/drivers/adc/adc_emul/

Steps to reproduce the behavior:

export ZEPHYR_SDK_INSTALL_DIR=~/zephyr-sdk-0.12.4

twister -p frdm_k64f --device-testing --device-serial /dev/ttyACM0 -T tests/drivers/adc/adc_emul/

see error

@i: adc init done
I: adc init done
*** Booting Zephyr OS build zephyr-v2.5.0-3742-g0622bde3bf22 ***
Running test suite adc_basic_test

===================================================================
START - test_adc_emul_single_value
E: ***** BUS FAULT *****
E: Precise data bus error
E: BFAR Address: 0x20002de8
E: NXP MPU error, port 3
E: Mode: User, Data Address: 0x20002de8
E: Type: Read, Master: 0, Regions: 0x8100
E: r0/a1: 0x20002de4 r1/a2: 0x00000000 r2/a3: 0x000005dc
E: r3/a4: 0x00000040 r12/ip: 0x0000c189 r14/lr: 0x00001319
E: xpsr: 0x41000000
E: Faulting instruction address (r15/pc): 0x000045be
E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
E: Current thread: 0x200000e0 (unknown)
E: Halting system

Environment
OS: Fedora33
Toolchain:zephyr-sdk-0.12.4
Commit ID: 0622bde

@Zhaoningx Zhaoningx added the bug The issue is a bug, or the PR is fixing a bug label May 10, 2021
@erwango
Copy link
Member

erwango commented May 10, 2021

Test is also failed on STM32 based platforms.
From what I understand it is meant to be tested on native_posix only and .yaml filter should be fixed.
Cf #34640

^^ @semihalf-michalec-tomasz

@erwango erwango added area: ADC Analog-to-Digital Converter (ADC) priority: low Low impact/importance bug area: Tests Issues related to a particular existing or missing test labels May 10, 2021
@semihalf-michalec-tomasz
Copy link
Contributor

I thought that ADC emulator code doesn't use posix specific functions and it compiled fine for other platforms. Since I don't see use case for ADC emulator on different platforms than native_posix, I will prepare patch for this test .yaml.

@hakehuang
Copy link
Collaborator

@semihalf-michalec-tomasz please check this fixes #35090

@galak galak added this to the v2.6.0 milestone May 11, 2021
galak pushed a commit that referenced this issue May 11, 2021
we meet hardfault when run on real board.
as the device is a virtual device

I: adc init done

*** Booting Zephyr OS build zephyr-v2.5.0-3761-g730acbd6ed85  ***

Running test suite adc_basic_test

===================================================================

START - test_adc_emul_single_value

E: ***** BUS FAULT *****

E:   Precise data bus error

E:   BFAR Address: 0x20002d00

E:   NXP MPU error, port 3

E:     Mode: User, Data Address: 0x20002d00

E:     Type: Read, Master: 0, Regions: 0x8100

E: r0/a1:  0x20002cfc  r1/a2:  0x00000000  r2/a3:  0x000005dc

E: r3/a4:  0x00000040 r12/ip:  0x0000c67d r14/lr:  0x00001319

E:  xpsr:  0x41000000

E: Faulting instruction address (r15/pc): 0x000045c6

E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0

E: Current thread: 0x200000e0 (unknown)

E: Halting system

Fixes #35027

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
tejlmand pushed a commit to tejlmand/zephyr that referenced this issue May 25, 2021
we meet hardfault when run on real board.
as the device is a virtual device

I: adc init done

*** Booting Zephyr OS build zephyr-v2.5.0-3761-g730acbd6ed85  ***

Running test suite adc_basic_test

===================================================================

START - test_adc_emul_single_value

E: ***** BUS FAULT *****

E:   Precise data bus error

E:   BFAR Address: 0x20002d00

E:   NXP MPU error, port 3

E:     Mode: User, Data Address: 0x20002d00

E:     Type: Read, Master: 0, Regions: 0x8100

E: r0/a1:  0x20002cfc  r1/a2:  0x00000000  r2/a3:  0x000005dc

E: r3/a4:  0x00000040 r12/ip:  0x0000c67d r14/lr:  0x00001319

E:  xpsr:  0x41000000

E: Faulting instruction address (r15/pc): 0x000045c6

E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0

E: Current thread: 0x200000e0 (unknown)

E: Halting system

Fixes zephyrproject-rtos#35027

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
(cherry picked from commit 53b8706)
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
jori-nordic pushed a commit to jori-nordic/zephyr that referenced this issue Jun 15, 2021
we meet hardfault when run on real board.
as the device is a virtual device

I: adc init done

*** Booting Zephyr OS build zephyr-v2.5.0-3761-g730acbd6ed85  ***

Running test suite adc_basic_test

===================================================================

START - test_adc_emul_single_value

E: ***** BUS FAULT *****

E:   Precise data bus error

E:   BFAR Address: 0x20002d00

E:   NXP MPU error, port 3

E:     Mode: User, Data Address: 0x20002d00

E:     Type: Read, Master: 0, Regions: 0x8100

E: r0/a1:  0x20002cfc  r1/a2:  0x00000000  r2/a3:  0x000005dc

E: r3/a4:  0x00000040 r12/ip:  0x0000c67d r14/lr:  0x00001319

E:  xpsr:  0x41000000

E: Faulting instruction address (r15/pc): 0x000045c6

E: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0

E: Current thread: 0x200000e0 (unknown)

E: Halting system

Fixes zephyrproject-rtos#35027

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
(cherry picked from commit 53b8706)
Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
(cherry picked from commit 4cd0487)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ADC Analog-to-Digital Converter (ADC) area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants