<?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; User Favorites: fma</title>
		<link><a href='http://forums.leaflabs.com/profile.php?id=6961'>6961</a></link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:12:03 +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?profile=6961" rel="self" type="application/rss+xml" />

		<item>
			<title>fma on "Using Maple IDE / lib for unsupported board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13447&amp;page=3#post-105032</link>
			<pubDate>Sat, 07 Dec 2013 17:04:26 +0000</pubDate>
			<dc:creator>fma</dc:creator>
			<guid isPermaLink="false">105032@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks for all these links!&#60;/p&#62;
&#60;p&#62;As far as I understand, when compiling code under maple-ide, the resulting code does not have enough things to work: it is designed to work in conjonction with the bootloader, which makes some work before (system clock and so). Am I right?&#60;/p&#62;
&#60;p&#62;If so, as you said, I will have to dig into the bootloader, and maybe adapt one for my board (which is a simple STM32F103VBT6).&#60;/p&#62;
&#60;p&#62;But my final goal is to make a new firmware for a vent. unit (using that chip). and this vent. unit does not have the usb lines out. I can only upload a firmware using the stm32 internal bootloader (as I'm trying to do with my dev board), or via JTAG. This means that I will have to do all the init stuff myself :o/&#60;/p&#62;
&#60;p&#62;Maybe using maple-ide is not the best way to achieve this goal? Should I use other libs?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Using Maple IDE / lib for unsupported board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13447&amp;page=3#post-105030</link>
			<pubDate>Sat, 07 Dec 2013 15:00:51 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105030@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;fma - &#60;em&#62;&#34;So, I don't have any bootloader on it, and I'm not using DFU; I switch to the internal st bootloader, and upload code through USART1...&#34;&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;Okay, got it.&#60;/p&#62;
