Hi John
If the SW upload works correctly and the board resets afterwards but boots 'too' quickly (i.e. immediately rather than taking a few seconds to delete the old code and program the new code) it means that the new code has not been recognised as being valid. If you look in the file system using FTP you will then see the uploaded file there (eg. H.bin) - this confirms that it is being treated as a normal file and not as a file to start the SW upload sequence.
The happens if the header of the file doesn't correspond to the settings in the boot software (its magic number, its encrypted state, etc.).
Take a look at the boot software project in the file
uTaskerBootLoader.c.
At the start of the file you will find its set up. Make sure that you have also adjusted this to suit your project (then compile and load):
#define UPLOAD_FILE_LOCATION (unsigned char *)0x21800 // location in internal FLASH
#define UTASKER_APP_START 0x800 // Internal FLASH solution requires one FLASH block for the boot code
#define UTASK_APP_LENGTH (MAX_FILE_LENGTH)(0x18000 - 0x800)// 94k
static const unsigned char ucKey[] = {0xa7, 0x48, 0xb6, 0x53, 0x11, 0x24};
#define VALID_VERSION_MAGIC_NUMBER 0x1234
Check that you have adjusted this also to match:
#define UTASK_APP_LENGTH (MAX_FILE_LENGTH)(0x20000 - 0x800)// 126k If the file size is larger than expected it will be rejected. I am not sure exactly which location your upload file is at but this will (probably) have to be adjusted too.
In any case, ensure that the file which you are loading is posted to a suitable location. If you have a large length it will have to be posted to somewhere around the start of the file system so that it fits (otherwise its end will be cut off and its CRC will also not be correct). For example, the bm_convert.bat file can be modified to create a different file name:
To use for example the file A_Upload.bin (will start at the 'A' address)
uTaskerConvert.exe uTasker_BM.elf.bin A_Upload.bin -0x1234 -a748b6531124In the html file for the post (admin side in the demo project), you can force all uploads to the same location by changing
<form action=HS.bin enctype="multipart/form-data" method="post">to
<form action=AS.bin enctype="multipart/form-data" method="post">Note that the post method 'forces' the final location and so the name of the file to post doesn't actually matter.
In the case of copying the file via FTP it is the name which defines its location and so the correct name can be important.
For full details of how the uFileSystem operates consult the document:
http://www.utasker.com/docs/uTasker/uTaskerFileSystem.PDFFor more details about the boot loader check out:
http://www.utasker.com/docs/uTasker/uTaskerBoot_003.PDF and
http://www.utasker.com/docs/uTasker/BM-Booloader_for_M5223X.PDFGood luck!!
Regards
Mark