• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Microcontrollers » Stellaris® ARM® Microcontrollers » Stellaris® ARM® LM3S Microcontrollers Forum » Ported MSP430 programming (slau320d.pdf) with a Stellaris controller
Share
Stellaris® ARM® Microcontrollers
  • Forum
Options
  • Subscribe via RSS

Ported MSP430 programming (slau320d.pdf) with a Stellaris controller

Ported MSP430 programming (slau320d.pdf) with a Stellaris controller

This question is answered
Terry Biberdorf1
Posted by Terry Biberdorf1
on Jun 14 2012 12:26 PM
Intellectual745 points

Has anyone ported the support to program a MSP430 with a Stellaris controller?

I've been studying and trying to implement the application note slau320d.pdf but running into what I believe are timing issues.

In my porting attempts I'm changing the state of an IO line from output drive to input drive.  How quickly can this change take place?

Thanks for any suggestions?

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Stellaris Miles
    Posted by Stellaris Miles
    on Jun 15 2012 10:57 AM
    Intellectual1775 points

    Are you trying to implement the Spy-by-wire or 4-wire JTAG interface?

    You might try asking on the MSP430 forum if anyone has implemented MSP430 programming on an MSP430.  If they have then that would probably be a better starting point.

    --
    Miles

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Stellaris Miles
    Posted by Stellaris Miles
    on Jun 15 2012 11:25 AM
    Intellectual1775 points

    Terry Biberdorf1

    In my porting attempts I'm changing the state of an IO line from output drive to input drive.  How quickly can this change take place?

    The settling time would be system dependant, based on the capacitance/resistance of what the pin is connected to on the board.  Thus, it is not something we normally spec. 

    The digital control turn around time will be based on how quickly the GPIO registers can be written, which is a function of clock frequency.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Terry Biberdorf1
    Posted by Terry Biberdorf1
    on Jun 15 2012 11:43 AM
    Intellectual745 points

    Hi Miles

    We're currently building a test fixture that will be used to program and test our MSP430G products.  The targeted MSP430 in slau320d does not support the function that we want our test fixture to support so we decided to go with the Stellaris.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Stellaris Miles
    Posted by Stellaris Miles
    on Jun 15 2012 11:56 AM
    Intellectual1775 points

    Are you trying to use Spy-by-wire or 4-wire JTAG?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Terry Biberdorf1
    Posted by Terry Biberdorf1
    on Jun 15 2012 11:57 AM
    Intellectual745 points

    Spy-by wire.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Stellaris Miles
    Posted by Stellaris Miles
    on Jun 18 2012 10:39 AM
    Intellectual1775 points

    Terry,

    The MSP430 folks recommended using the BSL.  http://processors.wiki.ti.com/index.php/BSL_(MSP430)

    Have you looked into that approach?

    --Miles

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Terry Biberdorf1
    Posted by Terry Biberdorf1
    on Jun 18 2012 11:15 AM
    Intellectual745 points

    Hi Miles

    This looks like it would be a much easier approach and would work for our "larger" MSP430G parts but our smaller units which are using the MSP430G2131 parts do not support BSL.  Looks like I'm stuck with learning Spy-by-wire.

    Terry

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Stellaris Miles
    Posted by Stellaris Miles
    on Jun 18 2012 12:44 PM
    Intellectual1775 points

    Terry,

    The MSP430 folks pointed me at the Replicator project.  Have you seen that?  It appears you don't have to start from scratch.  Of course you WILL have to port this code to ARM.

    Are you sure it's cost effective to develop this on your own versus purchasing an off-the-shelf programmer?  For example, for < $300 you can program 16x MSP430's:  http://www.ti.com/tool/msp-gang

    --Miles

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Terry Biberdorf1
    Posted by Terry Biberdorf1
    on Jun 19 2012 09:22 AM
    Intellectual745 points

    Hi Miles

    I've been trying to port the Replicator project (See attached project).  My current test environment has a EKS-LM3S9D92 connected to a 14 pin DIP MSP430G2231.

    EKS-LM3SD92 MSP430G2231
    3.3V DVCC (pin 1)
    GND DVSS (pin 14)
    PF1 SBWTDIO (pin 10)
    PF2 SBWTCK (pin 11)

    I also have a logic analyzer connected to each of the four lines.

    To start off I would like like to see the GetDeviceId rely from the MSP430G.  I've structured the code to trigger a request for GetDeviceId() when switch 2 is pressed on the EKS.

    Based on my logic probe analysis I believe the correct timing of events is being sent to the MSP430G, but the MSP430G does not ever seem to pull the TDIO line LOW.  When I change the state of my PF1 pin from output drive to input drive, should I be first be setting the output to LOW?  Should I have a pull down or pull up on that line?  

    thanks

    8780.progMSP430.zip

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Terry Biberdorf1
    Posted by Terry Biberdorf1
    on Jun 19 2012 10:36 AM
    Intellectual745 points

    Hi Miles

    Sorry, but with further review I found a bug in my logic.  I was not correctly toggling the tck line after pulling the MSP430 out of reset.  I fixed that bug with the attached project.  It now looks like the MSP430 has entered the SBW mode, but its still not providing a Device ID.

    5736.progMSP430.zip

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Leo Hendrawan
    Posted by Leo Hendrawan
    on Jun 19 2012 10:36 AM
    Mastermind28725 points

    Hi Terry,

    i would still prefer to suggest you using BSL, because JTAG is not that easy to use. In the new SLAA450 application note, you can have an example for implementing a BSL in a very small value line devices:

    http://www.ti.com/lit/an/slaa450b/slaa450b.pdf

    Could this be an option for you? This could make things much easier. Besides, it is BSL which is meant to be used for doing firmware update on the field. JTAG is more for development and production process.

    Regards,

    Leo Hendrawan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Terry Biberdorf1
    Posted by Terry Biberdorf1
    on Jun 19 2012 11:53 AM
    Intellectual745 points

    Hi Leo

    Based on the following data sheet information:

    what suggestions do you have?  I agree that BSL would be a much easier approach but it appears that with these small MSP430G parts so not support it.

    Terry  

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Leo Hendrawan
    Posted by Leo Hendrawan
    on Jun 20 2012 04:02 AM
    Mastermind28725 points

    Hi Terry,

    the SLAA450b application note above contains a guide for creating BSL on very small G2xx devices (it is mentioned it shall work even on MSP430G2001 with 512 bytes of flash). However the associated files which should contain the code are still missing, and i am currently asking the author for this. How much flash do you still have left on your MSP430G2231 exactly?

    Will get back to you if i hear something from them.

    Regards,

    Leo Hendrawan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Leo Hendrawan
    Posted by Leo Hendrawan
    on Jun 20 2012 06:02 AM
    Mastermind28725 points

    Hi Terry,

    the author just told me that the way of software distribution is now changed. You can get the link of the associated files basically in the app note document itself (see the first page)

    http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/CustomBSL/latest/index_FDS.html

    So i would suggest to use the G2xx BSL rather than start playing around with JTAG.

    Regards,

    Leo Hendrawan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Terry Biberdorf1
    Posted by Terry Biberdorf1
    on Jun 20 2012 09:48 AM
    Intellectual745 points

    Hello Leo

    Thanks for reference to the app note, it was a good read (and the asm code does look very small and efficient) but still leaves me with one major problem, I'm attempting to program and test units that have just left the oven.  The parts have no code present in them.  It would be best for me to determine a common way to program all of my MSP430G.  If they don't all have BSL available then I only see my common interface to be Spy-By-Wire (SBW).

    In my project that I sent you earlier, my logic probe is indicating that my MSP430G is entering SBW mode and it is pulling the SBWTDIO line low during the TDO time frame, but it has yet to provide me with a valid Device ID code.  How critical is the timing operations?  From my readings the clock rates must be shorter than 7us.  My measurements are in the 1.5 to 3us range.  Is this too fast?

    Terry

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use