查看: 5989|回复: 3

用 Visual Studio 开发MSP430,一起来看一下吧(*^__^*) 嘻嘻……

[复制链接]
  • TA的每日心情
    无聊
    2014-5-18 22:32
  • 签到天数: 257 天

    连续签到: 1 天

    [LV.8]以坛为家I

    发表于 2013-1-20 17:13:57 | 显示全部楼层 |阅读模式
    分享到:
    Using Visual Studio to develop MSP430 firmware
    In this tutorial we will show you how to develop and debug a simple "LED blinking" firmware for TI MSP430 microcontrollers using VisualGDB. We use the EZ430-RF2500 development board to demonstrate the integration with debugging tools; however, you can use any of those tools/programmers supported by the MSP430.DLL provided by TI.
    The full list of the MSP430 devices supported by VisualGDB can be found here.
    Step-by-step guide
    Before you begin, please ensure that you installed the latest version of VisualGDB. Once it's installed, follow the steps below:
    • Start Visual Studio, select "File->New->Project". Then select "Visual C++->VisualGDB".Please avoid spaces in directory names, as GDB does not support it.
    • In VisualGDB wizard select "Firmware for an embedded device" and press "next".
    • As you are creating a default new project, you don't have to change anything on next wizard page.
    • Select "MSP430" from the toolchain list. If the MSP430 toolchain has not been installed before, VisualGDB will download and install it automatically. You can also download it yourself fromhttp://gnutoolchains.com/msp430.
    • VisualGDB will show the toolchain versions available for download. Please select the latest one.
    • Select the installation directory and press "Install" to start toolchain installation.
    • Once the toolchain has been installed, press the "Next" button on the toolchain selection page.
    • Select the MCU type that you want to target. The EZ430-RF2500 kit has the msp430f2274 MCU. The LaunchPad board comes with msp430g2553. You can use the "Filter" textbox to simplify finding the right MCU.
    • On the next page enter the location of the LED. The EZ430-RF2500 and LaunchPad have a LED connected to P1.0, so the default settings will work.
    • On the debug settings page select "mspdebug Simulator".Press Finish when done.
    • Congratulations! You have created a Visual Studio project for a simple MSP430 firmware. Press Ctrl+Shift+B or select Build->Build Solution to build the project.
    • To start debugging, put a breakpoint on the line assigning P1OUT and start the debug session via Debug->Start debugging with GDB command:
    • When the breakpoint is hit you can use the normal Visual Studio techniques to debug your program. Hover the mouse over the P1OUT register. Visual Studio will show the value:
    • The Debug Server window will show the output from mspdebug. If you encounter any problems, refer to it for additional information.
    • You can step through your program, modify variable values, change next statement, just like you are debugging a Windows application. When done, press Shift+F5 to stop debugging.
    • Now we will debug a real device over JTAG. Right-click on the project in Solution Explorer and select "VisualGDB Project Properties".
    • Change the debug method to JTAG (gdbproxy++) and accept default settings:
    • You can start debugging your firmware over JTAG by selecting Debug->Start debugging with GDB. The FLASH memory will be programmed automatically.

      VisualGDB for Visual Studio下载地址:
      http://visualgdb.com/download/VisualGDB-2.8-trial.msi


    回复

    使用道具 举报

  • TA的每日心情

    2015-2-14 09:02
  • 签到天数: 656 天

    连续签到: 1 天

    [LV.9]以坛为家II

    发表于 2013-1-20 18:52:35 | 显示全部楼层
    最近为啥都在发英文的资料
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2018-8-29 20:40
  • 签到天数: 1341 天

    连续签到: 1 天

    [LV.10]以坛为家III

    发表于 2013-1-21 08:44:51 | 显示全部楼层
    自己硬着头皮看吧
    回复 支持 反对

    使用道具 举报

  • TA的每日心情

    2016-3-28 21:00
  • 签到天数: 117 天

    连续签到: 1 天

    [LV.6]常住居民II

    发表于 2013-10-24 23:55:43 | 显示全部楼层
    有没有microsoft visual studio软件网址啊,谢谢了
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /3 下一条



    手机版|小黑屋|与非网

    GMT+8, 2024-5-18 10:31 , Processed in 0.125591 second(s), 20 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.