<div dir="ltr">Isn't it possible to use an embedded real time OS on the STM32F make things easier? I know that ChibiOS/RT [1] is under GPLv3 and that the BSD option is nuttX [2].<br><br>[1] <a href="http://en.wikipedia.org/wiki/ChibiOS/RT">http://en.wikipedia.org/wiki/ChibiOS/RT</a><br>
[2] <a href="http://en.wikipedia.org/wiki/NuttX">http://en.wikipedia.org/wiki/NuttX</a><br><br><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Oct 19, 2013 at 6:10 PM, luke.leighton <span dir="ltr"><<a href="mailto:luke.leighton@gmail.com" target="_blank">luke.leighton@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">well.  there is a particular issue with stm32sprog which has massively<br>
hindered progress over the past few weeks.  it's very simple: when<br>
uploading and running a program using stm32sprog, if it has interrupt<br>
service routines it is guaranteed to crash.  however if you then set<br>
BOOT0 to 0 and do a RESET, the program will work absolutely fine<br>
[assuming it's coded correctly]<br>
<br>
this simple little thing has prevented progress over the past couple<br>
of weeks because it has been impossible to distinguish "code<br>
incorrectly written" from "code that crashed due to stm32sprog".<br>
<br>
dozens of examples and bits of code that _should_ have worked - DMA,<br>
ADC, DAC, Timers - will and can now all be revisited.<br>
<br>
patience, patience...<br>
<br>
... anyway i'm currently tracking how to get timers to update from an<br>
external gpio pin, and from there to fire DMA.  it _is_ possible...<br>
just.... requires a huge amount of careful reading and research just<br>
to come up with only 30 lines of code that connect all the dots<br>
together without connecting any of the thousands of other options.<br>
<br>
i think... to be absolutely honest, if i had known that the STM32F was<br>
so comprehensive / complex i would have said "sod it" and used a<br>
low-cost FPGA instead.  but, hey, this is kinda hair-raisingly fun....<br>
<br>
l.<br>
<br>
_______________________________________________<br>
arm-netbook mailing list <a href="mailto:arm-netbook@lists.phcomp.co.uk">arm-netbook@lists.phcomp.co.uk</a><br>
<a href="http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook" target="_blank">http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook</a><br>
Send large attachments to <a href="mailto:arm-netbook@files.phcomp.co.uk">arm-netbook@files.phcomp.co.uk</a><br>
</blockquote></div><br></div></div>