You Sir, are my hero today ![]()
Now it all works perfectly. You weāre right, it did work even with the above message.
Finally i am able to debug again.
You Sir, are my hero today ![]()
Now it all works perfectly. You weāre right, it did work even with the above message.
Finally i am able to debug again.
Good to hear that.
Actually you were just unlucky enough to fall in the badly covered ānon-generated.cā use case⦠![]()
Anyway, thanks to have highlighted it for us: weāll āprotectā this with the adequate warnings in the next release.
Hoping youāll enjoy the embedded debugger. From our experience, it is far more stable and reliable than RTE or JTAG have ever beenā¦
Hi!
I got this same problem, I try to debug my project and Iām always receiving timeouts from port. Iāve revised all project configuration to set everything as debug configuration, and Iāve a seems to be working generated.c. Could you highlight where do I need to look for to solve this issue?
Thank you!
Did you had a look to this post? ā Cannot debug in Embedded GDB mode
And please note weāve a bug with configured port persistence in the debug configuration: if you want to use something else that the default port (I mean the first one in the ports lists), youāll have to reconfigure it every time in the debug config dialog.
Yes, but I wasnāt talking about that. The only question I could do about the post you highlight is about the persistent mode, which I donāt know how to set.
The post I was talking about is:
viewtopic.php?f=108&t=5601&start=15#p24332
When it says you have to put ADL compilation mode to debug I donāt know where to set it.
Thanks for your answer.
Development mode is set by default by DS, so if you havenāt modified the configuration, it should be OK
(you just have to check the target is still in development mode after a reset; e.g. just by taking a look to the status view)
If you have not disabled the application settings editor, you just need to use a āDebugā build configuration
Thank you for the explanation, but Iām afraid is not enough for my environment and itā still not stopping on breakpoints. Iāve revised all posts here so many times and have no clue about whatās happening, do you have something in mind about what should be happening?
Thank you
Is your breakpoint set āearlyā in the application lifecycle?
As said above in this thread, there is some synchronization latency between the application start point and the point where the debugger is able to handle breakpoints. And also, starting a debug session doesnāt reset the application if not explicitly specified in the launch configuration.
The best way to be sure that breakpoints are working is putting one in an handle waked-up by an event youāre sure to control (e.g. an AT command).
Anyway, if you still canāt stop on breakpoints, please can you attach here the logs of the various GDB consoles when the configuration is running?
Even better, as you may have seen, a user posted a video record of what heās really doing; if you could take the time to make a small one, this would be greatly helpful to understand whatās going wrong.
Itās not the case, because it start with an initialization function in the main task, then jumps to the secondary task, starts the execution of my test and nearly in the middle(functions take almost a hundred of lines) I set the first breakpoint. The second is at the end of the function. I think itās more than enough. Let me know how to send you the video and let see if you notice something wrong.
Thank you daav
If the breakpoint still stands in a task initialization function, there should be an issue anyway. The latency I told you about is a matter of several secondsā¦
Can you give a try and delay your test function thanks to a timer?
And also, please be sure to configure the launch configuration for asking application reset, otherwise the debugger will just ācatchā the application execution where it is currently running.
Iām afraid I cannot, I did a firmware upgrade because I noticed firmware mismatches, and now my modem is not responding⦠Do you know how to bring it back? Iām in a hurry and I cannot find it through all posts⦠:ā(
Received your video: the issue was indeed a bad firmware version, since 7.43 was running on your target (Embedded GDB is supported since 7.45; note that in next DS release, weāll add a check to help diagnose this kind of obvious ātrapā).
About your FW upgrade issue, I noticed also on the video that youāre using an USB connection, which is not always pretty stable with DS. After the upgrade, did you try to use simple UART connection? Maybe the Firmware was correctly upgraded, but the USB connection simply brokenā¦
Anyway, even if the Firmware is corrupted for any reason, you should be able to recover the bootloader on the UART1, in order to give a new tryā¦
It seems the firmware is broken, so Iām trying to recover the bootloader, but I have no luck, modem do not answer for any terminal, and M2M Studio just can open de port⦠
Forgot to mention Iām now using serial port, just in case USB is trying to kidding meā¦
Are you still trying on USB?
Did you gave a try on UART?
Bootloader should automatically recover if FW is corrupted (connect on UART1 @115200, do an hardware reset, wait some time, try to enter AT commandsā¦), but sometimes notā¦
In such cases, you have a last chance try by short-circuit RTS & CTS pins on the UART1 (+hardware reset), to force bootloader recovery. If by chance youāre using a Sierra Wireless development kit, you have a hardware switch named āXMODEMā near the UART1 on the board which does it for you.
, not working at all. I got rid of USB, Iām just using serial port cable my distributor provided my with. I tried to short circuit the RTS-CTS pins(bottom right holes in the plug). No answer to any command, M2M studio claims āNo target detected(no response to AT+WMSN)āā¦
Afraid that youāre going to get in touch with your distributor for more support⦠
Indeed I did it, just didnāt get I needed a special cable to use dwlwin, and recover the bootloader. The cable is on its way. I hope I neednāt so much support at the time it arrives, but Iāll get in touch in case I have any problem. Thank you daav for your patience.
Finally I managed to load 7.46 firmware in my modem, but the problem isnāt going away, I set just one breakpoint at the end of my function, just to know itās running. GDB console says this:
622,609 1-environment-cd F:/desarrollos/workspace/utils_test
622,625 1^done
622,625 (gdb)
622,625 2source F:\desarrollos\workspace\gdbcmd.ini
622,640 &āsource F:\desarrollos\workspace\gdbcmd.ini\nā
622,640 2^done
622,640 (gdb)
622,640 3-file-exec-and-symbols F:/desarrollos/workspace/utils_test/[Target]_ARM_EABI_GCC_Debug/util
s_test.axf
622,656 3^done
622,656 (gdb)
622,656 4-gdb-set auto-solib-add on
622,671 4^done
622,671 (gdb)
623,046 5-environment-directory F:/desarrollos/workspace/utils_test F:/desarrollos/workspace/utils_t
est/.settings F:/desarrollos/workspace/utils_test/[Target]_ARM_EABI_GCC_Debug F:/desarrollos/workspa
ce/utils_test/[Target]_ARM_EABI_GCC_Debug/src F:/desarrollos/workspace/utils_test/inc F:/desarrollos
/workspace/utils_test/itf F:/desarrollos/workspace/utils_test/src
623,062 5^done,source-path=āF:/desarrollos/workspace/utils_test;F:/desarrollos/workspace/utils_test/
.settings;F:/desarrollos/workspace/utils_test/[Target]_ARM_EABI_GCC_Debug;F:/desarrollos/workspace/u
tils_test/[Target]_ARM_EABI_GCC_Debug/src;F:/desarrollos/workspace/utils_test/inc;F:/desarrollos/wor
kspace/utils_test/itf;F:/desarrollos/workspace/utils_test/src;$cdir;$cwdā
623,062 (gdb)
623,062 6-target-select remote localhost:10000
623,078 &āSending packet: $qSupported#37ā¦ā
623,109 &āAck\nā
623,109 &āPacket received: PacketSize=150\nā
623,109 &āPacket qSupported (supported-packets) is supported\nā
623,109 &āSending packet: $?#3fā¦ā
623,171 &āAck\nā
623,171 &āPacket received: S07\nā
623,187 &āSending packet: $Hc-1#09ā¦ā
623,250 &āAck\nā
623,250 &āPacket received: \nā
623,250 &āSending packet: $qC#b4ā¦ā
623,312 &āAck\nā
623,312 &āPacket received: \nā
623,312 &āSending packet: $qOffsets#4bā¦ā
623,375 &āAck\nā
623,375 &āPacket received: \nā
623,375 &āSending packet: $Hg0#dfā¦ā
623,421 &āAck\nā
623,421 &āPacket received: \nā
623,421 &āSending packet: $g#67ā¦ā
623,484 &āAck\nā
623,484 &āPacket received: 0000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000\nā
623,484 &āSending packet: $m0,4#fdā¦ā
623,546 &āAck\nā
623,546 &āPacket received: E10\nā
623,546 &āSending packet: $qSymbol::#5bā¦ā
623,609 &āAck\nā
623,609 &āPacket received: \nā
623,609 &āPacket qSymbol (symbol-lookup) is NOT supported\nā
623,609 6^connected,thread-id=ā0ā,frame={addr=ā0x00000000ā,func="??",args=[]}
623,625 (gdb)
623,640 7-break-insert test_utils.c:219
623,656 7^done,bkpt={number=ā1ā,type=ābreakpointā,disp=ākeepā,enabled=āyā,addr=ā0x00260be2ā,func=āma
in_taskā,file="ā¦\src\test_utils.c",fullname=āF:/desarrollos/workspace/utils_test/.settings/ā¦\sr
c\test_utils.cā,line=ā219ā,times=ā0ā}
623,656 (gdb)
623,671 8-exec-continue
623,671 8^running
623,671 (gdb)
623,671 &āSending packet: $Z0,260be2,2#a5ā¦ā
623,703 &āAck\nā
623,703 &āPacket received: OK\nā
623,703 &āPacket Z0 (software-breakpoint) is supported\nā
623,703 &āSending packet: $vCont?#49ā¦ā
623,765 &āAck\nā
623,765 &āPacket received: \nā
623,765 &āPacket vCont (verbose-resume) is NOT supported\nā
623,765 &āSending packet: $Hc0#dbā¦ā
623,828 &āAck\nā
623,828 &āPacket received: \nā
623,828 &āSending packet: $C07#aaā¦ā
623,890 &āAck\nā
623,890 &āPacket received: \nā
623,890 ~āCanāt send signals to this remote system. SIGEMT not sent.\nā
623,890 &āSending packet: $c#63ā¦ā
623,968 &āAck\nā
//////////////////
Sending packet: $qSupported#37ā¦Ack
Packet received: PacketSize=150
Packet qSupported (supported-packets) is supported
Sending packet: $?#3fā¦Ack
Packet received: S07
Sending packet: $Hc-1#09ā¦Ack
Packet received:
Sending packet: $qC#b4ā¦Ack
Packet received:
Sending packet: $qOffsets#4bā¦Ack
Packet received:
Sending packet: $Hg0#dfā¦Ack
Packet received:
Sending packet: $g#67ā¦Ack
Packet received: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Sending packet: $m0,4#fdā¦Ack
Packet received: E10
Sending packet: $qSymbol::#5bā¦Ack
Packet received:
Packet qSymbol (symbol-lookup) is NOT supported
Sending packet: $Z0,260be2,2#a5ā¦Ack
Packet received: OK
Packet Z0 (software-breakpoint) is supported
Sending packet: $vCont?#49ā¦Ack
Packet received:
Packet vCont (verbose-resume) is NOT supported
Sending packet: $Hc0#dbā¦Ack
Packet received:
Sending packet: $C07#aaā¦Ack
Packet received:
Sending packet: $c#63ā¦Canāt send signals to this remote system. SIGEMT not sent.
Ack
Do you wonder why it should happen?
GDB says that all is fine now! 
If you havenāt changed your code yet, I guess that you still try to break in a task initialization function. Even at the end of such a function, itās probably still too early because of the latency limitation mentioned above. Can you give a try by delaying your function processing with a timer?
Iām not familiar enough with adl interfaces yet, but if this subcription is ok, it might delay the execution 30 secs, isnāt it?
tt = adl_tmrSubscribe ( FALSE,
30,
ADL_TMR_TYPE_100MS,
NULL );
I put it just before the breakpoint, and it seems it isnāt stopping either⦠I think itās something⦠