16
µTasker general / Re: tftp tests
« on: July 27, 2007, 04:53:44 PM »
I'm not able to test the tftp bootloader.
These are the steps I have done:
1- add to target tasker project the tftp.c
2- enable in config.h of tasker and boot project the line #define USE_TFTP
3- enable in application.c #define TEST_TFTP
4- set the IP of the tftp-server in application.c ucTFTP_server_ip[IPV4_LENGTH] = {192, 168, 25, 83};
that is the ip of my PC connected to the target with a cross cable
5- I have started filezilla server on my PC (with "anonymous" user and port 21)
6- then I have started the Ethereal to view the IP traffic
7- then start the debug. I espected the execution in application.c
fnStartTFTP_client(tftp_listener, ucTFTP_server_ip, TFTP_PUT, "test1.txt", '0');
to transfer local file ('0') to TFTP server and save it there as (test1.txt)
but program never arrive to this code line, infact I have nothing in Ethereal log
I have also some problem in debugging with codewarrior...many times an error windows compare like this
"error occured while tryng for single step" and I cannot debug with simulator because the boot loader isn't
implemented.
can you help me?
best regards
Fabio
These are the steps I have done:
1- add to target tasker project the tftp.c
2- enable in config.h of tasker and boot project the line #define USE_TFTP
3- enable in application.c #define TEST_TFTP
4- set the IP of the tftp-server in application.c ucTFTP_server_ip[IPV4_LENGTH] = {192, 168, 25, 83};
that is the ip of my PC connected to the target with a cross cable
5- I have started filezilla server on my PC (with "anonymous" user and port 21)
6- then I have started the Ethereal to view the IP traffic
7- then start the debug. I espected the execution in application.c
fnStartTFTP_client(tftp_listener, ucTFTP_server_ip, TFTP_PUT, "test1.txt", '0');
to transfer local file ('0') to TFTP server and save it there as (test1.txt)
but program never arrive to this code line, infact I have nothing in Ethereal log
I have also some problem in debugging with codewarrior...many times an error windows compare like this
"error occured while tryng for single step" and I cannot debug with simulator because the boot loader isn't
implemented.
can you help me?
best regards
Fabio