-
Notifications
You must be signed in to change notification settings - Fork 0
Add gettimeofday example #1
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
Open
kubo39
wants to merge
11
commits into
main
Choose a base branch
from
gettimeofday
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17b0065
to
a983277
Compare
ae729f1
to
3d9eb2c
Compare
With -v, cd /home/kubo39/zephyrproject/zephyr/samples/ldc_examples/gettimeofday && dub build -f -b debug --compiler=/home/kubo39/dev/install-ldc/bin/ldc2 --arch=thumbv7em-unknown-none-newlibeabi
Starting Performing "debug" build using /home/kubo39/dev/install-ldc/bin/ldc2 for arm, arm_thumb, arm_softfloat.
Building gettimeofday ~master: building configuration [library]
binary /home/kubo39/dev/install-ldc/bin/ldc2
version 1.32.0-git-bc6b5e7 (DMD v2.102.2, LLVM 15.0.7)
config /home/kubo39/zephyrproject/zephyr/samples/ldc_examples/gettimeofday/ldc2.conf (thumbv7em-unknown-none-newlibeabi)
predefs Have_gettimeofday Have_zephyr_core LDC all D_Version2 assert D_PreConditions D_PostConditions D_Invariants D_BetterC ARM Thumb ARM_Thumb ARM_SoftFloat D_SoftFloat LittleEndian FreeStanding CRuntime_Newlib LDC_LLVM_1500
(snip...) |
$ west build -t run
(snip..)
[10/11] To exit from QEMU enter: 'CTRL+a, x'[QEMU] CPU: cortex-m3
qemu-system-arm: warning: nic stellaris_enet.0 has no peer
Timer with period zero, disabling
[00:00:00.000,000] <wrn> net_if: You have 1 IPv6 net_if addresses but 2 network interfaces
[00:00:00.000,000] <wrn> net_if: Consider increasing CONFIG_NET_IF_MAX_IPV6_COUNT value.
[00:00:00.000,000] <wrn> net_if: You have 1 IPv4 net_if addresses but 2 network interfaces
[00:00:00.000,000] <wrn> net_if: Consider increasing CONFIG_NET_IF_MAX_IPV4_COUNT value.
[00:00:00.000,000] <wrn> net_if: Cannot do DAD IPv6 config is not valid.
*** Booting Zephyr OS build zephyr-v3.3.0-1288-g44a8b70cccaf ***
[00:00:00.000,000] <inf> net_config: Initializing network
[00:00:00.000,000] <inf> net_config: IPv4 address: 192.0.2.1
[00:00:00.010,000] <err> os: ***** USAGE FAULT *****
[00:00:00.010,000] <err> os: Illegal load of EXC_RETURN into PC
[00:00:00.010,000] <err> os: r0/a1: 0x2000133c r1/a2: 0x0000644b r2/a3: 0x00000000
[00:00:00.010,000] <err> os: r3/a4: 0x00000080 r12/ip: 0x0000000a r14/lr: 0x0000001c
[00:00:00.010,000] <err> os: xpsr: 0x20008200
[00:00:00.010,000] <err> os: Faulting instruction address (r15/pc): 0x00000000
[00:00:00.010,000] <err> os: >>> ZEPHYR FATAL ERROR 34: Unknown error on CPU 0
[00:00:00.010,000] <err> os: Current thread: 0x20002020 (unknown)
[00:00:00.010,000] <err> os: Halting system
qemu-system-arm: terminating on signal 2 |
This also happened when |
log: $ west build -t run
(...)
Generating files from /home/kubo39/zephyrproject/zephyr_ldc_examples/build/zephyr/zephyr.elf for board: qemu_cortex_m3
[6/7] To exit from QEMU enter: 'CTRL+a, x'[QEMU] CPU: cortex-m3
qemu-system-arm: warning: nic stellaris_enet.0 has no peer
Timer with period zero, disabling
[00:00:00.000,000] <wrn> net_if: You have 1 IPv6 net_if addresses but 2 network interfaces
[00:00:00.000,000] <wrn> net_if: Consider increasing CONFIG_NET_IF_MAX_IPV6_COUNT value.
[00:00:00.000,000] <wrn> net_if: You have 1 IPv4 net_if addresses but 2 network interfaces
[00:00:00.000,000] <wrn> net_if: Consider increasing CONFIG_NET_IF_MAX_IPV4_COUNT value.
[00:00:00.000,000] <wrn> net_if: Cannot do DAD IPv6 config is not valid.
*** Booting Zephyr OS build v4.0.0-4204-gcef0c1af0d8f ***
[00:00:00.010,000] <inf> net_config: Initializing network
[00:00:00.010,000] <inf> net_config: IPv4 address: 192.0.2.1
gettimeofday(): HI(tv_sec)=0, LO(tv_sec)=4, tv_usec=130000
Wed Dec 31 23:59:59 1969
[00:00:04.130,000] <err> net_config: Cannot set time using SNTP
gettimeofday(): HI(tv_sec)=0, LO(tv_sec)=5, tv_usec=160000
Wed Dec 31 23:59:59 1969
gettimeofday(): HI(tv_sec)=0, LO(tv_sec)=6, tv_usec=190000
Wed Dec 31 23:59:59 1969
QEMU: Terminated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.