This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can't program Olimex STM32-P103 board

Hi,
I use ADuC and LPC2138 at work but this is a first attempt at using the STM32, with a prototyping board from Olimex. I am using an evaluation copy of the Real View MDK (V3.11) and a ULink as a JTAG programmer. When I try to upload to flash I get the message box "Error flash download failed - Target DLL has been cancelled" and the message "JTAG Communication Failure". The device is visible to the JTAG port, see a screenshot here:

www.mark-ju.net/keil1.jpg

Tis clearly some communication. What is the second JTAG device? The processor is a STM32F103RBT6 and this is what I have selected when I created my project. I have tried different speeds and changing the setting for whether the ULink drivers are externally or self powered.

Thanks in advance for any help,

Mark

Parents
  • Hello Everyone,

    It seems, that the pullup resistors on the olimex boards are the problem ( and in some cases the reset logic ). We had the same problems with a STM32-P103 board from Olimex. Erase worked, chip was visible in the JTAG chain, but the device was not programmable. After removing the resistors R1,R13,R5 and R2 and replacing the resistor R6 with a 22k value, and removing the R-T jumper, flashing worked fine with the KEIL ULink2 Programmer ( please note, the resistor references and the jumper reference is from the STM32-P103 board )!

    Maby someone from Keil could look into this an tell us why flashing of the Olimex Boards works fine with J-Link and other JTAG tools and thus failes in the standard config with the Keil tool?

    Best regard, hope this helps
    Tim

Reply
  • Hello Everyone,

    It seems, that the pullup resistors on the olimex boards are the problem ( and in some cases the reset logic ). We had the same problems with a STM32-P103 board from Olimex. Erase worked, chip was visible in the JTAG chain, but the device was not programmable. After removing the resistors R1,R13,R5 and R2 and replacing the resistor R6 with a 22k value, and removing the R-T jumper, flashing worked fine with the KEIL ULink2 Programmer ( please note, the resistor references and the jumper reference is from the STM32-P103 board )!

    Maby someone from Keil could look into this an tell us why flashing of the Olimex Boards works fine with J-Link and other JTAG tools and thus failes in the standard config with the Keil tool?

    Best regard, hope this helps
    Tim

Children