FEZ Raptor Getting Started

Hello,

I’m trying to connect to my brand new FEZ Raptor board using a USB-Serial SP Module, but I cannot get it to communicate.
I have connected them as showed in the first picture.
As soon as I connect the USB cable, the Rx-Tx leds of the USB-Serial SP Module blink for one second, then they stop, while the PWR led on the FEZ Raptor switches on and remains on.
When I start the FEZ Config tool, no board is recognized in USB mode (second picture), while using the Serial port (COM3, that is generated when I connect the board) and click on “Check device for update” button, the software tries to communicate for a while (Tx led of the USB-Serial SP Module blinks) but it gets no answer and finally gives an error message (third picture).
I tried to use all the USB ports of my laptop and also a powered USB hub, but nothing worked.

Am I missing any previous step to get started with the board?

Thank you for your help,

Gianluca

@ giad - Welcome to the forums.

You should connect the power module to the D socket, this is the USB device socket. I can’t see the image clearly, but I think it is one socket 8.

Yep, socket 8 on the Raptor.

Hello Everybody,

thank you for you replies.
The USB-Serial SP Module is declared as a Socket-U module (not Socket-D):

https://www.ghielectronics.com/catalog/product/437

By the way I tried to connect it to Socket 8 (which is Socket-D and -I), but it does not work.
In this case not only the USB communication does not work, but it is not even generated the serial port, so I get a Failure from the FEZ Config: it does not even try to send messages (see first picture).

Should I maybe connect the USB-Serial SP Module to socket 8 (as you suggest), and connect the USB-Serial module to a Socket-U (e.g. socket 10) with a second USB cable, as in the second picture?
I did not tried it yet, because I don’t want to destroy the board :slight_smile:

Thank you for your help,

Gianluca

@ giad - I think you need to put the board into serial debug mode.

I am not sure you can update the firmware in serial debug mode. you might need a USB power module. Chech the g400 manual. ******* Firmware update is supported ********

Hello Mike,

thank for your reply.
I am a bit confused now.
I thought the first step to accomplish with a new board is to communicate with it with the FEZ Config.
I have just installed the “GHI Electronics NETMF SDK 2015 R1 Pre-Release 4” and would like to understand how I should connect the Gadgeteers to make the first communication with the board (I could not find any quick start guide).

If I look at the G400 manual, it says (pag.20):

“The MODE Pin (PA25) is used to select between USB and serial. The pin is internally pulled
up. So high or unconnected will give you USB debugging, pulling it low will give you serial
debugging on COM1”

The problem is that if I connect the USB-Serial SP Module to a Socket-D (as suggested in the previous posts) I do not get neither a USB nor a Serial connection in the FEZ Config.
On the contrary, If I connect it to a Socket-U I get a Serial connection available but the FEZ Config always says “Failure - Device is not connected or not responding”.

Now, if you are right and I should pull low the PA25 pin the question is: how could I access to it? with a cable?

Thank you,

Gianluca

@ giad - First, the power module should be plugged into socket 10. that is the U socket with COM1.

PA25 is pin three on socket 7, as shown on the schematic. pin 10 on any socket is ground.

I would use https://www.ghielectronics.com/catalog/product/405 to short the pin. you could use a standard gadgeteer cable, and a jumper wire.

Fezconfig will not recognize the serial module until you ground pa25.

The best module to use is actually the USB Client SP module https://www.ghielectronics.com/catalog/product/330 as this allows everything to communicate as expected, without using MODE switch to move to serial debugging. This is the “just works” module, so if you have to order anything else I’d make sure you throw one of these in the order (and/or the USB Client DP if you also might want to use an external power supply)

@ giad -

My opinion only…

Use the USB Client DP Module( Part # USBDP-GM-280) … It works in (D) Socket 8

I have never tried using the USB-Serial module as you are describing. I have always used the USB Client DP Module
with my Raptor.

As a test for your information I used a USB-Serial module :
I tried the USB-Serial module in all of the Raptors COM sockets and Socket 8 and I could not download any application in debug.

My Fez Raptor is using Firmware 4.3.7.10

I tried using the Microsoft sample: I assume you also have this folder…
C:\Users\willgeorge\Documents\Microsoft .NET Micro Framework 4.2\Samples\InkCanvasSample (Your folder)

In Device Manager Ports (COM & LPT) shows USP Serial Port (COM7)

VS application Properties - Transport Switched between Emulator and Serial port 7

Begin debug of application:
In the VS Output window:

Looking for a device on transport ‘Serial’
Starting device deployment…
Iteration 0
Opening port \.\COM7
Attaching debugger engine…
… cannot attach debugger engine!

I used VS 2012 and VS 2013
Both VS versions failed trying to use USB Serial module.
(I did not try VS2015)

In both VS versions the application loaded and ran with success when I used the USB Client module.

Get the USB Client DP Module( Part # USBDP-GM-280) … It works!

Good luck… The Raptor is a GREAT board.

@ Willgeorge, did you actually boot into serial debug mode ? I’m not sure your diagnosis actually helped explain how it can be done…

@ giad -

You are using USB to Serial module, if you want to communicate with the board, you have to

  • Connect the module to socket 10,
  • Pin 3 in socket 7 connect to GND
  • Reset the board.
    Form FEZ CONFIG or MFDeploy, select the COM port that shown under PC’ Device Manager.
    Try to Ping it first.

Also, Serial debug and USB debug 4.3.7.10 (4.3.7.9) work well in my PC VS2012.

@ Brett - I guess I got into someone was talking about apples and I was talking about oranges…

Very sorry for the confusion…

I have only been able to update my raptor using the USBClientDP.

When using the USBSerial module, you get (what I call) a normal Windows COM port)

When using the USBClientDP you get the Bossa Program Port (COM3) (which is what you need)
Bossa uses the Amtel sam-ba to update the loader.

Hello Everybody,

just to thank you all, because with your tips I could get it work!!
As Mike and Dat suggested, I used a Breakout module to create a connection to GND of Pin 3 in socket 7.
Moreover I connected my USB-Serial SP Module into socket 10.
I attach a picture, just in case it can be useful in the future for other users.

For sure (as Brett and willgeorge suggest) in the next days I will order a USB Client DP Module, that unfortunately I did not buy in my first order.
But for the moment I could start my development, so I thank you all for the great help!

Gianluca

1 Like

@ giad, great to hear you’re on the right track now ! Welcome to the forum, hope you stick around and share info on the cool stuff you make with us!

Still a little more detail is worth explaining here, which might help you understand another layer to this.
This is totally expected - and remember, in most cases the “description” you see is just the driver that is mapped to the hardware, in other words it could change depending on how the USB interface presents itself to the OS and allows a specific driver to load.

The USBSerial module has it’s own USB-to-UART chip, that will always present itself as a “standard” serial device. No matter what UART you connect that to on a device (U or K socket) the PC end always looks the same.

The USB-DP (or similar) does not have a USB chip on it at all, it purely passes the USB signals back to the processor. When you start a board normally, the firmware on the chip presents itself to the OS over the USB connection as a debuggable netmf device. However when you start the board in SAM-BA mode, it presents a serial port to the OS that behaves a specific way - but it’s still just a serial port.

When you use the USBSerial module and put a board into serial debug mode, the debug stream just gets routed over the board’s COM1 UART to the USB-to-UART chip then to the COM port on the PC. That serial stream happens to have meaning to the debug engine in VS, or to the upgrade engine in MFDeploy (Fez Config). It’s still a serial stream, it’s the content of the stream that has meaning… and that’s what allows an “application” to use the stream how it needs.