Hi!
I’m Chris and I’m new to this forum, so I would like say hello to everybody!
At work we use Fastrack Supreme and Fastrack Xtend devices. Some time ago we started to use Lua on them. I have some questions related to that topic.
-
What is the current status of Lua plugin? The last version which I can see in M2M studio is dated on 07.2010 so it’s quite old. Is the Lua plugin still supported?
-
I tried to get and run Lua from this repository: svn.anyware-tech.com/wavecom/openat-lua/tags
Everything compiled correctly and I’m able to produce DWL file and put it into Fastrack device. Everything is OK (Lua works) until I don’t call any function related to scheduler. When I call for example wait(10), the modem restarts immediately. There is no any message when this happens.
Anybody has any idea what could cause the problem?
I do the following steps when I’m building the project:
-
import Lua sources into workspace
-
in project properties=>Open AT Library I select framework profile, firmware, OS and libraries (WIP plugin)
-
compile the Lua project
-
create new openAT project with appropriate Toolchain (GCC) and memory type (1MB+)
-
add reference to oatlua sources which I imported earlier
-
write some simple code, and put it into main.c source file:
wip_netInitOpts(
WIP_NET_OPT_DEBUG_PORT, WIP_NET_DEBUG_PORT_UART1, // low level traces
WIP_NET_OPT_END
);
luaW_memPoolInit( mempools);
luaW_start( BOOT_TIME_MODULES);
luaW_run(“wait(10)”); -
compile the sources
-
put DWL file into modem device
Any ideas?
Have a nice day,
Chris