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 - Mostafa

Pages: [1]
1
Luminary Micro TM LM3SXXXX / Re: Missing defines in tftp.c
« on: November 05, 2010, 02:41:29 PM »
Hi Mark,

Thanks for your prompt reply and responsiveness. I followed the instructions mentiond in the provided link on how to use the simulator to find out upload problems and was able to determine that the culprit was UPLOAD_FILE_LOCATION. There was a mismatch between the difintion in the application (0x19000) and the the bootloader (0x28400). Once that was resolved, things went smoothly and the firmware was upgraded.

Thanks again for your help,

Mostafa



2
Luminary Micro TM LM3SXXXX / Re: Missing defines in tftp.c
« on: November 03, 2010, 11:05:13 PM »
I am trying to uploand a new SW load to the board. Here are the particulars:

1- No serial eeprom, downloading to flash.
2- The z_Upload.bin file size is about 36K.
3- using tftp for download as I am behined a firewall, can't use servers. My board has to be a client.
4- Download seems succesful as reported by Tftpd32.
5 When inspecting the flash memory, I do see the file there starting at 0x19000 and ending at 0x216FD which jives with the exact file size.

However, when I manually reset the board no software upgrade takes place. What am I doing wrong here?  I can't use the HTTP or ftp as described in the documentation.

Any bright ideas?

Thanks,

Mostafa

3
Luminary Micro TM LM3SXXXX / Re: Missing defines in tftp.c
« on: November 03, 2010, 09:11:45 PM »
OK, thanks for this, Mark.

Best regards,

Mostafa

4
Luminary Micro TM LM3SXXXX / Missing defines in tftp.c
« on: November 03, 2010, 03:41:20 PM »
Hi Mark,

I added tftp support to my project and when I tried to build, I got a compile error at line 433.

uFileWrite(tftp_file_pointer, ucData, usDataLen SUBFILE_WRITE); // save the received data to file. Existing files will automatically be deleted

I traced the problem and found that the tftp.c file is missing the following lines (as seen in the ftp.c file):

#ifdef SUB_FILE_SIZE
    #define SUBFILE_WRITE  , ucSubFileInProgress
    #define SUB_FILE_ON    ,SUB_FILE_TYPE
#else
    #define SUBFILE_WRITE
    #define SUB_FILE_ON
#endif


When I added them, the project built successfully. Please confirm that these lines should be added to the tftp.c file.


On a different note, is there an ftp client? I can't seem to find any mention of an ftp client in utasker. I found the tftp client demo but no ftp client.

Best regards,

Mostafa

5
Luminary Micro TM LM3SXXXX / Re: SNTP compile error
« on: September 28, 2010, 01:49:44 PM »
Thanks for this, Mark.

Mostafa

6
Luminary Micro TM LM3SXXXX / SNTP compile error
« on: September 27, 2010, 10:58:26 PM »

After enabling sntp, I get the following errors:

../application.c: In function 'fnSynchroniseLocalTime':
../application.c:959: error: 'TIMER_FORCE_FRACTION' undeclared (first use in this function)
../application.c:959: error: (Each undeclared identifier is reported only once
../application.c:959: error: for each function it appears in.)
../application.c:961: error: 'TIMER_PERIOD_FULL_SCALE' undeclared (first use in this function)
../application.c: In function 'fnGetPresentTime':
../application.c:1306: warning: implicit declaration of function 'GET_TIMER_PRESENT_VALUE'
../application.c:1314: error: 'TIMER_PERIOD_FULL_SCALE' undeclared (first use in this function)
make: *** [Build/application.o] Error 1

I am aware of this post : http://www.utasker.com/forum/index.php?topic=823.0

However, I don't have access to SAM7X code.

Best regards,

Mostafa

7
Luminary Micro TM LM3SXXXX / Including compile time and date in flash
« on: September 13, 2010, 07:08:36 PM »
Greetings:

I would like to put the build time and date in flash at compile time to display on power up. I am using Code Red 3.4 for the Stellaris UP. Is there a GCC attribute/directive that allows me to do that?  I searched but was not able to find anything specific.

I was able to do that with the IAR compiler for the CC2530 using the __code attribute.

Mostafa


Pages: [1]