简体   繁体   English

视觉工作室2010中的pic32项目

[英]pic32 projects in visual studio 2010

Has anyone managed to configure VS2010 to build and debug embedded projects on PIC32 microcontrollers? 有没有人设法配置VS2010来构建和调试PIC32单片机上的嵌入式项目? Are there any tutorials out there? 那里有没有教程?

Using WinGDB i can connect to a gdb server to step through code from within vs2010 (have tested this compiling and debugging to a linux target). 使用WinGDB,我可以连接到gdb服务器以逐步执行vs2010中的代码(已经测试了这个编译和调试到linux目标)。

The microchip dev tools appear to be based on a modified copy of gcc, with gdb missing, but there are third party mips compiler toolchains available with gdb. 微芯片开发工具似乎是基于gcc的修改副本,缺少gdb,但是有第三方mips编译器工具链可用于gdb。 I understand that microchips debugging interface is proprietary, and unusable in this setting, but PIC32 supports JTAG debugging, and i have an amontec jtagkey 2 which is supported in openocd. 据我所知,微芯片调试接口是专有的,在此设置中无法使用,但PIC32支持JTAG调试,我有一个amoctec jtagkey 2,openocd支持。

My current idea of an approach is: 我目前对方法的想法是:

  • build on mips gcc under windows 建立在Windows下的mips gcc
  • program chip with Pickit3 commandline tool 程序芯片与Pickit3命令行工具
  • use openocd to provide a gdb server for target device 使用openocd为目标设备提供gdb服务器
  • connect to gdb server from visual studio 2010 using winGDB 使用winGDB从visual studio 2010连接到gdb服务器

Sounds like a pretty good place to start. 听起来像是一个非常好的起点。

You might want to look into MSBUILD for stringing together some of the different command line stuff. 您可能希望查看MSBUILD以将一些不同的命令行内容串联起来。 You should be able to use it to direct messages back into VS so you're getting info in places like the Errors and Warnings panel. 您应该能够使用它将消息引导回VS,这样您就可以在“错误和警告”面板中获取信息。

Another thing to look into would be Visual Studio Extensibility SDK for Visual Studio. 另一件需要关注的是Visual Studio的Visual Studio Extensibility SDK。 If there is stuff that you can't do with the command line or MSBUILD, then you see about using VSX for it. 如果您无法使用命令行或MSBUILD执行某些操作,那么您将看到有关使用VSX的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM