<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: JavaScript interpreter for the Maple</title>
		<link>http://forums.leaflabs.com/topic.php?id=10094</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:07:28 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=10094" rel="self" type="application/rss+xml" />

		<item>
			<title>gfwilliams on "JavaScript interpreter for the Maple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10094#post-22010</link>
			<pubDate>Tue, 15 Jan 2013 08:49:09 +0000</pubDate>
			<dc:creator>gfwilliams</dc:creator>
			<guid isPermaLink="false">22010@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi, sorry for the delay...&#60;/p&#62;
&#60;p&#62;&#38;gt; 1. would it work with a Maple RET6 (it has the STM32RET6 chip - 512KB Flash) (which .bin file to use in that case)?&#60;/p&#62;
&#60;p&#62;I wasn't aware there was one... Is it out of beta now? You could try the standard Maple binary and see if it works (it just might), or the HY board uses a 103VE (but the pin names will be wrong and it will be expecting an LCD!) - otherwise I'd have to get a board and re-compile it. To be honest the list of supported boards is currently greater than the amount of people that have registered, so I'd have trouble justifying it right now!&#60;/p&#62;
&#60;p&#62;&#38;gt; 2. how much memory does the interpreter take up in flash?&#60;/p&#62;
&#60;p&#62;Around 100kb - on boards with &#38;gt;128kb flash it's around 160kb as I compile with more optimisations.&#60;/p&#62;
&#60;p&#62;&#38;gt; 3. if you &#34;save&#34; a program to Flash, is the a way to see how much Flash memory is left?&#60;/p&#62;
&#60;p&#62;Espruino pretty much saves the whole memory area in to flash (right at the end of the flash), so if you have 20kb of RAM on-chip, it's using almost that much flash. There's currently no way of writing the extra flash memory from Espruino either (but you can use peek32 to read :)&#60;/p&#62;
&#60;p&#62;If you need to store lots of data you could always use an SPI flash chip.&#60;/p&#62;
&#60;p&#62;&#38;gt; 4. are you aware of any other editors that could be used with this instead of typing everything into a terminal window and trying to edit the session in the terminal window? I.e. is there an editor where you can just type in your whole JS program and then send it over serial to the board, make changes/repeat?&#60;/p&#62;
&#60;p&#62;On Linux you can open the serial port to write while it is already open by a terminal app, so you can use your favourite editor, and can then create a custom tool command: &#34;echo 'echo(0)' /dev/ttyUSB0;cp myfile.js /dev/ttyUSB0;echo 'echo(1)' /dev/ttyUSB0&#34;&#60;/p&#62;
&#60;p&#62;Note the echos - which stop Espruino spamming the console with everything in the file. As far as I know Windows isn't quite as friendly though and I'm not aware of a program that does it...&#60;/p&#62;
&#60;p&#62;&#38;gt; 5. do you need to buy a separate registration code for each of the boards one owns?&#60;/p&#62;
&#60;p&#62;Yes. Only if you want to save to flash though - if you're happy to program the board each time you power on (eg. if you're just using it as an IO board) then it's totally free.&#60;/p&#62;
&#60;p&#62;If it gets popular enough I'll add a lower cost option for subsequent registrations, but to be honest it's pretty cheap already. An STM32 Discovery + Espruino is about half the price of an Arduino Due - it's just that in Espruino's case you actually notice paying the money that helps fund the software development + documentation work :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mikep on "JavaScript interpreter for the Maple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10094#post-21973</link>
			<pubDate>Fri, 11 Jan 2013 09:19:03 +0000</pubDate>
			<dc:creator>mikep</dc:creator>
			<guid isPermaLink="false">21973@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi Gordon,&#60;/p&#62;
&#60;p&#62;this looks really interesting and like a quick way to get some LEDs blinking on the Maple.&#60;/p&#62;
&#60;p&#62;I have a few follow-up questions that I didn't see answered on your site:&#60;/p&#62;
&#60;p&#62;1. would it work with a Maple RET6 (it has the STM32RET6 chip - 512KB Flash) (which .bin file to use in that case)?&#60;br /&#62;
2. how much memory does the interpreter take up in flash?&#60;br /&#62;
3. if you &#34;save&#34; a program to Flash, is the a way to see how much Flash memory is left?&#60;br /&#62;
4. are you aware of any other editors that could be used with this instead of typing everything into a terminal window and trying to edit the session in the terminal window? I.e. is there an editor where you can just type in your whole JS program and then send it over serial to the board, make changes/repeat?&#60;br /&#62;
5. do you need to buy a separate registration code for each of the boards one owns?&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Mike
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gfwilliams on "JavaScript interpreter for the Maple"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10094#post-21971</link>
			<pubDate>Fri, 11 Jan 2013 06:44:46 +0000</pubDate>
			<dc:creator>gfwilliams</dc:creator>
			<guid isPermaLink="false">21971@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;I've been working on a JavaScript interpreter - you just flash it using the Maple USB bootloader, and then the Maple will appear as a USB Serial port that you can interactively enter code on with a terminal app.&#60;/p&#62;
&#60;p&#62;Once you've programmed it, it can then run on its own - but it's also pretty good if you just want to use your Maple as an IO board for your PC.&#60;/p&#62;
&#60;p&#62;It's at &#60;a href=&#34;http://www.espruino.com&#34; rel=&#34;nofollow&#34;&#62;http://www.espruino.com&#60;/a&#62;&#60;br /&#62;
There are some tutorials/example videos on there too...&#60;/p&#62;
&#60;p&#62;Let me know what you think!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
