<?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: STM32F4 Discovery LIBMaple DFU issue..</title>
		<link>http://forums.leaflabs.com/topic.php?id=10456</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:24:08 +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=10456" rel="self" type="application/rss+xml" />

		<item>
			<title>apollo2 on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456&amp;page=2#post-25841</link>
			<pubDate>Sat, 11 May 2013 15:24:11 +0000</pubDate>
			<dc:creator>apollo2</dc:creator>
			<guid isPermaLink="false">25841@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi Ala42, Thank you for your help and for making libmaple available to the stm32f4&#60;br /&#62;
I got it working now after uploading the code to adress 0x08010000&#60;br /&#62;
I was uploading to 0x08000000 before, my mistake ...&#60;br /&#62;
I've got the ST Virtual COM port working and I can communicate with the board via Serial Monitor, sweet:)&#60;br /&#62;
Thank you some much
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456&amp;page=2#post-25806</link>
			<pubDate>Fri, 10 May 2013 19:18:41 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">25806@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;No need to include anything, calling SerialUSB.begin() is suffient.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>apollo2 on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456&amp;page=2#post-25805</link>
			<pubDate>Fri, 10 May 2013 17:33:08 +0000</pubDate>
			<dc:creator>apollo2</dc:creator>
			<guid isPermaLink="false">25805@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Yes Ala42 I have SerialUSB.begin() in the startup and I have unplugge the micro usb and min usb too and replug them back&#60;br /&#62;
