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
Flowkit V2 Breakpoints
Moderator: Benj
-
- Posts: 116
- Joined: Tue Jul 17, 2012 9:34 am
- Been thanked: 18 times
- Contact:
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Flowkit V2 Breakpoints
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
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
-
- Posts: 116
- Joined: Tue Jul 17, 2012 9:34 am
- Been thanked: 18 times
- Contact:
Re: Flowkit V2 Breakpoints
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
>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
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Flowkit V2 Breakpoints
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
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
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Flowkit V2 Breakpoints
Oh, looks like breakpoints don't work unless you set Simulation speed to "Normal"
See Build->Project Options
Leigh
See Build->Project Options
Leigh
-
- Posts: 116
- Joined: Tue Jul 17, 2012 9:34 am
- Been thanked: 18 times
- Contact:
Re: Flowkit V2 Breakpoints
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
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