Using a CYW943907AEVAL1F and Wiced Studio, I can download and start the debugger using the instructions in Re: wiced Debug , but when I try to debgu I haev problems:
- the first line of my appication_start() is wiced_init(). If I set a breakpoint on that lien I can get there
- If I try to step over wiced_init(), it never returns. Instead I end up in data_abort_handler()
- The code works fine if I run it without debug.
Any idea what may be causing this?
|contents of debug window|
43xxx_Wi-Fi_Debug_Windows [GDB Hardware Debugging]
Thread #3 5413856 (Name: app thread, State: Ready) (Suspended : Container)
Thread #4 5349408 (Name: System Timer Thread, State: Suspended) (Suspended : Container)
Thread #5 5371032 (Name: WWD, State: Ready) (Suspended : Signal : SIGTRAP:Trace/breakpoint trap)
data_abort_handler() at exception_handlers.c:398 0x4a2e38
m2m_dma_attach() at m2m_hnddma.c:272 0x4de59a
Thread #6 5346760 (Name: worker thread, State: Waiting - Queue) (Suspended : Container)
Thread #7 5347020 (Name: worker thread, State: Waiting - Queue) (Suspended : Container)
|Contents of Console|
GNU gdb (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 184.108.40.20671128-git
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word".
[Switching to thread 1 (Thread -1)]
Warning: the current language does not match this frame.
[New Thread 5413856]
[New Thread 5349408]
[Switching to Thread 5413856]
Thread 3 "" hit Breakpoint 2, application_start () at apps/XXX/XXX/XXX.c:60
60 wiced_init(); /* Initialize the WICED device */
[New Thread 5371032]
[New Thread 5346760]
[New Thread 5347020]
Thread 5 "" received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 5371032]
0x004a2e38 in data_abort_handler () at WICED/platform/MCU/BCM4390x/../../ARM_CR4/exception_handlers.c:398