Page 1 of 1

Flowkit V2 Breakpoints

Posted: Sat Feb 27, 2016 6:50 pm
by stewartbaker
Hi,
I am trying to use breakpoints on a simple LED flashing program using Flowkit V2.

It doesn't mater whether I set a breakpoint either before compiling under Ghost, or when running ICD,
the program continues on past the breakpoint. What is wrong ?

Best regards
Stewart
ICD_Breakpoint_Test.fcfx
(5.23 KiB) Downloaded 494 times

Re: Flowkit V2 Breakpoints

Posted: Mon Feb 29, 2016 9:38 am
by LeighM
Hi Stewart,

Did you select ICD mode, then compile to chip?
Have you got Ground (0v) connection between Flowkit and your target hardware?
Also Clock from pin D9 on Flowkit to port B 6 on target.
Data from pin D8 on Flowkit to port B 7 on target?

Regards,
Leigh

edit:
I've also just noticed that the 1 output is to all port b, rather than bit 0, as the 0 output,
that could cause issues with the ICD

Re: Flowkit V2 Breakpoints

Posted: Mon Feb 29, 2016 3:57 pm
by stewartbaker
Hi Leigh,

>Did you select ICD mode, then compile to chip?
Yes.
>Have you got Ground (0v) connection between Flowkit and your target hardware?
Didn't have, now have.
>Also Clock from pin D9 on Flowkit to port B 6 on target.
Yes.
>Data from pin D8 on Flowkit to port B 7 on target?
Yes.

I corrected my (lazy) programming, and now only B0 is used, not the whole port.

FK2 seems to be ICD'ing my target hardware, but still unable to get any breakpoints to work.

Regards

Stewart

Re: Flowkit V2 Breakpoints

Posted: Mon Feb 29, 2016 4:15 pm
by LeighM
Does stepping work?

Also, anything else connected to Port B 6 and 7? Like an LED e-block?

... I'll try and dig out some kit and replicate what you have

Re: Flowkit V2 Breakpoints

Posted: Mon Feb 29, 2016 4:41 pm
by LeighM
Oh, looks like breakpoints don't work unless you set Simulation speed to "Normal"
See Build->Project Options

Leigh

Re: Flowkit V2 Breakpoints

Posted: Mon Feb 29, 2016 5:16 pm
by stewartbaker
Hi Leigh,
That was it. Breakpoints only work if Simulation speed is set to "Normal".

Many thanks for finding the problem.

There was exactly the same issue of Breakpoints not working if speed was not "Normal" in normal simulation mode.

That one has only just been fixed in the latest V6 patch. It took nearly 2 years for something so central to debugging to get sorted !

What is it with Flowcode (Matrix) and Breakpoints ?

C'mon guys, get a grip...

Stewart