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.


Topics - Mostafa

Pages: [1]
1
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

2
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

3
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]