# M2M Studio 2.0.0 + LUA Plugin

**URL:** https://forum.sierrawireless.com/t/m2m-studio-2-0-0-lua-plugin/4977
**Category:** Open AT
**Created:** [March 25, 2011, 12:09pm UTC](https://forum.sierrawireless.com/t/m2m-studio-2-0-0-lua-plugin/4977 "2011-03-25T12:09:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![blicharski](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@blicharski](https://forum.sierrawireless.com/u/blicharski)
#### Post date: [March 25, 2011, 12:09pm UTC](https://forum.sierrawireless.com/t/m2m-studio-2-0-0-lua-plugin/4977/1 "2011-03-25T12:09:13Z")

</div>

Hello All!  
I downloaded M2M Studio a few days ago (the newest version with all updates).

I would like to use OpenAT + Lua Plugin with my Fastrack GO modem.

After creating a new Open AT Lua Project (File-\>New Open AT Lua Project) and building it, downloading it to the modem, lua program doesn’t work ☹ (the script from src-lua). I’m able to perform at+lua="…" commands from a console and they work.

I realized that luapreload\_\<name\_of\_my\_proj\>() from src/luapreload\_\<name\_of\_my\_proj\>.c is empty. It seems that something haven’t been generated correctly.

I use the following versions of software:  
Open AT Embedded Soft. Suite 2.35  
Open AT OS 6.35  
Firmware Package 7.45  
Lua Plugin 2.1.0

Any ideas?

Thank you from advance!

Best regards,  
K.

---

<div class="post-metadata">

### Author: ![blicharski](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@blicharski](https://forum.sierrawireless.com/u/blicharski)
#### Post date: [March 31, 2011, 11:31am UTC](https://forum.sierrawireless.com/t/m2m-studio-2-0-0-lua-plugin/4977/2 "2011-03-31T11:31:39Z")

</div>

Can somebody help me? I do something wrong?

Do ‘AT Lua Project’ works for everyone? If yes, please let me know. It also will be a helpful information for me.

Best regards  
K.

---

<div class="post-metadata">

### Author: ![blicharski](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@blicharski](https://forum.sierrawireless.com/u/blicharski)
#### Post date: [April 5, 2011, 8:58am UTC](https://forum.sierrawireless.com/t/m2m-studio-2-0-0-lua-plugin/4977/3 "2011-04-05T08:58:58Z")

</div>

I managed to solve the problem.

The problem was in %M2MStudioPath%\plugins\com.wavecom.openat.ide.luacompiler.win32\_2.0.0.201102171614-R6456\executables\lua2flash.lua file.

The line from get\_bytecode() function, should look like this:

local cmd = “”$LUAC$" -o $TMP$ $FLASHFLAG$ $STRIPFLAG$ $SRC$ 2\>&1" % options

I added " before and after $LUAC$ variable.

Best regards,  
K.
