EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

IAR breakpoint question

Started by "e.tury" October 29, 2008
I'm getting the "One or more breakpoints could not be set and have been
disabled" message, even though I'm only trying to set one. Have I
inadvertently thrown a switch?

Using IAR 4.0 and an MSP430F2272 with TI USB FET and JTAG.

I've been through the manual and the project settings, but I'm just not
getting it this A.M.

Beginning Microcontrollers with the MSP430

Hi

You are trying to set an hardware or a software breakpoint?

AES
--- In m..., "e.tury" wrote:
>
> I'm getting the "One or more breakpoints could not be set and have been
> disabled" message, even though I'm only trying to set one. Have I
> inadvertently thrown a switch?
>
> Using IAR 4.0 and an MSP430F2272 with TI USB FET and JTAG.
>
> I've been through the manual and the project settings, but I'm just not
> getting it this A.M.
>

I guess it would be a software breakpoint - on a line of code.
> Hi
>
> You are trying to set an hardware or a software breakpoint?
>
> AES
> --- In m..., "e.tury" wrote:
> >
> > I'm getting the "One or more breakpoints could not be set and
have been
> > disabled" message, even though I'm only trying to set one. Have I
> > inadvertently thrown a switch?
> >
> > Using IAR 4.0 and an MSP430F2272 with TI USB FET and JTAG.
> >
> > I've been through the manual and the project settings, but I'm
just not
> > getting it this A.M.
>
When you debug c-code, IAR will automatically set up one Breakpoint at
where the startup code calls "main()" and it will not tell you that a
Breakpoint is used there.

F2272 has two "Beakpoint Registers". A Data Breakpoint will use up
both "Breakpoint Registers". Range Breakpoint is not supported on F2272.

--- In m..., "e.tury" wrote:
>
> I'm getting the "One or more breakpoints could not be set and have been
> disabled" message, even though I'm only trying to set one. Have I
> inadvertently thrown a switch?
>
> Using IAR 4.0 and an MSP430F2272 with TI USB FET and JTAG.
>
> I've been through the manual and the project settings, but I'm just not
> getting it this A.M.
>

Thanks for the feedback. I haven't set up a Data Breakpoint or tried
a Range breakpoint.

I think I have something set wrong, but for the life of me can't find
it yet.

My 'red dot' on a code line gets 'whited out'.

This had been working for me. Alas, still learning a new tool.
>
> When you debug c-code, IAR will automatically set up one Breakpoint
at
> where the startup code calls "main()" and it will not tell you that
a
> Breakpoint is used there.
>
> F2272 has two "Beakpoint Registers". A Data Breakpoint will use up
> both "Breakpoint Registers". Range Breakpoint is not supported on
F2272.
>
> --- In m..., "e.tury" wrote:
> >
> > I'm getting the "One or more breakpoints could not be set and
have been
> > disabled" message, even though I'm only trying to set one. Have I
> > inadvertently thrown a switch?
> >
> > Using IAR 4.0 and an MSP430F2272 with TI USB FET and JTAG.
> >
> > I've been through the manual and the project settings, but I'm
just not
> > getting it this A.M.
>
Hi

The user old_cow_yellow is correct. So I sugest that you read the
application note SLAA263.pdf that explain how to use the MSP430 EEM
debug feature with IAR 3.30.

The number of software breakpoints is not limited.

Best regards
AES

--- In m..., "old_cow_yellow"
wrote:
>
> When you debug c-code, IAR will automatically set up one Breakpoint at
> where the startup code calls "main()" and it will not tell you that a
> Breakpoint is used there.
>
> F2272 has two "Beakpoint Registers". A Data Breakpoint will use up
> both "Breakpoint Registers". Range Breakpoint is not supported on F2272.
>
> --- In m..., "e.tury" wrote:
> >
> > I'm getting the "One or more breakpoints could not be set and have
been
> > disabled" message, even though I'm only trying to set one. Have I
> > inadvertently thrown a switch?
> >
> > Using IAR 4.0 and an MSP430F2272 with TI USB FET and JTAG.
> >
> > I've been through the manual and the project settings, but I'm
just not
> > getting it this A.M.
>
This has happened to me too. Usually, the breakpoint was on a piece of
code that is no longer used (not called from anywhere or optimized
away). When pressing the Debug icon to load the microcontroller and
start debugging, then I get that error.

