<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>STM32-103STK usb connection</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/38577/stm32-103stk-usb-connection</link><description> 
I have a STM32-103STK board with a keil ulink-me usb programmer.
My job is to create a USB connection to the pc. 
I&amp;#39;ve downloaded the USB-HID demo from keil ( http://www.keil.com/download/docs/361.asp ),
compiled it and loaded it onto the board. But</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/130552?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2009 01:59:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:657fbc57-5c3a-4196-960b-f7e95872edd0</guid><dc:creator>f Querner</dc:creator><description>&lt;p&gt;&lt;p&gt;
problem solved, solution:&lt;br /&gt;
use examples from ST with the following settings:&lt;/p&gt;

&lt;p&gt;
#define USB_DISCONNECT GPIOC&lt;br /&gt;
#define USB_DISCONNECT_PIN GPIO_Pin_11&lt;br /&gt;
#define RCC_APB2Periph_GPIO_DISCONNECT RCC_APB2Periph_GPIOC&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/125812?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 06:42:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5efe4038-6ee2-4ade-9534-fe4cbee7746f</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Gave what to you?&lt;/p&gt;

&lt;p&gt;
Keil?&lt;/p&gt;

&lt;p&gt;
The Olimex board?&lt;/p&gt;

&lt;p&gt;
If they gave you these things, they must have assumed that a
competent student, at this point in the course, should be able to
complete the assignment with them...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/115329?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 06:21:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:773636be-80e1-48a3-8c89-805f3eb5ebfd</guid><dc:creator>f Querner</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;If the Olimex examples are for IAR, why are you using
Keil?&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Cause school gave it to us...&lt;/p&gt;

&lt;p&gt;
but i know how to put something on the lcd screen, put led or pin
on or off...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/103536?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 06:19:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cfd1628e-a471-4fba-b84c-eff1e7bb802a</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
I&amp;#39;m not sure sure.&lt;/p&gt;

&lt;p&gt;
USB involves a lot of code - so that&amp;#39;s a lot of work to port it
all!&lt;/p&gt;

&lt;p&gt;
Porting requires a good understanding of &amp;#39;C&amp;#39; programming in
general, and at least a working knowledge of both the &amp;quot;source&amp;quot; and
the &amp;quot;target&amp;quot; compilers - none of which appears to apply here.&lt;/p&gt;

&lt;p&gt;
I think there really are just too many unknowns in this
equation!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/103534?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 06:16:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1e9cd15b-ba89-4268-a9ff-915421cda9dd</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
The normal starting place for embedded novices is to blink a
LED.&lt;/p&gt;

&lt;p&gt;
Then the standard &amp;quot;Hello, World&amp;quot;&lt;/p&gt;

&lt;p&gt;
Then build on that!&lt;/p&gt;

&lt;p&gt;
Given that you have an Olimex board, then Olimex is the obvious
place to look for examples!&lt;/p&gt;

&lt;p&gt;
If the Olimex examples are for IAR, why are you using Keil?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/77854?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 05:39:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e4af70e7-64dc-4788-afcd-984494dd11e8</guid><dc:creator>f Querner</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;Note that USB is pretty complex - it sounds like you should
really be starting with something much simpler...&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
i have to make this for school project, and we don&amp;#39;t get further
instructions...&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;Embedded software like this is very specific to the hardware
that it will run on - you cannot just take an example from one place,
and expect it to work on any arbitrary board from somewhere
completely different!&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
But where to start? an example from st, olimex or keil?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/90049?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 05:39:44 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:54a11137-7b6b-4f4e-af5a-718c179b096a</guid><dc:creator>Tamir Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
I &lt;i&gt;believe&lt;/i&gt; that in this &lt;b&gt;particular occasion,
&lt;i&gt;USB&lt;/i&gt;&lt;/b&gt; has a pretty good chance to work, as long as the
sample is ported entirely, because there are not any board specific
configurations required (so it seems) and we are talking about the
same processor. I have something similar with an embedded artists
board, and there I only needed to build using the Keil suit and set a
jumper.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/57073?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 05:31:37 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:36258e26-7d1c-4b42-bae5-1b4ab963a04b</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;I&amp;#39;ve downloaded the USB-HID demo from keil compiled it and
loaded it onto the board. But the demo isn&amp;#39;t working. I know it would
not work as it should be cause this board hasn&amp;#39;t have the
leds&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
I imagine that the LEDs would be the least of your problems!&lt;/p&gt;

&lt;p&gt;
Embedded software like this is &lt;i&gt;&lt;b&gt;very&lt;/b&gt;&lt;/i&gt; specific to the
hardware that it will run on - you cannot just take an example from
one place, and expect it to work on any arbitrary board from
somewhere completely different!&lt;/p&gt;

&lt;p&gt;
You need to check very carefully what hardware &amp;amp; connections
the software requires, and then see if those are provided on the
particular board that you have - if they aren&amp;#39;t (which is quite
likely), then you will have to modify the source code to match the
particular hardware that you actually have.&lt;/p&gt;