Maybe I should include some library as you have rewrite them (#include &#34;usb.h&#34; or the one with vcp )?&#60;br /&#62;
Please note when I upload the aeroquad bin file (you did posted the bin  compiled for stm32f4 in another forum) I got STMicroelectronics Virtual Com port in device manager  which mean that the drive is installed properly
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456&amp;page=2#post-25784</link>
			<pubDate>Fri, 10 May 2013 16:29:38 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">25784@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;You did use the micro USB connector ? Unplug and replug the connector and check if you see a new device.&#60;br /&#62;
Forgot to mention, you have to manually call the SerialUSB.begin() function at startup.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>apollo2 on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456#post-25773</link>
			<pubDate>Fri, 10 May 2013 15:47:38 +0000</pubDate>
			<dc:creator>apollo2</dc:creator>
			<guid isPermaLink="false">25773@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks mlundinse ;I've added that magic part and it does compile after that I uploaded the discovery_f4.bin with ST-link&#60;br /&#62;
Actually the Serial over usb  doesn't work as there's no new COM port showing in the Device manager ,I'll take look into Aeroquad code to see what I need to modify in my sketch
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mlundinse on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456#post-25772</link>
			<pubDate>Fri, 10 May 2013 13:48:46 +0000</pubDate>
			<dc:creator>mlundinse</dc:creator>
			<guid isPermaLink="false">25772@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;There must by a function named main in the Main.cpp project.&#60;br /&#62;
Its not the name of the project, but a specific function in&#60;br /&#62;
the project.&#60;/p&#62;
&#60;p&#62;When you do Arduino or Maple-IDE sketches the main function is hidden away&#60;br /&#62;
in the main.cxx file that gets added to your sketch by the Arduino&#60;br /&#62;
IDE tool.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>apollo2 on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456#post-25766</link>
			<pubDate>Fri, 10 May 2013 13:28:00 +0000</pubDate>
			<dc:creator>apollo2</dc:creator>
			<guid isPermaLink="false">25766@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi mlundinse, of course I have changed the project name to Main.cpp before compiling !&#60;br /&#62;
Under Arduino it was splited into Tabs so I've make small change to Arduino preference  so that it will give me the .cpp file (added the build path )&#60;br /&#62;
Maybe this what cause the error !
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mlundinse on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456#post-25765</link>
			<pubDate>Fri, 10 May 2013 12:53:18 +0000</pubDate>
			<dc:creator>mlundinse</dc:creator>
			<guid isPermaLink="false">25765@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;As the error message says, the main function is missing in your project.&#60;br /&#62;
The main function is were you put our application code.&#60;/p&#62;
&#60;p&#62;There is an example of a main.cpp file containing a main funtion&#60;br /&#62;
in the main.cpp.example file that you can find in the top directory&#60;br /&#62;
of libmaple distribution. You can also look at the files in the example directory.&#60;/p&#62;
&#60;p&#62;Regards&#60;br /&#62;
Magnus
&#60;/p&#62;</description>
		</item>
		<item>
			<title>apollo2 on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456#post-25754</link>
			<pubDate>Fri, 10 May 2013 12:40:39 +0000</pubDate>
			<dc:creator>apollo2</dc:creator>
			<guid isPermaLink="false">25754@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi Ala42&#60;br /&#62;
I have installed the same version as yours now (Sourcery G++ Lite 2011.03-42)&#60;br /&#62;
I'm trying to compile a project which run fine in Arduino and Maple Ide and I'd like to use the STM32F4 but unfortunately I'm getting this error&#60;br /&#62;
./support/ld\libcs4_stm32_high_density.a(start_c.o): In function `__cs3_start_c':&#60;br /&#62;
start_c.c:(.text+0xd4): undefined reference to `main'&#60;br /&#62;
collect2: ld returned 1 exit status&#60;br /&#62;
make: *** [build/aeroquad32.elf] Error 1&#60;/p&#62;
&#60;p&#62;searched Google but I cannot find anything&#60;br /&#62;
Any help please&#60;br /&#62;
Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456#post-25740</link>
			<pubDate>Fri, 10 May 2013 10:12:14 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">25740@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I use gcc version 4.5.2 (Sourcery G++ Lite 2011.03-42) for quite a while and now also the gcc 4.7.3 from the launchpad site, which produces the better and faster code.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>apollo2 on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456#post-25733</link>
			<pubDate>Fri, 10 May 2013 05:33:20 +0000</pubDate>
			<dc:creator>apollo2</dc:creator>
			<guid isPermaLink="false">25733@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks Ala42 for your quick replay&#60;br /&#62;
I found the problem was coming from Sourcery Code bunch, I was using a new version, now I have updated my path to use the one shipped with Maple IDE and I can compile some code from the example folder Which version are you using please ?&#60;/p&#62;
&#60;p&#62;PS I couldn't sign into this bb so I opened another account I was getting an error message the page your looking for is unavailable for 2 past days
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456#post-25705</link>
			<pubDate>Mon, 06 May 2013 10:33:03 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">25705@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;To build libmaple, you just have to start build.bat in the Libmaple\libmaple directory.&#60;br /&#62;
To build the aeroquad firmware, edit Aeroquad\Userconfiguration.h. Comment out line 43 and remove the mommend from line 50, so you get&#60;br /&#62;
//#define AeroQuadMega_v21	// Arduino Mega with AeroQuad Shield v2.1&#60;br /&#62;
#define AeroQuadSTM32        // Baloo board&#60;br /&#62;
Then build the binary by starting Build.bat in the BuildAq32 directory. You better first edit Build.bat to use make -j1 instead of make -j4, as compiling in four parallel threads messes up the screen output.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>apollo on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456#post-25701</link>
			<pubDate>Mon, 06 May 2013 06:50:04 +0000</pubDate>
			<dc:creator>apollo</dc:creator>
			<guid isPermaLink="false">25701@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi&#60;br /&#62;
I have STM32F4 discovery board,I have also tried the modified libmaple but I couldn't compile the code from git repo, I'm using windows 7 and I followed the instruction from the wiki &#34;Command-line compilation and manual uploading&#34; ,I'm getting the following error &#34; C:/MinGW/msys/1.0/home/ang/AeroQuad32/MapleCompatibility/stm32.h:215:2: error: #&#60;br /&#62;
error &#34;No MCU type specified. Add something like -DMCU_STM32F103RB &#34; &#34;to your co&#60;br /&#62;
mpiler arguments (probably in a Makefile).&#34; and if I try the build bat file well it show much more errors&#60;br /&#62;
I did modified the Makefile and replaced aeroquad32 to discovery_f4 as Ala42 pointed in another post&#60;br /&#62;
Can you help me please , I'm not familiar with make files ans command line and I searched a solution for a days with no success&#60;br /&#62;
Thanks in advance
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stmnoob on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456#post-24264</link>
			<pubDate>Wed, 03 Apr 2013 11:08:27 +0000</pubDate>
			<dc:creator>stmnoob</dc:creator>
			<guid isPermaLink="false">24264@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;My bad..&#60;/p&#62;
&#60;p&#62;I have got it back to the original set up now..&#60;/p&#62;
&#60;p&#62;I know this is is probably a real pain, as I am kind of getting out of my depth here..&#60;/p&#62;
&#60;p&#62;I seem to have the board linked up, although there were a few errors, but my STM is now blinking and as I had erased the IC previously I take this is correct?&#60;/p&#62;
&#60;p&#62;Is there a listing of the new config for the IO or can this be deducted form the docs at ST?&#60;/p&#62;
&#60;p&#62;I am guessing that I now compile the program in the Arduino/Maple IDE, find the .bin and then upload via the STLink?&#60;/p&#62;
&#60;p&#62;If this is correct I will be a very happy bunny!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stmnoob on "STM32F4 Discovery LIBMaple DFU issue.."</title>
			<link>http://forums.leaflabs.com/topic.php?id=10456#post-24263</link>
			<pubDate>Wed, 03 Apr 2013 10:10:58 +0000</pubDate>
			<dc:creator>stmnoob</dc:creator>
			<guid isPermaLink="false">24263@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Ah I see!&#60;/p&#62;
&#60;p&#62;Thanks ala42.&#60;/p&#62;
&#60;p&#62;So I need to connect through the the smaller port and run this? (Closest to the M4 not the other IC..)&#60;/p&#62;
&#60;p&#62;I will try this and let you know how I get on..&#60;/p&#62;
&#60;p&#62;One thing however, I now can not access my STM via the STLink as I would by default?&#60;/p&#62;
&#60;p&#62;How do I get this to recognise as it didn't originally?&#60;/p&#62;
&#60;p&#62;I seem to be stuck in some form of limbo that will not allow me to revert or recognise this and flash as before..
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