As far as I know, the number of breakpoins IS limited by hardware. For
example the MSP430F12x has 3 while the MSP430F16x has 7. To use
additional breakpoints, these have to be created as "virtual
breakpoints",in which case IAR has to go into something called
singlestepping or microstepping mode. This are not really breakpoints,
as IAR tells the uC to execute one instruction each time and when it
reaches the virtual breakpoint, IAR stops telling the uC to execute
the next instruction. This results in a very low executing speed.

At least this is the way I understand it.

Regards,
Michael K.

--- In m..., "aes430" wrote:
>
> Hi
>
> The user old_cow_yellow is correct. So I sugest that you read the
> application note SLAA263.pdf that explain how to use the MSP430 EEM
> debug feature with IAR 3.30.
>
> The number of software breakpoints is not limited.
>
> Best regards
> AES
>
> --- In m..., "old_cow_yellow"
> wrote:
> >
> > When you debug c-code, IAR will automatically set up one Breakpoint at
> > where the startup code calls "main()" and it will not tell you that a
> > Breakpoint is used there.
> >
> > F2272 has two "Beakpoint Registers". A Data Breakpoint will use up
> > both "Breakpoint Registers". Range Breakpoint is not supported on
F2272.
> >
> > --- In m..., "e.tury" wrote:
> > >
> > > I'm getting the "One or more breakpoints could not be set and have
> been
> > > disabled" message, even though I'm only trying to set one. Have I
> > > inadvertently thrown a switch?
> > >
> > > Using IAR 4.0 and an MSP430F2272 with TI USB FET and JTAG.
> > >
> > > I've been through the manual and the project settings, but I'm
> just not
> > > getting it this A.M.
> > >
>
Thanks for your input.

>
> This has happened to me too. Usually, the breakpoint was on a piece
of
> code that is no longer used (not called from anywhere or optimized
> away). When pressing the Debug icon to load the microcontroller and
> start debugging, then I get that error.
>
> As far as I know, the number of breakpoins IS limited by hardware.
For
> example the MSP430F12x has 3 while the MSP430F16x has 7. To use
> additional breakpoints, these have to be created as "virtual
> breakpoints",in which case IAR has to go into something called
> singlestepping or microstepping mode. This are not really
breakpoints,
> as IAR tells the uC to execute one instruction each time and when it
> reaches the virtual breakpoint, IAR stops telling the uC to execute
> the next instruction. This results in a very low executing speed.
>
> At least this is the way I understand it.
>
> Regards,
> Michael K.
>
> --- In m..., "aes430" wrote:
> >
> > Hi
> >
> > The user old_cow_yellow is correct. So I sugest that you read the
> > application note SLAA263.pdf that explain how to use the MSP430
EEM
> > debug feature with IAR 3.30.
> >
> > The number of software breakpoints is not limited.
> >
> > Best regards
> > AES
> >
> >
> >
> > --- In m..., "old_cow_yellow"
> > wrote:
> > >
> > > When you debug c-code, IAR will automatically set up one
Breakpoint at
> > > where the startup code calls "main()" and it will not tell you
that a
> > > Breakpoint is used there.
> > >
> > > F2272 has two "Beakpoint Registers". A Data Breakpoint will use
up
> > > both "Breakpoint Registers". Range Breakpoint is not supported
on
> F2272.
> > >
> > > --- In m..., "e.tury" wrote:
> > > >
> > > > I'm getting the "One or more breakpoints could not be set and
have
> > been
> > > > disabled" message, even though I'm only trying to set one.
Have I
> > > > inadvertently thrown a switch?
> > > >
> > > > Using IAR 4.0 and an MSP430F2272 with TI USB FET and JTAG.
> > > >
> > > > I've been through the manual and the project settings, but I'm
> > just not
> > > > getting it this A.M.
> > > >
> > >
>

The 2024 Embedded Online Conference