Chat about current Lua tools and IDEs

User avatar
By MikeMPP
#53195 Hi, I'm developing on Windows Eclipse (neon) and using the automated build tool. I wanted to put my .lua files into a .bin image but I'm struggling to make it work.

I've tried spiffy but none of the bins I put together seem to work.

spiffsimg seems to be the tool of choice but I haven't been able to build it as it seems to be specific to linux. The problem is (as best I can tell) it's using a file system builder for C to put together the img that's not available on windows.

Is there a tutorial somewhere that might get me past my spiffy problems? It looks like, based on the file.fscfg() info I get from my bare bones nodemcu.bin it goes at 0x60000. I've seen hints that suggest my fs img is the wrong size and is perhaps overwritten by nodemcu when it boots?

Thanks for any help!
User avatar
By marcelstoer
#53338
MikeMPP wrote:I'm developing on Windows Eclipse (neon) and using the automated build tool.


What tool is that?

MikeMPP wrote:spiffsimg seems to be the tool of choice but I haven't been able to build it as it seems to be specific to linux.


http://nodemcu.readthedocs.io/en/latest/en/spiffs/ is for Linux, that's true. How about installing Docker for Windows? I believe there's no easier way to get a Linux VM onto your Windows OS.
User avatar
By MikeMPP
#53853 Sorry, forgot to subscribe to this once it was posted!

By automated build tool - I meant "make" - still trying to get my terminology right...

Wish I'd seen this earlier! I found your excellent docker implementation, it works a treat - I'm up and running with the latest (I got confused by the expressif sample nodemcu which will build native on windows but it's old and doesn't work well).

It might help others to mention that for windows dockers is an easy way to get going. When I read: http://nodemcu.readthedocs.io/en/master/en/build/ I took it to be linux only.
User avatar
By MikeMPP
#53874 Now that I'm running I've gotten to the point of trying to use spiffsimg by putting files in ../local/fs. Seems there's a bug in that the make doesn't complete when I do this? This looks like the one: https://github.com/marcelstoer/docker-nodemcu-build/issues/19. Is there a way for me to apply this fix myself? I'm not too familiar with the environment - I can't find the affected docker file, and apt-get doesn't seem to run from the docker command window.