Debugproblem with STM32 Discovery

General discussion on mikroPascal PRO for ARM.
Post Reply
Author
Message
rage
Posts: 3
Joined: 29 Aug 2014 14:28

Debugproblem with STM32 Discovery

#1 Post by rage » 29 Aug 2014 15:22

I bought the mikroPASCAL PRO for ARM, some click-Boards, Visual TFT and a STM32F4 Discovery Shield. Software installed the drivers and utilities for the STLink. Everything OK. Written small test program compiled, the Discovery fired by F11 (mikroProg / Options -STLink -JTAG, Connection-Normal). So far so good. Unfortunately, you can not debug it, F9 immediately brings an error, see Appendix. One can the compiler then only by Alt + Ctrl + Del kilen, the message is repeated continuously. You can also see the data with the Discovery to be replaced, the LED flashes red / green.
Why is that?
With best regards
rage
Attachments
DiscoveryDebug.jpg
DiscoveryDebug.jpg (407.13 KiB) Viewed 4935 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Debugproblem with STM32 Discovery

#2 Post by filip » 02 Sep 2014 13:32

Hi,

Does this happen each time you run a debugger, with every project ?

Regards,
Filip.

rage
Posts: 3
Joined: 29 Aug 2014 14:28

Re: Debugproblem with STM32 Discovery

#3 Post by rage » 06 Sep 2014 08:26

Yes with every project, regardless of whether demo even written etc. Immediately after the start of the debugger.

MaGiK
Posts: 897
Joined: 19 Apr 2013 10:00

Re: Debugproblem with STM32 Discovery

#4 Post by MaGiK » 06 Sep 2014 13:14

Hello Rage and welcome to the forum :D

Is your (MikroProg suite for ARM) software updated to the latest version?
If not, then please update it.
Windows 7 and higher might require administrative updating.

Also, do you get this error when you debug a simple code (An LED blinking for example)?
I'm just checking here, but did you compile that code as a debugging type or a release type?

Best Regards
My hobby is collecting MikroElektronika products.
Gotta catch them all!

rage
Posts: 3
Joined: 29 Aug 2014 14:28

Re: Debugproblem with STM32 Discovery

#5 Post by rage » 10 Sep 2014 14:01

OK, i have checked with a other PC, all ready. With my PC, is not correct. Now make a update for the Discovery, and now running the debugger.

cu
rage

MaGiK
Posts: 897
Joined: 19 Apr 2013 10:00

Re: Debugproblem with STM32 Discovery

#6 Post by MaGiK » 10 Sep 2014 20:16

Hello Rage :D

I see that I've misunderstood you earlier :oops:
Now, if I understand you correctly, you have solved your issue :mrgreen:
If so, then I'm glad everything worked out well :D

Best Regards
My hobby is collecting MikroElektronika products.
Gotta catch them all!

strawbot
Posts: 3
Joined: 06 Apr 2015 05:45

Re: Debugproblem with STM32 Discovery

#7 Post by strawbot » 06 Apr 2015 06:11

I am working with a STM32F429I-Discovery board and while I can program the board with an example such as led blinking (and it works), I cannot run the debugger. When I try the debugger in hardware (software works) I get a dialog saying no device and when I click the OK, I get a dialog saying mikroElektronika ICD hardware not found.

How can I debug with the ST-Link on the discovery board? I've looked through all the options and dug through the forums and this one seems to have a question closest to my problem.

I'm evaluating several IDE's right now for a couple of projects and I will need some good tools for the next couple of years. Yours is the only one where I download an example and the example continues to work after I power cycle the board. I can also download the hex file to the internal boot loader with the unix tool stm32flash. Although I can't figure out what address to tell it to go to to run it. But that is a secondary question. If I can't debug, then its all no good.

I will also need to know how easy it is to use the peripherals such as SPI, I2C, UART, Timers, GPIO, DMA, Interrupts, Low power mode, and if there is a TCP/IP stack available. Right now the clock is set up wrong because the LED is not blinking according to the software settings. I have use STM32Cube with another IDE and found it quite useful for dealing with a lot of the above concerns. Does the mikron Pro for ARM accept generated code or projects from STM32Cube?

Thanks.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Debugproblem with STM32 Discovery

#8 Post by filip » 07 Apr 2015 16:13

Hi,

Did you set ST-link/SWD debugger in the IDE and mikroProg Suite for ARM options ?

Regards,
Filip.

strawbot
Posts: 3
Joined: 06 Apr 2015 05:45

Re: Debugproblem with STM32 Discovery

#9 Post by strawbot » 07 Apr 2015 16:28

Yes.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Debugproblem with STM32 Discovery

#10 Post by filip » 09 Apr 2015 16:18

Hi,

Could you please attach the detailed photo of the board and connections ?

Regards,
Filip.

strawbot
Posts: 3
Joined: 06 Apr 2015 05:45

Re: Debugproblem with STM32 Discovery

#11 Post by strawbot » 09 Apr 2015 16:56

Here's a photo
Attachments
snapshot of board
snapshot of board
IMG_1843.png (605.84 KiB) Viewed 4321 times

Toley
Posts: 922
Joined: 03 Sep 2008 16:17

Re: Debugproblem with STM32 Discovery

#12 Post by Toley » 09 Apr 2015 18:46

Serge T.
Learning is an endeless process but it must start somewhere!

Post Reply

Return to “mikroPascal PRO for ARM General”