&lt;p&gt;
Note that USB is pretty complex - it sounds like you should really
be starting with something much simpler...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/157953?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 05:30:29 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:18b138c8-ee91-448b-8370-98f9b2521a42</guid><dc:creator>Tamir Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
Look, I cannot help you without seeing _something_.&lt;br /&gt;
Post, using the correct tags please, one of the functions MDK needs
and exists in that header file.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/157919?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 05:24:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7a36dee0-5a2c-433c-8817-0d6fecca65f0</guid><dc:creator>f Querner</dc:creator><description>&lt;p&gt;&lt;p&gt;
errors... it needs a type&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/152873?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 05:23:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:48d2ff3d-e669-4966-be68-d49ed32a27b6</guid><dc:creator>Tamir Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
remove &amp;quot;__intrinsic&amp;quot; only...! what happens then?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/152083?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 05:21:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:21f8ee1a-0711-444f-ab60-cd9e292a87ce</guid><dc:creator>f Querner</dc:creator><description>&lt;p&gt;&lt;p&gt;
i checked if i could find him and it looks it is something parsed
by the compiler, can&amp;#39;t find a real type. So i emptied the whole file
and then i got errors in some other files. Unknown identifiers and
more, and they where not in the emptied file.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/151326?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 04:32:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2063c2ae-686b-47fd-8b15-04f0f4d32ed1</guid><dc:creator>Tamir Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
then I suggest to look in the toolchain folder to see what the
type actually is. if it is a simple type, just replace it. but are
you sure you even need it under MDK...? maybe you can just remove
it?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/146465?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 04:24:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0521c60e-50f9-4a03-a1ec-670e0847a41c</guid><dc:creator>f Querner</dc:creator><description>&lt;p&gt;&lt;p&gt;
ah, i see&lt;/p&gt;

&lt;p&gt;
but in the file there is used a lot of __intrinsic types what the
compiler doesn&amp;#39;t understands&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/150734?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 04:24:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:07bf5135-bae3-4e68-b2bf-781152b23201</guid><dc:creator>f Querner</dc:creator><description>&lt;p&gt;&lt;p&gt;
ah, i see&lt;/p&gt;

&lt;p&gt;
but in the file there is used a lot of __intrinsic types what the
compiler doesn&amp;#39;t understands&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/144753?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 04:13:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f11f22fb-d58e-48da-8f6e-1ee7fcfd2f20</guid><dc:creator>Tamir Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
but surely you can extract from that header file only what you
need? the error you see in invoked by some kind of conditional
preprocessor construct. but you don&amp;#39;t need all that - just the
fundamental definitions.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/142472?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 04:10:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ef515d49-bc0c-4456-b713-30d567e92f07</guid><dc:creator>f Querner</dc:creator><description>&lt;p&gt;&lt;p&gt;
yeah, ive got it but now this:&lt;br /&gt;
C:\Program Files\Keil\ARM\RV31\INC\intrinsics.h(25): error: #35:
#error directive: &amp;quot;File intrinsics.h can only be used together with
iccarm.&amp;quot;&lt;/p&gt;

&lt;p&gt;
there is an exe in the newly installed software IAR and it
says:&lt;br /&gt;
IAR ANSI C/C++ Compiler V5.40.2.21604/W32 EVALUATION for ARM&lt;/p&gt;

&lt;p&gt;
what now? compiling with iccarm?&lt;br /&gt;
i think this isn&amp;#39;t going to work...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/139363?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 03:25:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dad026d6-1336-4714-b7fe-49ee5161a5fe</guid><dc:creator>Tamir Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
If I remember correctly, this file contains macros to disable
interrupts etc. but surely, you can download an evaluation version of
olimex IDE and take use the installed header file - no harm done, no
license needed for that.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/130551?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 03:15:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2d773308-6b8d-4c65-9600-14b8c91ae955</guid><dc:creator>f Querner</dc:creator><description>&lt;p&gt;&lt;p&gt;
i&amp;#39;m not really sure what i do is the right way but i took all the
c and h files from the example and put them in a new uvision project
and build that. The main problem is that he can&amp;#39;t find intrinsics.h
and it is in files i can&amp;#39;t edit.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/125803?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 02:41:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d262c820-13bb-4d9a-8301-9fb464cfb210</guid><dc:creator>Tamir Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
you can _easily_ adjust them and compile using MDK. been there,
done that - no problem really, if you can afford to invest only a few
moments (if you know what you are doing of course).&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/115331?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 02:39:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d8099e05-6af6-45c1-aad1-4145c0611252</guid><dc:creator>f Querner</dc:creator><description>&lt;p&gt;&lt;p&gt;
those are samples for EW-ARM 5.11 and i&amp;#39;m using the keil software
to program it. Or is it possible to use/adjust those examples?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/103542?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 02:22:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:62bd08cc-b4aa-436a-bba3-50543c5cdfba</guid><dc:creator>Tamir Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
any reason you are not using the samples provided by Olimex? You
have an HID sample available on the page you linked to!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/77855?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 02:16:51 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:72a66dc7-9df3-40d2-8162-f72340033638</guid><dc:creator>f Querner</dc:creator><description>&lt;p&gt;&lt;p&gt;
there is no jumper&lt;/p&gt;

&lt;p&gt;
this is the board:&lt;br /&gt;
&lt;a href="http://www.olimex.com/dev/stm32-103stk.html"&gt;www.olimex.com/.../stm32-103stk.html&lt;/a&gt;&lt;br /&gt;

it has a STM32F103RBT6 processor on it&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: STM32-103STK usb connection</title><link>https://community.arm.com/thread/57082?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2009 02:14:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b1ec8de6-d33c-4c45-8feb-e8a63cb1cc54</guid><dc:creator>Tamir Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
maybe there is a jumper that enables USB...?&lt;br /&gt;
just guessing - I don&amp;#39;t know you specific board/processor.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>