Author Topic: FTP & bootloader question  (Read 9072 times)

Offline seulater

  • Newbie
  • *
  • Posts: 38
    • View Profile
FTP & bootloader question
« on: March 20, 2010, 03:09:05 AM »
One of the main things i need to do is to have the ability for a boot loader to upgrade my products firmware via the network. Glad to see uTasker supports this!

what i would like to do for eval is to upload my firmware via FTP to my SD card on my Olimex LPC1766-STK. When i tried my FTP program,  FileZIlla it did show my all the files on my SD card but when i tried to add a file i kept getting erros on FileZilla saying:
Status:   Connecting to 192.168.0.10:21...
Status:   Connection established, waiting for welcome message...
Error:   Could not connect to server
Status:   Delaying connection for 5 seconds due to previously failed connection attempt...
Status:   Connecting to 192.168.0.10:21...
Status:   Connection established, waiting for welcome message...
Error:   Could not connect to server
Status:   Delaying connection for 5 seconds due to previously failed connection attempt...
Status:   Disconnected from server
Status:   Connecting to 192.168.0.10:21...
Status:   Connection established, waiting for welcome message...
Error:   Could not connect to server

i even tried to copy one of the files to my computer and got the same errors.
do i need to use MS FTP ?


Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3234
    • View Profile
    • uTasker
Re: FTP & bootloader question
« Reply #1 on: March 20, 2010, 01:43:07 PM »
Hi

It sounds as though FireZilla is using multiple FTP connections (but can't be sure without seeing a WireShark recording), which is not supported by the FTP server. See also the following document for full discussion and configuration possibilities (eg. passive or active connections) : http://www.utasker.com/docs/uTasker/uTaskerFTP.PDF

It is usually safest to use MS FTP (a bat file makes work very easy - reference in the web pages directory - \Applications\uTaskerV1.4\WebPages\WebPagesLPC17XX\WebPagesDemo)

Note that it is possible to copy a file via FTP to the SD card but the boot loader works only with internal FLASH or external SPI FLASH. That means that the SD card interface would need to be added to the boot loader, making it a bit larger...

Regards

Mark


Offline seulater

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: FTP & bootloader question
« Reply #2 on: March 20, 2010, 05:11:25 PM »
I was reading the uTaskerBoot_003.pdf and on page 6 it reads:

When using the Boot Loader with external SPI FLASH, the define SPI_SW_UPLOAD is
added to the project set up (config.h). See the processor-specific guide for more details.

I searched through the config.h file and there is no #define SPI_SW_UPLOAD option in the #ifdef _LPC17XX section like there is for the other processor types. is it not implemented yet for the LPC17xx?





Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3234
    • View Profile
    • uTasker
Re: FTP & bootloader question
« Reply #3 on: March 20, 2010, 11:50:27 PM »
Hi

The LPC17XX Beta project doesn't have this in it yet.

Regards

Mark

Offline seulater

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: FTP & bootloader question
« Reply #4 on: March 21, 2010, 12:07:01 AM »
Darn :(