MikroProg for STM error in debug mode

General discussion on mikroProg™ programmer and debugger and mikroProg Suite software as well.
Post Reply
Author
Message
rehrag
Posts: 11
Joined: 23 Jun 2011 13:35

MikroProg for STM error in debug mode

#1 Post by rehrag » 08 Feb 2019 12:28

MikroProg for ARM can not detect the MicroProg Adapter in debug mode. To flash teh device run w/o error.
First I have flash the device STM32F302CB with debug mode on
When I start the debugger I get the message "No device" and than "mikroelektronika ICD hardware not found"

At an other project with STM32F429ZI the same procedure will run w/o problems.

What is the reason for that behavior?

rehrag
Posts: 11
Joined: 23 Jun 2011 13:35

Re: MikroProg for STM error in debug mode

#2 Post by rehrag » 11 Feb 2019 11:09

The MikroProg for STM communication via USB works very instable !
I have installed all of that with Administrator rights;

Operating System: WIN7
MikroC for ARM: v6.0.0 (the v6.1.0 start with an errror on my PC, so I went back to the previous Version)
MikroProg for ARM: v1.50 (installed as Administrator)

I have used both, with SW and JTAG => with the same reaction

sometimes the programming of MCU STM32F302CB is running, but not stable
often I get the error message "USB communication error" or "Connection error" or "no ECU"

If I get a propper Connection an can program the ECU, the dbugging is not possible, If I get an communication to the MCU
and it seems to run step by step; the values of variable is shown unchanged

Why is the communication so insable? I have ordered an new MicroProg device, but it Shows the same behavior

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: MikroProg for STM error in debug mode

#3 Post by jovana.medakovic » 11 Feb 2019 11:58

Hello,

I tested an UART example in debug mode on MikroC for ARM 6.1.0 and it works fine.
Please, check your configurations bits.
Can you send me your project, so I can try to debug it?
Also, can you try to change the USB cable?

Kind regards,
Jovana

rehrag
Posts: 11
Joined: 23 Jun 2011 13:35

Re: MikroProg for STM error in debug mode

#4 Post by rehrag » 11 Feb 2019 14:27

Hello,

which configirations bits I have to check?
I tried the connection with several USB cable, ever the same reaction
I gues, the connection from MikroC for ARM to the MikroProg device is the problem

MikroC v6.1.0 delivert an error at startup, therefore I use v6.0.0

I will send you my project

rehrag
Posts: 11
Joined: 23 Jun 2011 13:35

Re: MikroProg for STM error in debug mode

#5 Post by rehrag » 11 Feb 2019 16:07

Hello Jovana,

attached I send you my project
Attachments
I-MessAdapter_v0.2.7z
(11.42 KiB) Downloaded 92 times

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: MikroProg for STM error in debug mode

#6 Post by jovana.medakovic » 12 Feb 2019 12:34

Hi,

You need to be mindful of the programming/debugging lines (A13, A14, A15) and you have to be sure not to use them in your code.
When I commented out your function GPIOA_Init(); I was able to debug properly.

Kind regards,
Jovana

rehrag
Posts: 11
Joined: 23 Jun 2011 13:35

Re: MikroProg for STM error in debug mode

#7 Post by rehrag » 13 Feb 2019 10:20

Thanks for your support
I will that testing next weekend
as I understand; I should not use A13 A14 A15 with other function - right

regards

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: MikroProg for STM error in debug mode

#8 Post by jovana.medakovic » 13 Feb 2019 10:33

Hi,

Exactly that, you should not use A13 A14 A15 and you will debug your project.

Kind regards,
Jovana

rehrag
Posts: 11
Joined: 23 Jun 2011 13:35

Re: MikroProg for STM error in debug mode

#9 Post by rehrag » 13 Feb 2019 14:55

Jovana,
is that the reason too, that I get error messages like "USB communication failed" or "no ECU" ?
The USB communication seems very instable.
Do you have an idee, what can I do to get a stable communication to the MikroProg?
which driver version do you prefer?

regards

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: MikroProg for STM error in debug mode

#10 Post by jovana.medakovic » 13 Feb 2019 17:19

Hi,

This problem will be solved in the next update of mikroProg Suite for ARM and it should be soon.

Kind regards,
Jovana

rehrag
Posts: 11
Joined: 23 Jun 2011 13:35

Re: MikroProg for STM error in debug mode

#11 Post by rehrag » 15 Feb 2019 07:26

Thanks Jovana, that sounds great

kind regards

Post Reply

Return to “mikroProg™ programmer and debugger”