<p dir="ltr">Hi,</p>
<p dir="ltr">I was only thinking about doing this when uploading a new firmware, doing this at 4800 is a bit tedious. So I think we can make a reasonable assumption that the full 3.3v is available so should be able to get the full 8MHz. Or do you normally use an ISP to update the firmware?</p>
<p dir="ltr">Jeremy</p>
<div class="gmail_quote">On 10 Mar 2016 11:33, "Damon Hart-Davis" <<a href="mailto:dhd@exnet.com">dhd@exnet.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
> On 10 Mar 2016, at 09:47, Jeremy Poulter <<a href="mailto:jeremy@bigjungle.net">jeremy@bigjungle.net</a>> wrote:<br>
><br>
> Where might I find the source for the bootloader? I wanted to see if I could increase the upload speed. You should be able to set the CPU to 8MHz for programming and upload at 38400 baud.<br>
<br>
Can only hit 8MHz if running off a 3.3V (well 2.7V+ IIRC) supply, ie not for our 2xAA-powered devices.  At the bottom of our supply voltage range 4MHz may be OK, 2MHz would possibly be more reliable.  And note that 1MHz is the factory-standard rate for a fresh AVR.<br>
<br>
Faster UART is probably only a good idea at the higher voltages and CPU clock rates, so would not work with all deployments.<br>
<br>
I *was* contemplating boosting the CPU speed to whatever is safe given the current supply voltage for such intensive items as the encryption, which if used to with the PICAXE.<br>
<br>
My feeling is that there are bigger fish to fry and with the current V0p2 I don’t want to add more options that are non-standard and that would add to confusion.<br>
<br>
Maybe allowing the UART to run at 9600 would at least be allowing movement towards a more ‘standard’ rate.<br>
<br>
As to source, no, see:<br>
<br>
<a href="http://www.earth.org.uk/OpenTRV/Arduino/bootloader/ATmega328P-1MHz/README.txt" rel="noreferrer" target="_blank">http://www.earth.org.uk/OpenTRV/Arduino/bootloader/ATmega328P-1MHz/README.txt</a><br>
<br>
<a href="http://arduino.cc/forum/index.php/topic,160647.msg1204176.html" rel="noreferrer" target="_blank">http://arduino.cc/forum/index.php/topic,160647.msg1204176.html</a><br>
<br>
A new bootloader built from source (though we have to be careful about licensing) might also allow us to write to Flash for such sensitive data as secret keys, with fuses set to prevent reading them out again with different code.<br>
<br>
But maybe these are things we could consider for a V0p3...<br>
<br>
Rgds<br>
<br>
Damon<br>
_______________________________________________<br>
OpenTRV-dev mailing list<br>
<a href="mailto:OpenTRV-dev@lists.opentrv.org.uk">OpenTRV-dev@lists.opentrv.org.uk</a><br>
<a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" rel="noreferrer" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br>
</blockquote></div>