Re: k_sleep on mimxrt1050_evk board

Nashif, Anas


Can you please open a bug with the information below?





From: users@... [mailto:users@...] On Behalf Of marco.hoefle@...
Sent: Thursday, June 14, 2018 4:20 AM
To: users@...
Subject: Re: [Zephyr-users] k_sleep on mimxrt1050_evk board


I tried now to implement a sleep using the timer api, I think this is broken too.
Again, works on qemu port, doesn't on the mimxrt1050_evk

static void timer_expiry(struct k_timer *work)
    printk("timer expired!\n");

static void test_timer(void)
    k_timer_init(&timer_1, timer_expiry, NULL);
    k_timer_start(&timer_1, K_SECONDS(1), 0);

(gdb) load /home/marco/projects/avnet/zephyr_demo/sw/build/mimxrt1050_evk/zephyr/zephyr.elf
Loading section text, size 0x4d2a lma 0x0
Loading section .ARM.exidx, size 0x8 lma 0x4d2c
Loading section devconfig, size 0x84 lma 0x4d34
Loading section rodata, size 0xa04 lma 0x4db8
Loading section datas, size 0x6c lma 0x57bc
Loading section initlevel, size 0x84 lma 0x5828
Loading section initshell, size 0x1c lma 0x58ac
Start address 0x32b4, load size 22726
Transfer rate: 88 KB/sec, 2066 bytes/write.
(gdb) break test_timer
Note: breakpoint 3 also set at pc 0xc3c.
Breakpoint 4 at 0xc3c: file /home/marco/projects/avnet/zephyr_demo/sw/src/main.c, line 84.
(gdb) del
Delete all breakpoints? (y or n) y
(gdb) break test_timer
Breakpoint 5 at 0xc3c: file /home/marco/projects/avnet/zephyr_demo/sw/src/main.c, line 84.
(gdb) c

Breakpoint 5, test_timer () at /home/marco/projects/avnet/zephyr_demo/sw/src/main.c:84
84    {
(gdb) c

Program received signal SIGTRAP, Trace/breakpoint trap.
0xa05f0000 in ?? ()

Join to automatically receive all group messages.