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

k_busy_wait( ) gives compilation error when CONFIG_SYS_CLOCK_TICKS_PER_SEC is set to 0 #4566

Closed
mnirmaladevi opened this issue Oct 26, 2017 · 1 comment
Labels
bug The issue is a bug, or the PR is fixing a bug

Comments

@mnirmaladevi
Copy link
Contributor

mnirmaladevi commented Oct 26, 2017

Using k_busy_wait results in compilation issue when CONFIG_SYS_CLOCK_TICKS_PER_SEC is set to 0 in config file.

Snippet of build log:

kernel/lib.a(thread.o): In function `k_busy_wait':
/home/intel/zephyr/source_code/zephyr/kernel/thread.c:142: undefined reference to `_timer_cycle_get_32'
/home/intel/zephyr/source_code/zephyr/kernel/thread.c:145: undefined reference to `_timer_cycle_get_32'
collect2: error: ld returned 1 exit status
/home/intel/zephyr/source_code/zephyr/Makefile:876: recipe for target 'prj00_prebuilt.elf' failed
make[2]: *** [prj00_prebuilt.elf] Error 1
make[2]: Leaving directory '/home/intel/zephyr/source_code/zephyr/tests/benchmarks/object_footprint/outdir/arduino_101'
Makefile:178: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/intel/zephyr/source_code/zephyr'
/home/intel/zephyr/source_code/zephyr/Makefile.inc:82: recipe for target 'all' failed
make: *** [all] Error 2

Steps to reproduce:

  1. Pull the changes from kernel: boot_delay: change to busy wait instaed of wait #4510
  2. cd $ZEPHYR_BASE/tests/benchmarks/object_footprint
  3. Add the below config to prj00.conf
--- a/tests/benchmarks/object_footprint/prj00.conf
+++ b/tests/benchmarks/object_footprint/prj00.conf
@@ -8,3 +8,4 @@ CONFIG_XIP=y
 CONFIG_OBJECTS_PRINTK=n
 CONFIG_OBJECTS_WHILELOOP=n
 CONFIG_KERNEL_BIN_NAME="prj00"
+CONFIG_BOOT_DELAY=1000
  1. Issue the below command,
    $make pristine; make BOARD=arduino_101 CONF_FILE=prj00.conf
@nashif
Copy link
Member

nashif commented Oct 26, 2017

you should not be using BOOT_DELAY with this test, this test is not supposed to run on hardware anyways and is used for measuring object size changes only

@nashif nashif added the bug The issue is a bug, or the PR is fixing a bug label Jan 30, 2018
@nashif nashif added the invalid label Feb 11, 2018
@nashif nashif closed this as completed Feb 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

2 participants