Skip to content

Conversation

kubo39
Copy link
Owner

@kubo39 kubo39 commented Mar 10, 2023

No description provided.

@kubo39 kubo39 force-pushed the gettimeofday branch 2 times, most recently from 17b0065 to a983277 Compare March 14, 2023 11:34
@kubo39 kubo39 marked this pull request as draft May 24, 2023 09:23
@kubo39 kubo39 force-pushed the gettimeofday branch 2 times, most recently from ae729f1 to 3d9eb2c Compare November 24, 2023 23:53
@kubo39
Copy link
Owner Author

kubo39 commented Nov 25, 2023

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...)

@kubo39
Copy link
Owner Author

kubo39 commented Nov 25, 2023

$ 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

@kubo39 kubo39 self-assigned this Nov 25, 2023
@kubo39
Copy link
Owner Author

kubo39 commented Nov 25, 2023

This also happened when west build -b qemu_cortex_m3 samples/posix/gettimeofday.

@kubo39 kubo39 marked this pull request as ready for review January 31, 2025 10:49
@kubo39
Copy link
Owner Author

kubo39 commented Jan 31, 2025

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant