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…
I have bought Olimex STM32-P103 board based on MCU STM32F103RBT6.
Got some code example from Olimex
Assembled JTAGinterface 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…
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?
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.
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:
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 ?
“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)