&#60;p&#62;&#60;em&#62;&#34;I'm new to stm32 dev, so I don't know yet how things work at boot. Is there a usefull documentation I can read?&#34;&#60;/em&#62;&#60;br /&#62;
What sort of thing do you want to know?&#60;br /&#62;
If you can outline your 'use-case' (i.e. what you're trying to achieve), we might be able to offer better help.&#60;/p&#62;
&#60;p&#62;There are a few things you could read.&#60;br /&#62;
There is a pretty useful book for Cortex-M3:&#60;br /&#62;
&#60;a href=&#34;https://www.elsevier.com/books/the-definitive-guide-to-the-arm-cortex-m3/yiu/978-1-85617-963-8&#34; rel=&#34;nofollow&#34;&#62;https://www.elsevier.com/books/the-definitive-guide-to-the-arm-cortex-m3/yiu/978-1-85617-963-8&#60;/a&#62;&#60;br /&#62;
This covers quite a lot abut the Cortex-M3 processor, and using different development tools.&#60;/p&#62;
&#60;p&#62;It might be worth getting copies of the Cortex-M3 manuals from ARM:&#60;br /&#62;
&#60;a href=&#34;http://infocenter.arm.com/help/index.jsp&#34; rel=&#34;nofollow&#34;&#62;http://infocenter.arm.com/help/index.jsp&#60;/a&#62;&#60;br /&#62;
or ST&#60;/p&#62;
&#60;p&#62;However, most of the startup work is setting up peripherals and the interrupt vectors.&#60;br /&#62;
The initial startup is in the bootloader, which makes it a bit awkward to follow.&#60;/p&#62;
&#60;p&#62;Then the peripherals are described in detail in RM0008 (you probably have that):&#60;br /&#62;
&#60;a href=&#34;http://www.st.com/st-web-ui/static/active/en/resource/technical/document/reference_manual/CD00171190.pdf&#34; rel=&#34;nofollow&#34;&#62;http://www.st.com/st-web-ui/static/active/en/resource/technical/document/reference_manual/CD00171190.pdf&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;So looking at the start-up code, armed with RM0008 is probably helpful if that is the area you want to understand.&#60;/p&#62;
&#60;p&#62;If, on the other hand, you want to understand more about start-up, then either dig through the Maple bootloader, or look at ST's standard peripheral library downloaded from:&#60;br /&#62;
&#60;a href=&#34;http://www.st.com/web/en/catalog/tools/PF257890#&#34; rel=&#34;nofollow&#34;&#62;http://www.st.com/web/en/catalog/tools/PF257890#&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It has example startup code for several different IDEs.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fma on "Using Maple IDE / lib for unsupported board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13447&amp;page=3#post-105028</link>
			<pubDate>Sat, 07 Dec 2013 13:20:48 +0000</pubDate>
			<dc:creator>fma</dc:creator>
			<guid isPermaLink="false">105028@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks for you answer.&#60;/p&#62;
&#60;p&#62;I'm using a non-officially supported board, for which I added support (see the begining of this thread). So, I don't have any bootloader on it, and I'm not using DFU; I switch to the internal st bootloader, and upload code through USART1...&#60;/p&#62;
&#60;p&#62;I'm new to stm32 dev, so I don't know yet how things work at boot. Is there a usefull documentation I can read?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Using Maple IDE / lib for unsupported board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13447&amp;page=3#post-105027</link>
			<pubDate>Sat, 07 Dec 2013 12:31:20 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105027@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;fma - The page&#60;br /&#62;
&#60;a href=&#34;http://leaflabs.com/docs/unix-toolchain.html&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/unix-toolchain.html&#60;/a&#62;&#60;br /&#62;
Shows programs being loaded using the dfu-util:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Found DFU: [0x1eaf:0x0003] devnum=0, cfg=0, intf=0, alt=0, name=&#38;quot;DFU Program RAM 0x20000C00&#38;quot;
Found DFU: [0x1eaf:0x0003] devnum=0, cfg=0, intf=0, alt=1, name=&#38;quot;DFU Program FLASH 0x08005000&#38;quot;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I do believe the bootloader lives below 0x08005000&#60;/p&#62;
&#60;p&#62;Address 0x0 contains the 'top-of-stack' value, i.e. the initial stack pointer value (see RM0008 3.4 &#34;Boot configuration&#34;&#60;br /&#62;
It isn't the value which the CPU uses as a code vector. &#60;/p&#62;
&#60;p&#62;Which board have you got? Does the board do anything? If you power up, or press reset does anything happen?&#60;/p&#62;
&#60;p&#62;(ful disclosure: I am not a member of LeafLabs staff.)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fma on "Using Maple IDE / lib for unsupported board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13447&amp;page=3#post-105024</link>
			<pubDate>Sat, 07 Dec 2013 04:33:49 +0000</pubDate>
			<dc:creator>fma</dc:creator>
			<guid isPermaLink="false">105024@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Sorry to dig that old post...&#60;/p&#62;
&#60;p&#62;I finally received my dev. board, and I'm trying to make a simple blink example. Of course, it does not work. As there are a lot of things which can go wrong, I will try to check them one at a time.&#60;/p&#62;
&#60;p&#62;Once my example is compiled in maple-ide, I use stm32flash to download the resulting .bin file to the board, using the included bootloader (BOOT0=0, BOOT1=1). Then, I have to start the firmware. I assumed it is located at byte 0x0, but is it true? maple generated code is intended to work when a bootloader is on the flash, so I maye have to jump to another locate than 0x0...&#60;/p&#62;
&#60;p&#62;Any idea?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fma on "Using Maple IDE / lib for unsupported board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13447&amp;page=2#post-29507</link>
			<pubDate>Mon, 09 Sep 2013 01:45:22 +0000</pubDate>
			<dc:creator>fma</dc:creator>
			<guid isPermaLink="false">29507@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "Using Maple IDE / lib for unsupported board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13447&amp;page=2#post-29463</link>
			<pubDate>Sat, 07 Sep 2013 09:42:56 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">29463@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;That should be fine.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fma on "Using Maple IDE / lib for unsupported board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13447&amp;page=2#post-29063</link>
			<pubDate>Fri, 06 Sep 2013 08:16:17 +0000</pubDate>
			<dc:creator>fma</dc:creator>
			<guid isPermaLink="false">29063@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;As my board uses a 12MHz quartz, do you confirm that I only have to change this line:&#60;/p&#62;
&#60;p&#62;rcc_clk_init(RCC_CLKSRC_PLL, RCC_PLLSRC_HSE, RCC_PLLMUL_9);&#60;/p&#62;
&#60;p&#62;in the board.cpp file? In my case, I should use:&#60;/p&#62;
&#60;p&#62;rcc_clk_init(RCC_CLKSRC_PLL, RCC_PLLSRC_HSE, RCC_PLLMUL_6);&#60;/p&#62;
&#60;p&#62;Am I right?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fma on "Read frequency"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13457#post-28646</link>
			<pubDate>Sat, 31 Aug 2013 09:34:51 +0000</pubDate>
			<dc:creator>fma</dc:creator>
			<guid isPermaLink="false">28646@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Ok, thanks! I think that PWM input mode is the best solution.&#60;/p&#62;
&#60;p&#62;Would be nice to have something in maple, at high level, like for PWM output mode...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "Read frequency"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13457#post-28642</link>
			<pubDate>Sat, 31 Aug 2013 03:33:46 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">28642@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;If you measure the period of the signal, then you should be able to inverse it to get the frequency.&#60;/p&#62;
&#60;p&#62;If you use timers, you'll need to set the channel in input capture mode, however putting it in PWM capture mode would enable you to just read the period directly from a register. The reference manual will help you with that, this thread is also related to the topic: &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=13460&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=13460&#60;/a&#62;&#60;br /&#62;
ala42 has some code there to put the timer in input capture mode.&#60;/p&#62;
&#60;p&#62;The other method which should work reasonably well is to use the external interrupts and capture the time using the micros() function. This should be a little bit simpler to write although the CPU will have to do the work instead of just the timer hardware.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fma on "Read frequency"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13457#post-28617</link>
			<pubDate>Fri, 30 Aug 2013 02:10:44 +0000</pubDate>
			<dc:creator>fma</dc:creator>
			<guid isPermaLink="false">28617@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi!&#60;/p&#62;
&#60;p&#62;Is there a simple way to measure a frequency from a TIMx_CHx pin?&#60;/p&#62;
&#60;p&#62;I didn't find a ready-to-use function/object in Maple; did someone already implement this?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Frédéric
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fma on "Using Maple IDE / lib for unsupported board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13447&amp;page=2#post-28607</link>
			<pubDate>Thu, 29 Aug 2013 10:13:15 +0000</pubDate>
			<dc:creator>fma</dc:creator>
			<guid isPermaLink="false">28607@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Well, my first goal is to have something working, but if I can do something clean, which can be used by others, or, better, merged in Maple official IDE, why not?&#60;/p&#62;
&#60;p&#62;What pre-processor macro name are you talking about? Something like MCU_xxx ? Or the STM32_MEDIUM/HIGH_xxx macro? I already added a new MCU_xxx var...&#60;/p&#62;
&#60;p&#62;I'm not sure to understand what you mean by &#34;copy the GPIO E definition into that&#34;. Do you suggest to add other gpio.xx files, to add missing definitions (there are also things to do in rcc.h), or to patch these files, and use the new STM32_xxx macro (something between MEDIUM and HIGH)?&#60;/p&#62;
&#60;p&#62;It looks like there are a many place to change/patch things. Maybe the code would need some refactoring to allow a better integration of new boards/procs (in fact, it is already nicely written, and would only need a few modifications. But I think it should be done by main dev. team...).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Using Maple IDE / lib for unsupported board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13447&amp;page=2#post-28602</link>
			<pubDate>Thu, 29 Aug 2013 07:19:13 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">28602@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;fma - If you are planning on making it a properly supported board, I take back my suggestion of just moving the GPIO E definition.&#60;br /&#62;
I had assumed, because the thread is called &#34;unsupported boards&#34; you wanted to get things working first. My mistake, sorry.&#60;/p&#62;
&#60;p&#62;For a properly supported board,  you'll need to create another pre-processor macro name to test (with #ifdef), and wrap your source code changes in that. So copy the GPIO E definition into that, don't just move it. You'll also need board files, etc.&#60;/p&#62;
&#60;p&#62;IMHO, if the board is clearly marked &#34;LC Studio&#34; and a name, use those.&#60;/p&#62;
&#60;p&#62;(Full disclosure: I am not a member of LeafLabs staff)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fma on "Using Maple IDE / lib for unsupported board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13447&amp;page=2#post-28596</link>
			<pubDate>Thu, 29 Aug 2013 01:37:03 +0000</pubDate>
			<dc:creator>fma</dc:creator>
			<guid isPermaLink="false">28596@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;One more question: how should I name this dev board in Maple-IDE?&#60;/p&#62;
&#60;p&#62;It seems to be developed by LC STUDIO. As they have other boards, which may be added too in Maple-IDE, I would like to use a good naming convention, allowing extensions.&#60;/p&#62;
&#60;p&#62;What do you suggest has brand/model names?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fma on "Using Maple IDE / lib for unsupported board"</title>
			<link>http://forums.leaflabs.com/topic.php?id=13447&amp;page=2#post-28595</link>
			<pubDate>Thu, 29 Aug 2013 00:31:32 +0000</pubDate>
			<dc:creator>fma</dc:creator>
			<guid isPermaLink="false">28595@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Ok.&#60;/p&#62;
&#60;p&#62;Thanks for your help, guys :o)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
