Pages: [1]   Go Down
Author Topic: Arduino as an ISP for Texas Instruments Microcontroller?  (Read 1568 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A couple of times, I have seen complaints that programming the Texas instruments with a launchpad has the complication of doing it all in ASM, which is a very cryptic language, unlike C.

People have gotten around this by using Energia, a AVR-Style compiler designed for the launchpad.

I would like to know: Is it possible to use the Arduino board as an in-system-programmer for JUST the Texas Instruments MCU?
I want to be able to program an MSP430, like like I would program an external Atmel Chip.


 
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 135
Posts: 6782
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No.
I mean, theoretically possible, but...  Voltage conversion, unwritten software...

Launch pad comes with a C compiler, btw...
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 149
Posts: 5626
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

programming the Texas instruments with a launchpad has the complication of doing it all in ASM, which is a very cryptic language, unlike C.

Harder work? Yes, but not cryptic.

Assembly language is far more logical than C, nothing 'cryptic' about it.

Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Show Your Work
Offline Offline
Edison Member
*
Karma: 14
Posts: 1108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

C is cryptic to most people out there, even some professional programmers. 

Real AVR C is cryptic to most programmers without understanding the GPIO stuff.

Code:
DDRD = 1<<PD2;
PORTD = 1<<PD2;

GICR = 1<<INT0;
MCUCR = 1<<ISC01 | 1<<ISC00;

Set up port D pin 2 as input, set the pullup, enable it as INT0 on rising edges.  You need to consult the datasheet to figure out what is going on here (comments removed for emphasis).
Logged

I have only come here seeking knowledge. Things they would not teach me of in college.

Eastern NC, US
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A couple of times, I have seen complaints that programming the Texas instruments with a launchpad has the complication of doing it all in ASM, which is a very cryptic language, unlike C.

People have gotten around this by using Energia, a AVR-Style compiler designed for the launchpad.

I would like to know: Is it possible to use the Arduino board as an in-system-programmer for JUST the Texas Instruments MCU?
I want to be able to program an MSP430, like like I would program an external Atmel Chip.

There are many c compiler option for the msp430. CCS Texas Instruments C/C++ compiler, IAR has a commercial compiler and then there is the free msp430-gcc c/c++ compiler. TI provides samples in C.  Energia is an Arduino port of the msp430. It implements an Arduino API, most straight Arduino code just works.  The launchpad device https://estore.ti.com/MSP-EXP430G2-MSP430-LaunchPad-Value-Line-Development-kit-P2031.aspx is $10. It is equivalent to buying an AVR dragon. It is both a programmer and a hw debugger.  There is no reason to use asm unless you want to.  

If you want to go into the larger chips. There are many other options. All of them can be programmed in C or C++.

There is no reason to use an ISP with the msp430 chips. You can get a real hardware debugger / programmer usb device for less than the cost of an FTDI module.

TI code examples for the msp430g2553 http://www.ti.com/product/msp430g2553#softTool
Energia forum: http://forum.43oh.com/forum/28-energia/
Energia http://energia.nu
Fabooh http://github.com/RickKimball/msp430_code/


-rick
« Last Edit: March 21, 2013, 06:58:27 am by Rick Kimball » Logged

Show Your Work
Offline Offline
Edison Member
*
Karma: 14
Posts: 1108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In a nutshell, what do you think these MSP430s do that AVR does not?  I see there are a bunch of options on Digikey but mostly they have the same peripherals, similar number of pins, similar amounts of flash and RAM, very slightly better clock speeds (up to 25Mhz instead of 20Mhz) than tiny/mega AVR (not including XMEGA AVR which compares even better than plain AVR at 32Mhz and additional peripherals such as DAC).  I get they are 16 bit, but does that often matter?  Anyway, what is the draw?

Logged

I have only come here seeking knowledge. Things they would not teach me of in college.

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I can get the TI chips for free.

I guess I may just invest in a LaunchPad and use Energia. The $10 isn't too bad, it's the 2-4 week backorder that had me searching.
Logged

Show Your Work
Offline Offline
Edison Member
*
Karma: 14
Posts: 1108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I can get the TI chips for free.

TI will sample to almost anybody.   smiley-mr-green  I just got some programmable gain amplifiers to test out on an idea that I have.  I prefer samples when I have no idea what the hell I am doing and am at my most likely to fry something.
Logged

I have only come here seeking knowledge. Things they would not teach me of in college.

DELHI
Offline Offline
God Member
*****
Karma: 8
Posts: 933
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I downloaded above Energia IDE . It worked similar to arduino only we need to make changes in library and port naming.
The wire library didn't worked. Wire liberary works fine unless sda and scl  pins are connected . Once pins are removed MSP gets hangs. I would like to is it normal behavior with MSP kits or not.

 
Logged

AMPS

Pages: [1]   Go Up
Jump to: