Trouble Compiling & downloading "Hello World" example

Hi everyone,

I’ve installed Wavecom Open AT Software Suite v2.02 and created the sample project “Hello World”.

I get the following warning when building the target:

[b]… Compiling hello_world.c

hello_world.c: In function ‘adl_main’:
hello_world.c:98: warning: passing argument 4 of ‘adl_tmrSubscribe’ from incompatible pointer type

---------------------------------------[/b]

void HelloWorld_TimerHandler ( u8 ID )
{
    /* Hello World */
    TRACE (( 1, "Embedded : Hello World" ));
    adl_atSendResponse ( ADL_AT_UNS, "\r\nHello World from Open-AT\r\n" );
}

void adl_main ( adl_InitType_e  InitType )
{
    TRACE (( 1, "Embedded : Appli Init" ));
    
    /* Set 1s cyclic timer */
    adl_tmrSubscribe ( TRUE, 10, ADL_TMR_TYPE_100MS, HelloWorld_TimerHandler );
}

If I attempt to download the created gcc_Hello_World_256KB.wpb.dwl file using Hyperterminal I get the following Pop-Up error:

“Transfer cancelled by remote system”

Followed by:

at+wdwl
+WDWL: 0

*** ERROR IN HEADER ***
aHB˜dNàÌ#a’Ip’€ò²†      ˜PÛ"ØvlO@ÛA¼ÞAnÛáaÔHPC-êµW¥½æjÓö^›µµ>a¿"Ó1ÊêÏf¦´
–($lSIp`°Qðš×ƒdýÕ$<”&U¦AQØ     ý"³nÃ;N_1ÊÌÝýø#a›¾9» õ½á‰S]ý~@]ýî%|PâêlcëK…
*”8qA  7”Xž­iÝXOòeöÀ•ºúZµìIšõåÐïBB0

The hardware I’m using is Q2687:

at+whwv
Hardware Version 4.24
ati3
661_09gg.Q2687H 1925236 100506 11:13

Software:
OpenAT version R71b00
GCC Compiler 4.0.1.2
IDE 1.07.01
MINGW 3.8.0.1
OS 6.02.02

Any help/ideas would be greatly appreciated!

Thanking you in advance.

Common problem:
viewtopic.php?f=19&t=3426

Your SDK’s firmware version (“71b00”) and the Wavecom Firmware installed on the Q2687 (“661_09”) don’t match. You either need to install newer Wavecom Firmware (7.1b) or downgrade your SDK (to whatever matches firmware 6.61. I don’t know the corresponding SDK version).

Thank you for the help Matt, it’s appreciated!

I will contact my local distributor (would rather update firmware than downgrade SDK).

you don’t need to downgrade the entire SDK!
you can also just load the appropriate libraries into M2M studio

Upgraded Q2687 firmware and now using M2M Studio.

Thanks for the help guys.

Problem solved.