I have a problem: Debugging SBL2e does not work.
My situation:
1) I have Development Kit SBL2e, PC winXP SP3, NBEclipse "Rel24_rc2 ", Java Version 1.7.0_45,
2) No antivir, no firewall running
3) In SBL2e is downloaded (via MTTY) this program:
#include "predef.h"
#include <stdio.h>
#include <ctype.h>
#include <basictypes.h>
#include <serialirq.h>
#include <system.h>
#include <constants.h>
#include <ucos.h>
#include <netif.h>
#include <autoupdate.h>
#include <smarttrap.h>
#include <taskmon.h>
#include <gdbstub.h>
#include <http.h>
extern "C" {
void UserMain(void * pd);
}
const char * AppName="pokus03";
void UserMain(void * pd) {
SimpleUart(0,SystemBaud);
assign_stdio(0);
InitializeStack();
OSChangePrio(MAIN_PRIO);
EnableAutoUpdate();
StartHTTP();
EnableTaskMonitor();
#ifndef _DEBUG
EnableSmartTraps();
#endif
#ifdef _DEBUG
// TODO: Input correct port and baudrate below
InitGDBStub(1,57600);
#endif
iprintf("Application started\n");
while (1) {
OSTimeDly(20);
}
}
4) I have usb/serial convertor conected to UART1 of Netburner kit (and I listen comunication on this serial link by another PC with MTTY). Debug (GDB) communication is OK (on sent byte "a" SBL2e responds "$S05#b8")
5) I have connected usb/serial convertor (integrated on development desk) to UART0. UART0 is set as debug port (I use it for download firmware).
6) PC is connected with Development Kit via ethernet switch. Ping with SBL2e is working. (It's possible to download firmware via TCP)
7) My steps:
a) Start NBEclipse
b) Build Configurations->Set Active->set: Debug
c) Build Configurations->Build->All (no error)
d) Debug Configurations->Project->Target IP: (blank)
e) Debug Configurations->Debugger->Connection->Type: Speed Serial
f) Debug Configurations->Debugger->Connection->Host name or IP address: 127.0.0.1
g) Debug Configurations->Debugger->Connection->Port number: 2159
h) Debug Configurations->Apply and Close
i) Launch Speed Serial Debug (set: appropriate COM port,Baud Rate:57600, Network Port: 2159 )
j) Speed Serial Debug-> Connect
k) Debug As->2 NB Application
l) after cca 30s pop up windows: Programming Failed with Timeout -> OK, autoupdate Failed -> OK, AutoUpdate V2.0->Dismiss
Any Idea, what is wrong???
8) I am monitoring communication on PORT1:
a) There is no traffic while I do steps in 7)
b) If I press restart button on SBL2e on COM1 I catch: "$S05#b8" -> I think SBL2e is OK
9) I am monitoring communication on PORT1:
a) Close NBEclipse
b) start command line
c) c:\>telnet 127.0.0.1 2159
d) send: "a" -> on COM1 I catch: a$S05#b8 -> I think FastSerialDebug is OK
I think that problem is bad configuration of NBEclipse....
What am I doing wrong?
Debugging SBL2e does not work
Re: Debugging SBL2e does not work
There is a note on this on the SBL2e product page:
"NOTE: The SBL2e series development kits do not include a graphical debugger."
http://www.netburner.com/products/seria ... rnet/sbl2e
"NOTE: The SBL2e series development kits do not include a graphical debugger."
http://www.netburner.com/products/seria ... rnet/sbl2e