Author Topic: Problem with SNTP  (Read 9027 times)

Offline JDTucker

  • Newbie
  • *
  • Posts: 2
    • View Profile
Problem with SNTP
« on: January 20, 2010, 08:44:41 PM »
Mark;

     As I was playing with the version of uTasker 1.4 (AVR32) which I downloaded today, I tried to enable SNTP by uncommenting line 365 in config.h, and got the following errors/warnings:


Code: [Select]
Error 1 error C2039: 'timer_mode' : is not a member of 'stTIMER_INTERRUPT_SETUP' c:\documents and settings\all users\documents\atmel\avr-32\utaskerv1.4_avr32(20100120)\applications\utaskerv1.4\application.c 965
Error 2 error C2065: 'TIMER_PERIODIC' : undeclared identifier c:\documents and settings\all users\documents\atmel\avr-32\utaskerv1.4_avr32(20100120)\applications\utaskerv1.4\application.c 965
Error 3 error C2065: 'TIMER_FORCE_FRACTION' : undeclared identifier c:\documents and settings\all users\documents\atmel\avr-32\utaskerv1.4_avr32(20100120)\applications\utaskerv1.4\application.c 965
Error 4 error C2065: 'TIMER_PERIOD_FULL_SCALE' : undeclared identifier c:\documents and settings\all users\documents\atmel\avr-32\utaskerv1.4_avr32(20100120)\applications\utaskerv1.4\application.c 967
Warning 5 warning C4013: 'GET_TIMER_PRESENT_VALUE' undefined; assuming extern returning int c:\documents and settings\all users\documents\atmel\avr-32\utaskerv1.4_avr32(20100120)\applications\utaskerv1.4\application.c 1312
Error 6 error C2065: 'TIMER_PERIOD_FULL_SCALE' : undeclared identifier c:\documents and settings\all users\documents\atmel\avr-32\utaskerv1.4_avr32(20100120)\applications\utaskerv1.4\application.c 1320
Warning 7 warning C4018: '>=' : signed/unsigned mismatch c:\documents and settings\all users\documents\atmel\avr-32\utaskerv1.4_avr32(20100120)\applications\utaskerv1.4\application.c 1320
Error 8 error C2065: 'TIMER_PERIOD_FULL_SCALE' : undeclared identifier c:\documents and settings\all users\documents\atmel\avr-32\utaskerv1.4_avr32(20100120)\applications\utaskerv1.4\application.c 1322
Error 9 error C2065: 'TIMER_PERIOD_FULL_SCALE' : undeclared identifier c:\documents and settings\all users\documents\atmel\avr-32\utaskerv1.4_avr32(20100120)\applications\utaskerv1.4\application.c 1324
Warning 10 warning C4146: unary minus operator applied to unsigned type, result still unsigned c:\documents and settings\all users\documents\atmel\avr-32\utaskerv1.4_avr32(20100120)\utasker\utfat\mass_storage.c 2637
Warning 11 warning C4197: 'volatile unsigned short' : top-level volatile in cast is ignored c:\documents and settings\all users\documents\atmel\avr-32\utaskerv1.4_avr32(20100120)\hardware\avr32\avr32.c 3614
Warning 12 warning C4197: 'volatile unsigned short' : top-level volatile in cast is ignored c:\documents and settings\all users\documents\atmel\avr-32\utaskerv1.4_avr32(20100120)\hardware\avr32\avr32.c 3615

Other changes I made without issue prior to the above change were:
1)  application.c - fixed IP/MAC addresses
2)  Config.h - EVK1105 to EVK1100, turn on LCD, turn off GLCD, enlarge LCD from 2x16 to 4x20

I haven't dug into this yet, though I intend to.  Just thought I'd let you know.

     JimT

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: Problem with SNTP
« Reply #1 on: January 20, 2010, 09:28:10 PM »
Hi Jim

Please see the foot note here: http://www.utasker.com/forum/index.php?topic=821.msg3612#msg3612

Since the AVR32 has (90%) the same peripherals as the SAM7X it should however be able to work by taking the missing parts from the SAM7X project. Do you already have the SAM7X source? (trying it there should work) or I can send you the relevant parts if you would like to test it.

Regards

Mark

P.S. The reason why it is in application.c and not in a module of its own is because it is not generally available (so it is still hiding a bit)


Offline JDTucker

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Problem with SNTP
« Reply #2 on: January 22, 2010, 03:26:06 PM »
Mark;
     Ah, yes; That is from where I remember it (SNTP)!  I have that SAM7X project, so I should be able to find what I need. 

     Thanks for the help, and for the great work!

     JimT