EmbeddedRelated.com
Forums

Problems with IAR and programming

Started by "'Pe...@ozemail.com.au [msp430]" February 21, 2015
Hi Peter I rarely use the FET boards, and only very occasionally the
Launchpads. Mostly I find that I have boards of my own that are
sufficiently close to what I need and they have expansion capability
that allows me to test a new circuit or sensor. Typically I might get a
free EVK for a component (or buy one from Sparkfun or the manufacturer
if I really have to) to test a new part out but for more complex
circuits I build a few prototypes.

For example when I was working on an asset tracker with long battery
life (2-4 years) I used an existing board with 9 axis motion sensor and
pressure sensor and bought the Telit 865 board from Sparkfun for the GSM
modem, but when I was working on a vibration logger I used the 2618 EVK
because it had the SD card on board.

Al

On 23/02/2015 12:11 PM, 'Peter Grey' m...@ozemail.com.au [msp430] wrote:
> Hi Al,
>
> That is what I thought. But I only had unregulated ones in stock. I
> will pick up one this morning and see how it goes.
>
> I am using SBW but still using the MSP430-FETUIF. Do you use the same
> or is it a launchpad device? I would like to get a more reliable
> emulator than this.
>
> Cheers
>
> Peter
>
> *From:*m... [mailto:m...]
> *Sent:* Sunday, 22 February 2015 3:18 PM
> *To:* m...
> *Subject:* Re: [msp430] Problems with IAR and programming
>
> Hi Peter, I would suspect the wall wart as the issue. i seem to recall
> somebody else with a similar problem that went away when they replaced
> the wall awrt with a well regulated supply.
>
> When I worked with the Telit 865 module I used a boost regulator with
> an Li-poly capable of delivering 4A continuous. It wasn't a large
> battery. That was for portability though as I didn't want to be tied
> to a vehicle supply.
>
> The SBW is the Spy By Wire interface used on a lot of the smaller
> parts. I rarely need to go to large parts unless I need lots of I/O,
> and this fits in fine.
>
> Al
>
> On 22/02/2015 1:02 PM, 'Peter Grey' m...@ozemail.com.au
> [msp430] wrote:
>
> Hi Al
>
> My difference in Vcc is very small as noted below. But I agree it
> is something between the 2 supplies that is causing the problem,
> as Emmett alluded to. I will try his suggestions and see how it goes.
>
> What is the SBW dongle you refer to in your email?
>
> Thanks
>
> Peter
>
> *From:*m...
> [mailto:m...]
> *Sent:* Saturday, 21 February 2015 9:55 PM
> *To:* m...
> *Subject:* Re: [msp430] Problems with IAR and programming
>
> I haven't used a FET board for a while, but I recall thaqt several
> of them used to have this issue if there was a slight difference
> in Vcc levels, very slight. The same doesn't occur with the SBW
> dongles, they live quite happily with joint supplies and a 0.6V
> differecne in Vcc, though I wouldn't recommend this. I can't find
> my FET documentation at the moment, but I seem to recall there was
> a resistor you could change that would allow the FET board to
> handle this.
>
> Al
>
> On 21/02/2015 3:42 PM, 'Peter Grey' m...@ozemail.com.au
> [msp430] wrote:
>
> I have a target board with a MSP430FR5729. I am using IAR
> EW6.5 and a MSP430-FETUIF. I have a MSP-TS430PW28 connected to
> the FET module and 4 wires going to my target board (Vcc,
> ground, Test, RST). I have used this sort of setup many times.
> My target board has a 12V input and it generates 11volts to be
> used on board to generate 3.3V and a few other DC voltages.
> When I connect the cable from the PW28 board I can program the
> board and run it. If I connect the 12 volts to my target board
> the IAR crashes and I have to turn my PC off and on. When the
> 12V is not on the Vcc is 3.32V and if I have the 12V connected
> and no FET the Vcc is 3.29V. I cannot see any shorts to ground
> and the whole target board draws 17mA when no high power
> devices are connected (3G modem). I can program in a led flash
> and this will work with no 12V connected. If I remove the FET
> and apply power the fled will flash. It seems the program runs
> but it will not download the program when I have the 12V
> connected. I checked the notes from TI and can see no hints as
> to what is happening.
>
> Any suggestions?
>
> TIA
>
> Peter
>

