Text Editor Running On Your ARM Project


Tired of flashing your embedded project over and over just to tweak a few values? So was [Karl], so he wrote a text editor that runs on his ARM dev board.

Having trouble wrapping your mind around the need for this kind of thing? He’s actually playing around with eLua, the embedded version of the Lua programming language. In this case the program files are being stored on an SD card. But still, moving that back and forth between computer and embedded project gets old quickly. So he invested the time to write a rudimentary text editor that he interfaces through this terminal window. Above you can see the help screen which lays out all of the applications features. Right now it sounds like the only gotcha for this is the amount of RAM it needs to run. As it stands, the editor will now work an mbed board, but it works just fine on an STM Discovery.

15 thoughts on “Text Editor Running On Your ARM Project

    1. There are only 2 official arduino boards with ARM on board, and both could be considered specialist. The due and the yun (or whatever its called). The entire rest of the lineup uses AtMega AVR microcontrollers, AtTiny’s have been supported by 3rd parties as have a few other ARM boards but most arduinos are not ARM.

      1. Actually, come to think of it. The YUN isnt ARM either. Its a normal AVR based arduino with a MIPS processor on board running linux, what the hell its for I dont know, but like I said, it can be considered specialist.

  1. While this is interesting… the most common thing to do here would be to make a serial protocol for file transfer and other things. Then, you could edit the files in a much nicer environment. You wouldn’t be limited to just transferring files… I’ve had full debug control (breakpoints, variable inspection and editing, etc) over serial/Ethernet to embedded scripting systems a few times.

    One of the most worthwhile things you can spend time on are tools to give you visibility into what’s going on with your project. Debugging aids are near the top of the list.

    1. eLua actually does support this a couple of different ways, though not yet with breakpoints, etc.. though it’s something we’ve wanted to have for a bit. That doesn’t negate the convenience of being able to have a self contained development environment on the device that just needs a terminal emulator.

      We have a remote filesystem: http://www.eluaproject.net/doc/master/en_arch_rfs.html

      An RPC module that allows code to be compiled on the host and sent over a serial link and called as if they were functions local to a Lua instance on the host: http://www.eluaproject.net/doc/master/en_refman_gen_rpc.html

      And, we also support using xmodem to just copy/run files: http://www.eluaproject.net/doc/master/en_using.html (see recv command)

      Also, at least on mbed we can also access the flash that gets presented as mass storage when it’s connected to a host over USB so you can use that for passing scripts back and forth although only either the MCU or the host machine can access it at a given point in time so you have to switch it back and forth.

      1. Thanks for the write-up and references.

        Within this context, the project here tends to go the ‘just because I can’ category. We should have a new site about those ;p

  2. Dude, awesome project. I can’t tell you how handy it is having a text editor on target.

    One minor thing though- Please let hyperterminal die ;_;. It’s the IE6 of terminal emulators.

  3. I’ve usually just thrown a little FORTH interpeter on the other end of my serial lines, but now that ARM chips have gotten a bit more beefy I wonder if it would be possible to toss something like the vi from busybox on there.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.