OLIMEX STM32-P103 CONFUSION !!!

@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

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

I use Rowley CrossWorks:

http://www.rowley.co.uk

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

Leon

Maybe try here :- http://www.freertos.org/RTOS_Demo_STM32 … _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.

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.

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/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

thanx all :smiley:

@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

thnx

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

thanks for ur effective advice … :smiley:

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… :frowning: …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

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

hi, i have purchased [Olimex STM32-103STK and [Olimex ARM-USB-TINY JTAG, 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)