Skip to content

nano_timer will never expired @ARC @ARM when started and tested from ISR #1724

@zephyrbot

Description

@zephyrbot

Reported by Sharron LIU:

Configuration

arm, arc
Arduino 101, Arduino Due
nano
zephyr-kernel-1.1.0-160324-ca662c1

Bug detailed description

Nanokernel object timer is never expired, when invoked from ISR:
nano_timer_start()
nano_timer_test()
Refer to line #67 #68 in "src/main.c" from attached test cases.
NOTE: The issue is observed @arc and @arm, not observed @x86.
NOTE: If comment out above two lines, the test case passed.

Testcase to Reproduce

Attached "test_bat.tgz"

Steps to Reproduce

  1. cd zephyr
    source zephyr-env.sh
  2. download and untar attached test cases "test_bat.tgz"
    zephyr$ tar -zxvf test_bat.tgz
  3. cd test_bat
    @arc: make pristine;make BOARD=arduino_101_sss ARCH=arc flash
    @arm: make pristine;make BOARD=arduino_due ARCH=arm;bossac --port=ttyACM0 -e -w -v -b outdir/zephyr.bin
  4. verify from UART output test hang at "nano_timer: isr"

Expected Result

UART output:
tc_start()
...
ROJECT EXECUTION SUCCESSFUL

Actual Result

test hang at "nano_timer: isr".
then 20s later board reset (watchdog?).

User Impact

nano_timer not function.

(Imported from Jira ZEP-147)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: KernelbugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions