Hi Daniel,
You shouldn't be defining main as an interrupt - this will bypass the
startup code that sets up your C environment. See
http://mspgcc.sourceforge.net/manual/x1127.html for some info.
Instead you just have to name your main function like ``int
main(){...}''. It will get called from the startup code.
Have you halted the watchdog timer? ``WDTCTL = WDTPW | WDTHOLD;'' -
otherwise your code will continuously reset. The JTAG being present
shouldn't affect that though.
Have you connected the Reset pin of your MSP430 according to the
datasheet? You should have something like a 47k ohm resistor to Vcc
(Section 2.5 "Connection of Unused Pins" in the MSP430x1xx Family User's
Guide).
Other than that I don't know why it would work with JTAG but not
without. Maybe you should try something simpler like toggling a pin high
and low, just to check that the code is actually running.
Good luck!
- Wayne
-----Original Message-----
From: Daniel Flor [mailto:[email protected]]
Sent: Monday, 1 June 2009 8:15 AM
To: [email protected]
Subject: [Mspgcc-users] What would be the problem here ?
Hello, I made a program where I made a test of UART and it seems ok, but
the
program works only when I'm using J-TAG, but not when I'm not using
J-TAG.
when I remove J-TAG, the transmission don't occur. I thought to make the
main function a interrupt function with the reset vector. However I
never
see any code with the main function like a interrupt function. Please,
someone has any idea ?
Thank you.
Daniel
------------------------------------------------------------------------
------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals.
Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like
Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users