Author Topic: New software uploads but does not change.  (Read 19262 times)

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3234
    • View Profile
    • uTasker
Re: New software uploads but does not change.
« Reply #15 on: November 26, 2008, 01:24:59 AM »
Hi Ewan

I played this through the simulator and see that the upload position is 0x8c400 into the FLASH device.

These are the settings that you need in the boot loader:

Enable #define SPI_SW_UPLOAD
Set #define SPI_FLASH_PAGE_LENGTH  (264*2)
and
#define SPI_FLASH_PAGES        16*1024

In uTaskerBootLoader.c configure
#define UPLOAD_FILE_LOCATION   (uFILE_SYSTEM_END + 0x8c400)
and ensure that #define _ENCRYPTED is disabled

This then recognised the file and successfully completed the SW update.

Good luck

Regards

Mark



Offline ewan

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: New software uploads but does not change.
« Reply #16 on: November 26, 2008, 05:56:52 PM »
Mark,

Well, it all works now. My problem, it seems, (well my most significant one at least) was my failure to understand that uFILE_SYSTEM_END exists in the CPU on-chip flash. I was putting it at the end of the SPI chip.

Many thanks for your efforts.

Regards,
Ewan.

Offline Renan

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: New software uploads but does not change.
« Reply #17 on: January 16, 2009, 07:18:33 PM »
Hi Mark,
   
I'm having problems to upload a file larger than 63k. I'm using microcontroller M52233 (utasker SP8) what size max I can upload? 64k?

Another thing, how do I enable a password for the FTP?


Thank's in advance
« Last Edit: January 16, 2009, 08:14:20 PM by Renan »

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3234
    • View Profile
    • uTasker
Re: New software uploads but does not change.
« Reply #18 on: January 16, 2009, 08:32:52 PM »
Hi Renan

The upload should only be limited by the available memory to receive the SW and by project settings. I believe it is set up to accept maximum 88k (to internal FLASH).

Is it the upload transfer that is not working or is it the load of the new software after the reset?

For the file system size check config.h

            #define PARAMETER_BLOCK_START 0x18000                        // {34} FLASH location at 96k start
            #define uFILE_START 0x19000                                  // FLASH location at 100k start

            #define SINGLE_FILE_SIZE (1*FLASH_GRANULARITY)               // each file a multiple of 2k
            #define FILE_SYSTEM_SIZE (78*SINGLE_FILE_SIZE)               // 156k reserved for file system


Uploading the file H.bin will save it starting from address 0x2a000 and it can accept 88k (to end of 256k internal FLASH). This doesn't utilize all available space but doesn't cause any of the web pages to get overwritten.

For FTP details see the following: http://www.utasker.com/docs/uTasker/uTaskerFTP.PDF

Regards

Mark