Beginning Microcontrollers with the MSP430

Hi Al

Sorry I was not clear. What do you use to load your program into the MCU and to debug it. As far as I can see TI have the Launchpad and the MSP-FET emulator. There are a few others from Olimex and other companies.

Thanks

Peter

From: m... [mailto:m...]
Sent: Monday, 23 February 2015 11:12 AM
To: m...
Subject: Re: [msp430] Problems with IAR and programming

Hi Peter I rarely use the FET boards, and only very occasionally the Launchpads. Mostly I find that I have boards of my own that are sufficiently close to what I need and they have expansion capability that allows me to test a new circuit or sensor. Typically I might get a free EVK for a component (or buy one from Sparkfun or the manufacturer if I really have to) to test a new part out but for more complex circuits I build a few prototypes.

For example when I was working on an asset tracker with long battery life (2-4 years) I used an existing board with 9 axis motion sensor and pressure sensor and bought the Telit 865 board from Sparkfun for the GSM modem, but when I was working on a vibration logger I used the 2618 EVK because it had the SD card on board.

Al

On 23/02/2015 12:11 PM, 'Peter Grey' m...@ozemail.com.au [msp430] wrote:

Hi Al,

That is what I thought. But I only had unregulated ones in stock. I will pick up one this morning and see how it goes.

I am using SBW but still using the MSP430-FETUIF. Do you use the same or is it a launchpad device? I would like to get a more reliable emulator than this.

Cheers

Peter

From: m... [mailto:m...]
Sent: Sunday, 22 February 2015 3:18 PM
To: m...
Subject: Re: [msp430] Problems with IAR and programming

Hi Peter, I would suspect the wall wart as the issue. i seem to recall somebody else with a similar problem that went away when they replaced the wall awrt with a well regulated supply.

When I worked with the Telit 865 module I used a boost regulator with an Li-poly capable of delivering 4A continuous. It wasn't a large battery. That was for portability though as I didn't want to be tied to a vehicle supply.

The SBW is the Spy By Wire interface used on a lot of the smaller parts. I rarely need to go to large parts unless I need lots of I/O, and this fits in fine.

Al

On 22/02/2015 1:02 PM, 'Peter Grey' m...@ozemail.com.au [msp430] wrote:

Hi Al

My difference in Vcc is very small as noted below. But I agree it is something between the 2 supplies that is causing the problem, as Emmett alluded to. I will try his suggestions and see how it goes.

What is the SBW dongle you refer to in your email?

Thanks

Peter

From: m... [mailto:m...]
Sent: Saturday, 21 February 2015 9:55 PM
To: m...
Subject: Re: [msp430] Problems with IAR and programming

I haven't used a FET board for a while, but I recall thaqt several of them used to have this issue if there was a slight difference in Vcc levels, very slight. The same doesn't occur with the SBW dongles, they live quite happily with joint supplies and a 0.6V differecne in Vcc, though I wouldn't recommend this. I can't find my FET documentation at the moment, but I seem to recall there was a resistor you could change that would allow the FET board to handle this.

Al

On 21/02/2015 3:42 PM, 'Peter Grey' m...@ozemail.com.au [msp430] wrote:

I have a target board with a MSP430FR5729. I am using IAR EW6.5 and a MSP430-FETUIF. I have a MSP-TS430PW28 connected to the FET module and 4 wires going to my target board (Vcc, ground, Test, RST). I have used this sort of setup many times. My target board has a 12V input and it generates 11volts to be used on board to generate 3.3V and a few other DC voltages. When I connect the cable from the PW28 board I can program the board and run it. If I connect the 12 volts to my target board the IAR crashes and I have to turn my PC off and on. When the 12V is not on the Vcc is 3.32V and if I have the 12V connected and no FET the Vcc is 3.29V. I cannot see any shorts to ground and the whole target board draws 17mA when no high power devices are connected (3G modem). I can program in a led flash and this will work with no 12V connected. If I remove the FET and apply power the fled will flash. It seems the program runs but it will not download the program when I have the 12V connected. I checked the notes from TI and can see no hints as to what is happening.

Any suggestions?

TIA

Peter
I use the FET for devices without the SBW, but prefer to use the SBW if
I can, it vastly simplifies development in many respects, as it is less
tempermental than the FET. It used to only be fitted to the 22xx family
down, but now is making it's way onto some of the newer larger parts
including the FRAM parts like the 100 pin FR6989

Al

On 23/02/2015 3:00 PM, 'Peter Grey' m...@ozemail.com.au [msp430] wrote:
> Hi Al
>
> Sorry I was not clear. What do you use to load your program into the
> MCU and to debug it. As far as I can see TI have the Launchpad and the
> MSP-FET emulator. There are a few others from Olimex and other companies.
>
> Thanks
>
> Peter
>
> *From:*m... [mailto:m...]
> *Sent:* Monday, 23 February 2015 11:12 AM
> *To:* m...
> *Subject:* Re: [msp430] Problems with IAR and programming
>
> Hi Peter I rarely use the FET boards, and only very occasionally the
> Launchpads. Mostly I find that I have boards of my own that are
> sufficiently close to what I need and they have expansion capability
> that allows me to test a new circuit or sensor. Typically I might get
> a free EVK for a component (or buy one from Sparkfun or the
> manufacturer if I really have to) to test a new part out but for more
> complex circuits I build a few prototypes.
>
> For example when I was working on an asset tracker with long battery
> life (2-4 years) I used an existing board with 9 axis motion sensor
> and pressure sensor and bought the Telit 865 board from Sparkfun for
> the GSM modem, but when I was working on a vibration logger I used the
> 2618 EVK because it had the SD card on board.
>
> Al
>
> On 23/02/2015 12:11 PM, 'Peter Grey' m...@ozemail.com.au
> [msp430] wrote:
>
> Hi Al,
>
> That is what I thought. But I only had unregulated ones in stock.
> I will pick up one this morning and see how it goes.
>
> I am using SBW but still using the MSP430-FETUIF. Do you use the
> same or is it a launchpad device? I would like to get a more
> reliable emulator than this.
>
> Cheers
>
> Peter
>
> *From:*m...
> [mailto:m...]
> *Sent:* Sunday, 22 February 2015 3:18 PM
> *To:* m...
> *Subject:* Re: [msp430] Problems with IAR and programming
>
> Hi Peter, I would suspect the wall wart as the issue. i seem to
> recall somebody else with a similar problem that went away when
> they replaced the wall awrt with a well regulated supply.
>
> When I worked with the Telit 865 module I used a boost regulator
> with an Li-poly capable of delivering 4A continuous. It wasn't a
> large battery. That was for portability though as I didn't want to
> be tied to a vehicle supply.
>
> The SBW is the Spy By Wire interface used on a lot of the smaller
> parts. I rarely need to go to large parts unless I need lots of
> I/O, and this fits in fine.
>
> Al
>
> On 22/02/2015 1:02 PM, 'Peter Grey' m...@ozemail.com.au
> [msp430] wrote:
>
> Hi Al
>
> My difference in Vcc is very small as noted below. But I agree
> it is something between the 2 supplies that is causing the
> problem, as Emmett alluded to. I will try his suggestions and
> see how it goes.
>
> What is the SBW dongle you refer to in your email?
>
> Thanks
>
> Peter
>
> *From:*m...
> [mailto:m...]
> *Sent:* Saturday, 21 February 2015 9:55 PM
> *To:* m...
> *Subject:* Re: [msp430] Problems with IAR and programming
>
> I haven't used a FET board for a while, but I recall thaqt
> several of them used to have this issue if there was a slight
> difference in Vcc levels, very slight. The same doesn't occur
> with the SBW dongles, they live quite happily with joint
> supplies and a 0.6V differecne in Vcc, though I wouldn't
> recommend this. I can't find my FET documentation at the
> moment, but I seem to recall there was a resistor you could
> change that would allow the FET board to handle this.
>
> Al
>
> On 21/02/2015 3:42 PM, 'Peter Grey' m...@ozemail.com.au
> [msp430] wrote:
>
> I have a target board with a MSP430FR5729. I am using IAR
> EW6.5 and a MSP430-FETUIF. I have a MSP-TS430PW28
> connected to the FET module and 4 wires going to my target
> board (Vcc, ground, Test, RST). I have used this sort of
> setup many times. My target board has a 12V input and it
> generates 11volts to be used on board to generate 3.3V and
> a few other DC voltages. When I connect the cable from the
> PW28 board I can program the board and run it. If I
> connect the 12 volts to my target board the IAR crashes
> and I have to turn my PC off and on. When the 12V is not
> on the Vcc is 3.32V and if I have the 12V connected and no
> FET the Vcc is 3.29V. I cannot see any shorts to ground
> and the whole target board draws 17mA when no high power
> devices are connected (3G modem). I can program in a led
> flash and this will work with no 12V connected. If I
> remove the FET and apply power the fled will flash. It
> seems the program runs but it will not download the
> program when I have the 12V connected. I checked the notes
> from TI and can see no hints as to what is happening.
>
> Any suggestions?
>
> TIA
>
> Peter
>
I finally got a regulated plugpack and that fixed the problem with the PC crashing. Now I get on with the coding!

Thanks to all for their help. It was invaluable.

Peter

From: m... [mailto:m...]
Sent: Sunday, 22 February 2015 3:18 PM
To: m...
Subject: Re: [msp430] Problems with IAR and programming

Hi Peter, I would suspect the wall wart as the issue. i seem to recall somebody else with a similar problem that went away when they replaced the wall awrt with a well regulated supply.

When I worked with the Telit 865 module I used a boost regulator with an Li-poly capable of delivering 4A continuous. It wasn't a large battery. That was for portability though as I didn't want to be tied to a vehicle supply.

The SBW is the Spy By Wire interface used on a lot of the smaller parts. I rarely need to go to large parts unless I need lots of I/O, and this fits in fine.

Al

On 22/02/2015 1:02 PM, 'Peter Grey' m...@ozemail.com.au [msp430] wrote:

Hi Al

My difference in Vcc is very small as noted below. But I agree it is something between the 2 supplies that is causing the problem, as Emmett alluded to. I will try his suggestions and see how it goes.

What is the SBW dongle you refer to in your email?

Thanks

Peter

From: m... [mailto:m...]
Sent: Saturday, 21 February 2015 9:55 PM
To: m...
Subject: Re: [msp430] Problems with IAR and programming

I haven't used a FET board for a while, but I recall thaqt several of them used to have this issue if there was a slight difference in Vcc levels, very slight. The same doesn't occur with the SBW dongles, they live quite happily with joint supplies and a 0.6V differecne in Vcc, though I wouldn't recommend this. I can't find my FET documentation at the moment, but I seem to recall there was a resistor you could change that would allow the FET board to handle this.

Al

On 21/02/2015 3:42 PM, 'Peter Grey' m...@ozemail.com.au [msp430] wrote:

I have a target board with a MSP430FR5729. I am using IAR EW6.5 and a MSP430-FETUIF. I have a MSP-TS430PW28 connected to the FET module and 4 wires going to my target board (Vcc, ground, Test, RST). I have used this sort of setup many times. My target board has a 12V input and it generates 11volts to be used on board to generate 3.3V and a few other DC voltages. When I connect the cable from the PW28 board I can program the board and run it. If I connect the 12 volts to my target board the IAR crashes and I have to turn my PC off and on. When the 12V is not on the Vcc is 3.32V and if I have the 12V connected and no FET the Vcc is 3.29V. I cannot see any shorts to ground and the whole target board draws 17mA when no high power devices are connected (3G modem). I can program in a led flash and this will work with no 12V connected. If I remove the FET and apply power the fled will flash. It seems the program runs but it will not download the program when I have the 12V connected. I checked the notes from TI and can see no hints as to what is happening.

Any suggestions?

TIA

Peter