# OLIMEX STM32-P103 CONFUSION !!!

**URL:** <https://community.sparkfun.com/t/olimex-stm32-p103-confusion/6098>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [January 5, 2008, 6:32pm UTC](https://community.sparkfun.com/t/olimex-stm32-p103-confusion/6098 "2008-01-05T18:32:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![probroy](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@probroy](https://community.sparkfun.com/u/probroy)\
**Post date:** [January 5, 2008, 6:32pm UTC](https://community.sparkfun.com/t/olimex-stm32-p103-confusion/6098/1 "2008-01-05T18:32:15Z")

</div>

**@Leon**

sir , i have been able to put down the hardware …due to some great feedbacks

from u and ur schematic that u provided…but after the great problem was

overcome am faced with a new dilema…

I’m trying to explain in brief…

1. I have bought Olimex **STM32-P103** board based on MCU **STM32F103RBT6**.

2. Got some code example from Olimex

3. Assembled **JTAG** interface as per schematic provided by you

Now i’m cofused !!! I cant decide which software to use to program the flash of my board…can u please tell me which software to use for such purpose? a very specific solution is welcome : as I’m new to ARM-world. It would also be very much helpful for me if u mention about tricky things about it if any…as …how to configure that software for accessing this particular board or that particular JTAG interface etc…

thanks in advance

---

<div class="post-metadata">

**Author:** ![2bluesc](https://avatars.discourse-cdn.com/v4/letter/2/8edcca/32.png) [@2bluesc](https://community.sparkfun.com/u/2bluesc)\
**Post date:** [January 11, 2008, 7:16pm UTC](https://community.sparkfun.com/t/olimex-stm32-p103-confusion/6098/2 "2008-01-11T19:16:15Z")

</div>

I too just purchased a Olimex ARM-USB-OCD and a Olimex STM32-P103 but am having one hell of a time getting a compiler and openocd to work.

I finally got the drivers installed and am able to connect to openocd and issue commands to the debugger, but haven’t been able to figure out how to even build a simple program to flash the status LED on the STM32-P103 board yet.

Anybody have any code they can share or a procedure to get me going in the right direction?

Thanks,

- Kyle

---

<div class="post-metadata">

**Author:** ![leon\_heller](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/leon_heller/32/7602_2.png) [@leon\_heller](https://community.sparkfun.com/u/leon_heller)\
**Post date:** [January 11, 2008, 7:36pm UTC](https://community.sparkfun.com/t/olimex-stm32-p103-confusion/6098/3 "2008-01-11T19:36:22Z")

</div>

I use Rowley CrossWorks:

[http://www.rowley.co.uk](http://www.rowley.co.uk)

It works with my JTAG (Wiggler compatible) but I usually use their CrossConnect interface.

Leon

---

<div class="post-metadata">

**Author:** ![fordp](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@fordp](https://community.sparkfun.com/u/fordp)\
**Post date:** [January 14, 2008, 12:02pm UTC](https://community.sparkfun.com/t/olimex-stm32-p103-confusion/6098/4 "2008-01-14T12:02:32Z")

</div>

Maybe try here :- [http://www.freertos.org/RTOS\_Demo\_STM32 … \_Ride.html](http://www.freertos.org/RTOS_Demo_STM32_Primer_Ride.html)

I am getting a STM32 board today so I once I get my board going I may be able to help.

Good Luck.

---

<div class="post-metadata">

**Author:** ![2bluesc](https://avatars.discourse-cdn.com/v4/letter/2/8edcca/32.png) [@2bluesc](https://community.sparkfun.com/u/2bluesc)\
**Post date:** [January 15, 2008, 6:19pm UTC](https://community.sparkfun.com/t/olimex-stm32-p103-confusion/6098/5 "2008-01-15T18:19:10Z")

</div>

So, last night I killed my STM32.

I don’t know if it was static on my hands in the cold weather or a shitty power supply on the board. I plugged in a 12V power supply and I heard a pop and the STM32 got hot pretty quick. There doesn’t seem to be any TVS anywhere on the chip and perhaps my power supply zapped it. I desoldered the 3.3V solder bridge to the MCU and checked out everything else and it seemed fine. Ordering new chips and trying again… seems that mcu is dead and everything else if fine.

I would recommend people probably use the USB port to power the device rather then the power jack unless you have a low voltage power supply. The schematic calls for a LM1117 voltage regulator which is good to 20V, but on the board there is some cheap generic AZ1117 with almost the exact same ratings (max Vin 20V and typical 15V). I find it hard to believe my power transformer is crap as I’ve used it with a dozen other mcu development boards and boards I’ve made without any problems. This is the first mcu I’ve killed.

I guess I touched a GPIO pin with static on my body that shorted straight to the mcu or the AZ1117 power supply is crap. Problem became apparent when I plugged it in.

---

<div class="post-metadata">

**Author:** ![ntfreak](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@ntfreak](https://community.sparkfun.com/u/ntfreak)\
**Post date:** [January 16, 2008, 8:27am UTC](https://community.sparkfun.com/t/olimex-stm32-p103-confusion/6098/6 "2008-01-16T08:27:32Z")

</div>

Not blatant advertising but download idealist from Anglia - it is free.

They give away a ide/toolchain for the st range of arm micros.

You will need both the following files - you will need to request a free license.

[http://www.st-angliamicro.com/software/ … EaliST.exe](http://www.st-angliamicro.com/software/idealist/IDEaliST.exe)

[http://www.st-angliamicro.com/software/sarm.exe](http://www.st-angliamicro.com/software/sarm.exe)

includes examples for the stm32 and supports all the interfaces that openocd does.

If you just need examples then just download the ide and look in the stm32/examples directory.

Cheers

Spen

---

<div class="post-metadata">

**Author:** ![probroy](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@probroy](https://community.sparkfun.com/u/probroy)\
**Post date:** [January 18, 2008, 5:02pm UTC](https://community.sparkfun.com/t/olimex-stm32-p103-confusion/6098/7 "2008-01-18T17:02:37Z")

</div>

thanx all 😃

@ntfreak

i have downloaded those files from anglia & installed.

but it can not detect my stm32 board.

can u suggest a configuration?

my board seems to be ok. coz it was detected by crossworks. but i cannot use crossworks as it is evaluation version.

thanx

@fordp

is it possible to burn flash of my board through the only USB port on the board? my board is this one -

[http://www.olimex.com/dev/stm32-p103.html](http://www.olimex.com/dev/stm32-p103.html)

thnx

---

<div class="post-metadata">

**Author:** ![peteh](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@peteh](https://community.sparkfun.com/u/peteh)\
**Post date:** [January 27, 2008, 10:14pm UTC](https://community.sparkfun.com/t/olimex-stm32-p103-confusion/6098/8 "2008-01-27T22:14:23Z")

</div>

You can program this board using the serial bootloader as long as your toolchain can generate a .hex or .bin file. The program can be downloaded from the ST site.

You need to make a couple of small changes to the board. Look here:

[http://www.micromouseonline.com/forum/v … .php?t=206](http://www.micromouseonline.com/forum/viewtopic.php?t=206)

---

<div class="post-metadata">

**Author:** ![probroy](https://avatars.discourse-cdn.com/v4/letter/p/f17d59/32.png) [@probroy](https://community.sparkfun.com/u/probroy)\
**Post date:** [January 28, 2008, 5:32pm UTC](https://community.sparkfun.com/t/olimex-stm32-p103-confusion/6098/9 "2008-01-28T17:32:34Z")

</div>

thanks for ur effective advice … 😃

i did think about this earlier but cudn’t muster the courage to do it as the " rs232" level shifter for 3.3v isn’t available localy… ☹ …but the max232 is available which is 5v operable.

Is it possible if somehow to operate the max232 with 3.3v ? how did u manage the same ?

with regards

probal roy

[embeddedsystemz@yahoo.com](mailto:embeddedsystemz@yahoo.com)

---

<div class="post-metadata">

**Author:** ![peteh](https://avatars.discourse-cdn.com/v4/letter/p/919ad9/32.png) [@peteh](https://community.sparkfun.com/u/peteh)\
**Post date:** [January 28, 2008, 6:25pm UTC](https://community.sparkfun.com/t/olimex-stm32-p103-confusion/6098/10 "2008-01-28T18:25:02Z")

</div>

I didn’t bother because the USART1 pins are 5V tolerant

---

<div class="post-metadata">

**Author:** ![saygin](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@saygin](https://community.sparkfun.com/u/saygin)\
**Post date:** [February 6, 2008, 7:02pm UTC](https://community.sparkfun.com/t/olimex-stm32-p103-confusion/6098/11 "2008-02-06T19:02:32Z")

</div>

hi, i have purchased [[Olimex STM32-103STK](http://www.olimex.com/dev/stm32-103stk.html) and [[Olimex ARM-USB-TINY JTAG](http://www.olimex.com/dev/arm-usb-tiny.html), I use Rowley CrossStudio for ARM, when I try to connect the

JTAG I had a message box that say.

“Cannot Identify Target. Check JTAG connections and that the target is powered.”

What do you think the problem is.

**\*\*Edit: I solved it. set JTAG clock divider:4 and nTRST Open Drain:No\*\*** ](http://www.olimex.com/dev/arm-usb-tiny.html)](http://www.olimex.com/dev/stm32-103stk.html)
