Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Proprietary Netduino2 PCB - Loading Program


  • Please log in to reply
3 replies to this topic

#1 tma

tma

    Member

  • Members
  • PipPip
  • 12 posts

Posted 01 August 2013 - 05:04 AM

I have built a proprietary Netduino2-based PCB, running the STM32F205RGT6 processor.

V4.2 firmware loaded correctly, the board is recognized as Netduino and I was able to load the first test program from Visual Studio.

 

But now I cannot load any other program anymore, I get the infamous "Unable to communicate with device" message.

 

The PCB doesn't contain any circuitry to reset the board when Visual Studio starts communicating with the board. Am I missing something?

Does anybody know if there is an additional handshake or reset taking place when uploading programs via USB than just USB communication?



#2 tma

tma

    Member

  • Members
  • PipPip
  • 12 posts

Posted 02 August 2013 - 08:52 PM

I am getting a bit further now. It seems that VS Studio can deploy the application via USB to the PCB. Immediately after the deployment the PCB should reboot in order to get into Debug mode and let itself debug from Visual Studio. This doesn't work. I suspect it is something I am not doing correctly in the hardware. Does anybody have an idea what particular hardware requirements are needed for that?

 

Thanks



#3 nakchak

nakchak

    Advanced Member

  • Members
  • PipPipPip
  • 404 posts
  • LocationBristol, UK

Posted 03 August 2013 - 08:14 AM

I assume that you implemented the reset circuitry on your custom board?

 

Attached File  ND2-reset.png   17.85KB   0 downloads

 

as AFAIK you need a method of grounding the MCU in order for it to reset.

 

Nak.



#4 tma

tma

    Member

  • Members
  • PipPip
  • 12 posts

Posted 03 August 2013 - 08:45 PM

nakchak,

 

thanks for your suggestion. I do not need the external reset, so I have not implemented that. 

But I just made some significant progress:
The problem seems to be related to the software, at least in some way.

 

It seems that there is some interference with the Serial Port, defined as:
[font="'courier new', courier, monospace;"]ReadPort = new SerialPort(SerialPorts.COM1, 9600, Parity.None, 8, StopBits.One);[/font]

 

If I don't use that port, then the software reset seems to work.

 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.