Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - aloft

Pages: [1] 2
1
utFAT / Re: Simulator problems with utFAT and FTP.
« on: July 13, 2010, 11:43:18 AM »
Hi Mark,

I'm still having problems but I just realized that maybe I'm not initializing the SPI interface.   Right now, I'm just defining SDCARD_SUPPORT.  Do I also need to define SSC_INTERFACE or SPI_INTERFACE?  It looks to me like these are just for SPI EEPROM chips, but maybe I'm missing something else.

It also might be the SD cards I'm using.  The 2GB card doesn't work at all and the 1GB card has a message saying V1 and MMC are not supported which you state in the documentation.  I added a pullup to the SSTX line which connects to the DI line but I'm still seeing issues.  I was able to read the 1GB card using the Luminary Micro sd_card project so I know the interface works.  Unfortunatley, the 2GB card did not work with the sd_card project.

I'm also going to try adding a pullup to the CS line.  That may help.

Thank you for all your help,

TW

2
utFAT / Re: Simulator problems with utFAT and FTP.
« on: July 12, 2010, 02:17:01 PM »
Thanks Mark. 

I completely missed the dir1 directory setup.  Now it works on the simulator but I can't get the LM3S6965 EV board to work yet.  I've probably missed something there.

Thanks,

TW

3
utFAT / Re: Simulator problems with utFAT and FTP.
« on: July 12, 2010, 03:47:41 AM »
Hi Mark,

Maybe I'm doing something wrong because with a Telnet DIR command, the files look OK (except for weird time/data stamps).  See the attachment.

However, something isn't working right because the http://192.168.0.3/0Menu.htm shows the uTasker Error 404 orange background page so I'm not looking in the right place for this file..  I'll start looking at this but I'm hoping you can direct me to where I need to focus.

If I put a breakpoint in fnDoWebPage(), it looks as if the utOpenFile() function fails.  It looks like uTasker isn't finding the file in the root directory.  It is also interesting seeing the ptr_utDirectory->ptrDirectoryPath is NULL.

Thanks,

TW

4
utFAT / Simulator problems with utFAT and FTP.
« on: July 12, 2010, 03:31:42 AM »
Hi Mark,

I'm using a stock V1.4 with utFAT enabled (which I think is enabled by default in this LM3S project).  While following the steps in the utFAT document, I'm running into a problem with FTP.  I'm having problems connecting via Telnet but that is a different issue.  After I do successfully connect with Telnet and format the SD card, I try to upload the html pages in the WebPages directory.

After loading these pages to the FTP server using the copy_all.bat file, if I look at the FTP server with FileZilla, the pages all have January 00 1980 prepended on each file.  I'm able to successfully load these files without the utFAT enabled (if I delete the SD_CARD.bin file) and see them correctly on the browser.  Is there something else I'm missing?  Attached is the screen capture of the uTasker FTP server after I've uploaded the files.

Thanks,

TW

5
µTasker general / Re: Using TCP in the uTasker project
« on: June 30, 2010, 09:23:11 PM »
Thanks Mark. 

That helped - I'm now getting further.  I didn't realize the FTP server needed the "\r\n".

Thanks again,

TW

6
µTasker general / Re: Using TCP in the uTasker project
« on: June 30, 2010, 04:36:08 AM »
Hi Mark,

My mistake on this.  It was apparent when looking at this with Wireshark that my breakpoint was causing the PARTIAL_ACK event. 

I see another problem where I'm not responding with an ACK - but I think I should be sending one unless I misunderstand the process.  I'm getting an ACK in my Listener routine after I send the USER <username>.  Since the TCP_EVENT_ACK just breaks out of the switch statement, I should return the APP_ACCEPT which should generate an ACK, correct?

I sent my screenshots and code as well as a wireshark trace in a separate email.

Thanks,

TW

7
µTasker general / Re: Using TCP in the uTasker project
« on: June 27, 2010, 06:24:45 AM »
Hi Mark,

I'm trying to implement a ftp client but I'm running into some problems.  After I send the USER <username> on the control socket, I'm getting a TCP_EVENT_PARTIAL_ACK back that doesn't seem to get handled properly.  From your thread, it sounds like this shouldn't happen. 

Any ideas what I'm doing wrong.

Thanks,

TW

8
Luminary Micro TM LM3SXXXX / Re: Using the UART in the simulator.
« on: December 06, 2008, 11:17:52 PM »
Hi Mark,

For some reason, I seem to be having a problem getting UART1 to work in the simulator (I haven't checked on the actual board).  The serial interface works fine on UART0 but if I change to UART1 by just changing the DEMO_UART from 0 to 1, it stops working.  COM3 isn't a valid port, but it seems from the UART thread that it just won't bind to that port, right?

I also change the SERIAL_PORT_0 mapping.  I'm using a LM3S6965 so I should have 3 UARTs.  What am I doing wrong?

Thanks,

TW

This works:

#define SERIAL_PORT_0     '6'                                            // if we open UART channel 0 we simulate using this com port on the PC (0 for no mapping)
#define SERIAL_PORT_1     '3'                                            // if we open UART channel 1 we simulate using this com port on the PC
#define DEMO_UART          0                                           // use UART 0


This doesn't work:
#define SERIAL_PORT_0    '3'                                            // if we open UART channel 0 we simulate using this com port on the PC (0 for no mapping)
#define SERIAL_PORT_1    '6'                                            // if we open UART channel 1 we simulate using this com port on the PC
#define DEMO_UART         1                                           // use UART 1

9
Luminary Micro TM LM3SXXXX / Re: Ethernet Controller with PHY
« on: November 19, 2008, 04:43:58 AM »
Hi Mark,

I noticed that on the LM3S6965 board, FTP locks up when I get to larger file sizes.  For instance, a file size of 2637 passes, but a file size of 2684 fails (I did not attempt to constrain it more than that).  However, I don't see any limitation with the simulator which indicates a hardware constraint.

Does this number range look like an interesting multiple?

Thanks,

TW

10
Luminary Micro TM LM3SXXXX / Re: Accessing HTTP server remotely.
« on: November 08, 2008, 05:28:14 AM »
Thanks for your input, Mark.

Yes, your comment about the router may be correct.  I'm having a problem capturing an ethereal trace with the LwIP server which works.  I did send the client side trace, but I don't think it reveals much.

I tried commenting out the Windowing but that didn't change anything.

If I can get a better network trace, I'll send that along.

Thanks again,

TW

11
Luminary Micro TM LM3SXXXX / Accessing HTTP server remotely.
« on: November 03, 2008, 07:18:16 PM »
Hi Mark.

uTasker is working well inside my own local network.

However, I'm having problems accessing my LM3S6965 EVK uTasker HTTP server remotely.  I can access it locally (from the same side of the router) but I can't see the webpages from an external computer.  I've verified that I can see another server fine so I'm fairly certain my router setup is OK.  In fact, I can view a small <1K uTasker webpage remotely just fine.

I've sent the ethereal captures separately in a private email.   It appears to me that the issue starts when the message is broken into pieces.  Is there a certain setup or configuration parameter that I'm missing?

Thanks,

TW

12
Luminary Micro TM LM3SXXXX / Re: System Tick Speed.
« on: October 23, 2008, 03:49:10 AM »
Hi Mark. 

Thanks for the quick reply.  Yes, that was the problem.

Thanks!!

TW

13
Luminary Micro TM LM3SXXXX / Re: LM3SXXXX Service pack 2 now available
« on: October 22, 2008, 06:11:01 AM »
You mention that you tested the bootloader almost entirely in the Simulator.  I'd like to do the same thing because my LM3S6965 EVK doesn't seem to be updating.  It could be something as simple as a magic number mismatch but I think I'll need to step through the update in the simulator to tell for sure.

Is there a different VC++ project for the bootloader?

Thanks,

TW

14
Luminary Micro TM LM3SXXXX / Re: System Tick Speed.
« on: October 22, 2008, 02:50:27 AM »
I'm seeing some weird issues when trying to reduce my power consumption.  I've defined the SUPPORT_LOW_POWER variable and I expected that setting TICK_RESOLUTION to something higher like 200 would increase the efficiency.  200 does increase the efficiency, but it doesn't work.  I've tried other values and they aren't working like I'd expect.
50 (default) = 93mA
200            = 71mA (but doesn't connect - no Ethernet LEDs even).
100            = 90mA (but doesn't connect - no Ethernet LEDs even)
250            = 112mA (but doesn't connect - no Ethernet LEDs even)

I must have some dependency on the TICK_RESOLUTION.  Any idea what I'm missing?  I'm probably overlooking something obvious.

Thanks,

TW

15
Luminary Micro TM LM3SXXXX / Re: Using the UART in the simulator.
« on: September 07, 2008, 01:46:59 AM »
Thanks, Mark.  Just mapping one port did the trick.

Pages: [1] 2