EmbeddedRelated.com
Forums

rcm6000 programming

Started by Theodore Politis February 22, 2012
Hi all

Does anybody knows the schematic (pin connections, max3232 connection ) in order to make a programming cable, for program an RCM (5xxx,6xxx) mini core using a legacy pc com port ?

Thank you in advance
9-pin Dsub   232 Transceiver           R6K Connector
----------        -----------------         ---------------
2 - Rx   ------>  R_IN  --> R_OUT ----------->   50
3 - Tx   <------  T_OUT <-- T_IN  <-----------   48
4 - Status <----  T_OUT <-- T_IN  <-----------   47
5 - Gnd  -------> GND
         |
         |       o
         ----> -/ o--------------------------->  49 (SMODE)
            Switch 1
       (Close to put into programming mode)
The RS-232 cable needs to be a full NULL Modem cable. 

>________________________________
> From: Theodore Politis
>To: "r..."
>Sent: Wednesday, February 22, 2012 1:18 PM
>Subject: [rabbit-semi] rcm6000 programming

>Hi all

>Does anybody knows the schematic (pin connections, max3232 connection )  in order to make a programming cable, for program an RCM (5xxx,6xxx) mini core using a legacy pc com port ?

>Thank you in advance

>
Thank you very much Steve.
 
I will try it today .
The 49 pin (SMODE) can be connected like this ? 9-pin Dsub             232 Transceiver                         R6K Connector
----------                 -----------------                        ---------------
6 - DSR   ------>  R_IN  --> R_OUT ----------->   49 (SMODE) )
in order to let DC10 switch the rabbit to programming mode ?
 
 
From: Steve Trigero
To: "r..."
Sent: Thursday, February 23, 2012 2:13 AM
Subject: Re: [rabbit-semi] rcm6000 programming
 
9-pin Dsub   232 Transceiver           R6K Connector
----------        -----------------         ---------------
2 - Rx   ------>  R_IN  --> R_OUT ----------->   50
3 - Tx   <------  T_OUT <-- T_IN  <-----------   48
4 - Status <----  T_OUT <-- T_IN  <-----------   47
5 - Gnd  -------> GND
         |
         |       o
         ----> -/ o--------------------------->  49 (SMODE)
            Switch 1
       (Close to put into programming mode)
The RS-232 cable needs to be a full NULL Modem cable. 
From: Theodore Politis
>To: "r..."
>Sent: Wednesday, February 22, 2012 1:18 PM
>Subject: [rabbit-semi] rcm6000 programming

>Hi all
>
>Does anybody knows the schematic (pin connections, max3232 connection )  in order to make a programming cable, for program an RCM (5xxx,6xxx) mini core using a legacy pc com port ?
>
>Thank you in advance
>
No. Because when the PC enables the serial port it will put the

rabbit in programming mode. The SMODE can't be connected to any

pin in the serial connector.

>________________________________
> From: Theodore Politis
>To: "r..."
>Sent: Thursday, February 23, 2012 6:54 AM
>Subject: Re: [rabbit-semi] rcm6000 programming

>Thank you very much Steve.

>I will try it today .
>The 49 pin (SMODE) can be connected like this ? 9-pin Dsub             232 Transceiver                         R6K Connector
>----------                 -----------------                        ---------------
>6 - DSR   ------>  R_IN  --> R_OUT ----------->   49 (SMODE) )
>in order to let DC10 switch the rabbit to programming mode ?



>From: Steve Trigero
>To: "r..."
>Sent: Thursday, February 23, 2012 2:13 AM
>Subject: Re: [rabbit-semi] rcm6000 programming

>9-pin Dsub   232 Transceiver           R6K Connector
>----------        -----------------         ---------------
>2 - Rx   ------>  R_IN  --> R_OUT ----------->   50
>3 - Tx   <------  T_OUT <-- T_IN  <-----------   48
>4 - Status <----  T_OUT <-- T_IN  <-----------   47
>5 - Gnd  -------> GND
>         |
>         |       o
>         ----> -/ o--------------------------->  49 (SMODE)
>            Switch 1
>       (Close to put into programming mode)
>The RS-232 cable needs to be a full NULL Modem cable. 
>From: Theodore Politis
>>To: "r..."
>>Sent: Wednesday, February 22, 2012 1:18 PM
>>Subject: [rabbit-semi] rcm6000 programming
>> 
>>Hi all
>> 
>>Does anybody knows the schematic (pin connections, max3232 connection )  in order to make a programming cable, for program an RCM (5xxx,6xxx) mini core using a legacy pc com port ?
>> 
>>Thank you in advance
>> 
>>
>
Ok Steve
 
I will make it as you propose
 
Thanks for all

From: Steve Trigero
To: "r..."
Sent: Thursday, February 23, 2012 7:36 PM
Subject: Re: [rabbit-semi] rcm6000 programming
 
No. Because when the PC enables the serial port it will put the

rabbit in programming mode. The SMODE can't be connected to any

pin in the serial connector.

From: Theodore Politis
>To: "r..."
>Sent: Thursday, February 23, 2012 6:54 AM
>Subject: Re: [rabbit-semi] rcm6000 programming

>Thank you very much Steve.

>I will try it today .
>The 49 pin (SMODE) can be connected like this ? 9-pin Dsub             232 Transceiver                         R6K Connector
>----------                 -----------------                        ---------------
>6 - DSR   ------>  R_IN  --> R_OUT ----------->   49 (SMODE) )
>in order to let DC10 switch the rabbit to programming mode ?



>From: Steve Trigero
>To: "r..."
>Sent: Thursday, February 23, 2012 2:13 AM
>Subject: Re: [rabbit-semi] rcm6000 programming

>9-pin Dsub   232 Transceiver           R6K Connector
>----------        -----------------         ---------------
>2 - Rx   ------>  R_IN  --> R_OUT ----------->   50
>3 - Tx   <------  T_OUT <-- T_IN  <-----------   48
>4 - Status <----  T_OUT <-- T_IN  <-----------   47
>5 - Gnd  -------> GND
>         |
>         |       o
>         ----> -/ o--------------------------->  49 (SMODE)
>            Switch 1
>       (Close to put into programming mode)
>The RS-232 cable needs to be a full NULL Modem cable. 
>From: Theodore Politis
>>To: "r..."
>>Sent: Wednesday, February 22, 2012 1:18 PM
>>Subject: [rabbit-semi] rcm6000 programming
>> 
>>Hi all
>>
>>Does anybody knows the schematic (pin connections, max3232 connection )  in order to make a programming cable, for program an RCM (5xxx,6xxx) mini core using a legacy pc com port ?
>>
>>Thank you in advance
>>
Hi Steve
 
Finally i've make this thing to work
 
The connections are
 
PC                                      max3232                                           rabbit 6000
-----                                   ----------                                          -------------
RX --<----------------------|             |----<------------------------ TXA
TX ---------------------->--|             |---------------------------->-RXA
DTR--------------------->--|             |---------------------------->-/RESET_IN
DSR+DCD--<--------------|             |-----<------------------------STATUS
                                                                                                        SMODE tied to 3.3V thru a 10K pullup resistor
 
I'm wondering if, in the pcb we have a header in which when a connector is connected ties together the reset and the smode signals (after the rs232 transceiver),  this will work like the programming header in series 2xxx,3xxx ?
The problem is that in this connection we must reboot the module with smode connected to 3.3 v to see that is in programming mode.
You have the same behavior in your circuit?
 
Thank's

 
From: Theodore Politis
To: "r..."
Sent: Thursday, February 23, 2012 8:25 PM
Subject: Re: [rabbit-semi] rcm6000 programming
 
Ok Steve
 
I will make it as you propose
 
Thanks for all

From: Steve Trigero
To: "r..."
Sent: Thursday, February 23, 2012 7:36 PM
Subject: Re: [rabbit-semi] rcm6000 programming
 
No. Because when the PC enables the serial port it will put the

rabbit in programming mode. The SMODE can't be connected to any

pin in the serial connector.

From: Theodore Politis
>To: "r..."
>Sent: Thursday, February 23, 2012 6:54 AM
>Subject: Re: [rabbit-semi] rcm6000 programming

>Thank you very much Steve.

>I will try it today .
>The 49 pin (SMODE) can be connected like this ? 9-pin Dsub             232 Transceiver                         R6K Connector
>----------                 -----------------                        ---------------
>6 - DSR   ------>  R_IN  --> R_OUT ----------->   49 (SMODE) )
>in order to let DC10 switch the rabbit to programming mode ?



>From: Steve Trigero
>To: "r..."
>Sent: Thursday, February 23, 2012 2:13 AM
>Subject: Re: [rabbit-semi] rcm6000 programming

>9-pin Dsub   232 Transceiver           R6K Connector
>----------        -----------------         ---------------
>2 - Rx   ------>  R_IN  --> R_OUT ----------->   50
>3 - Tx   <------  T_OUT <-- T_IN  <-----------   48
>4 - Status <----  T_OUT <-- T_IN  <-----------   47
>5 - Gnd  -------> GND
>         |
>         |       o
>         ----> -/ o--------------------------->  49 (SMODE)
>            Switch 1
>       (Close to put into programming mode)
>The RS-232 cable needs to be a full NULL Modem cable. 
>From: Theodore Politis
>>To: "r..."
>>Sent: Wednesday, February 22, 2012 1:18 PM
>>Subject: [rabbit-semi] rcm6000 programming
>> 
>>Hi all
>>
>>Does anybody knows the schematic (pin connections, max3232 connection )  in order to make a programming cable, for program an RCM (5xxx,6xxx) mini core using a legacy pc com port ?
>>
>>Thank you in advance
>>
You don't need to reboot if you toggle the Reset line while SMODE is set.

>________________________________
> From: Theodore Politis
>To: "r..."
>Sent: Thursday, February 23, 2012 3:47 PM
>Subject: Re: [rabbit-semi] rcm6000 programming

>Hi Steve

>Finally i've make this thing to work

>The connections are

>PC                                      max3232                                           rabbit 6000
>-----                                   ----------                                          -------------
>RX --<----------------------|             |----<------------------------ TXA
>TX ---------------------->--|             |---------------------------->-RXA
>DTR--------------------->--|             |---------------------------->-/RESET_IN
>DSR+DCD--<--------------|             |-----<------------------------STATUS
>                                                                                                        SMODE tied to 3.3V thru a 10K pullup resistor

>I'm wondering if, in the pcb we have a header in which when a connector is connected ties together the reset and the smode signals (after the rs232 transceiver),  this will work like the programming header in series 2xxx,3xxx ?
>The problem is that in this connection we must reboot the module with smode connected to 3.3 v to see that is in programming mode.
>You have the same behavior in your circuit?

>Thank's
>

>From: Theodore Politis
>To: "r..."
>Sent: Thursday, February 23, 2012 8:25 PM
>Subject: Re: [rabbit-semi] rcm6000 programming

>Ok Steve

>I will make it as you propose

>Thanks for all
>From: Steve Trigero
>To: "r..."
>Sent: Thursday, February 23, 2012 7:36 PM
>Subject: Re: [rabbit-semi] rcm6000 programming

>No. Because when the PC enables the serial port it will put the
>
>rabbit in programming mode. The SMODE can't be connected to any
>
>pin in the serial connector.
>
>From: Theodore Politis
>>To: "r..."
>>Sent: Thursday, February 23, 2012 6:54 AM
>>Subject: Re: [rabbit-semi] rcm6000 programming
>> 
>>Thank you very much Steve.
>> 
>>I will try it today .
>>The 49 pin (SMODE) can be connected like this ? 9-pin Dsub             232 Transceiver                         R6K Connector
>>----------                 -----------------                        ---------------
>>6 - DSR   ------>  R_IN  --> R_OUT ----------->   49 (SMODE) )
>>in order to let DC10 switch the rabbit to programming mode ?
>> 
>> 
>> 
>>From: Steve Trigero
>>To: "r..."
>>Sent: Thursday, February 23, 2012 2:13 AM
>>Subject: Re: [rabbit-semi] rcm6000 programming
>> 
>>9-pin Dsub   232 Transceiver           R6K Connector
>>----------        -----------------         ---------------
>>2 - Rx   ------>  R_IN  --> R_OUT ----------->   50
>>3 - Tx   <------  T_OUT <-- T_IN  <-----------   48
>>4 - Status <----  T_OUT <-- T_IN  <-----------   47
>>5 - Gnd  -------> GND
>>         |
>>         |       o
>>         ----> -/ o--------------------------->  49 (SMODE)
>>            Switch 1
>>       (Close to put into programming mode)
>>The RS-232 cable needs to be a full NULL Modem cable. 
>>From: Theodore Politis
>>>To: "r..."
>>>Sent: Wednesday, February 22, 2012 1:18 PM
>>>Subject: [rabbit-semi] rcm6000 programming
>>>
>>>
>>> 
>>>Hi all
>>> 
>>>Does anybody knows the schematic (pin connections, max3232 connection )  in order to make a programming cable, for program an RCM (5xxx,6xxx) mini core using a legacy pc com port ?
>>> 
>>>Thank you in advance
>>> 
>>>
>>
Is there a way of doing a full reboot, i have the serial setup on a pcb for
if web update fails. but i find when i upload from the web interface. i
have to power cycle before the new firmware is loaded from flash to ram.

On 24 February 2012 16:03, Steve Trigero wrote:

> **
> You don't need to reboot if you toggle the Reset line while SMODE is set.
> ------------------------------
> *From:* Theodore Politis
> *To:* "r..."
> *Sent:* Thursday, February 23, 2012 3:47 PM
>
> *Subject:* Re: [rabbit-semi] rcm6000 programming
> Hi Steve
>
> Finally i've make this thing to work
>
> The connections are
>
> PC
> max3232 rabbit 6000
> -----
> ---------- -------------
> RX --<----------------------| |----<------------------------
> TXA
> TX ---------------------->--|
> |---------------------------->-RXA
> DTR--------------------->--|
> |---------------------------->-/RESET_IN
> DSR+DCD--<--------------| |-----<------------------------STATUS
>
> SMODE tied to 3.3V thru a 10K pullup resistor
>
> I'm wondering if, in the pcb we have a header in which when a connector is
> connected ties together the reset and the smode signals (after the rs232
> transceiver), this will work like the programming header in series
> 2xxx,3xxx ?
> The problem is that in this connection we must reboot the module
> with smode connected to 3.3 v to see that is in programming mode.
> You have the same behavior in your circuit?
>
> Thank's
> *From:* Theodore Politis
> *To:* "r..."
> *Sent:* Thursday, February 23, 2012 8:25 PM
> *Subject:* Re: [rabbit-semi] rcm6000 programming
> Ok Steve
>
> I will make it as you propose
>
> Thanks for all
>
> *From:* Steve Trigero
> *To:* "r..."
> *Sent:* Thursday, February 23, 2012 7:36 PM
> *Subject:* Re: [rabbit-semi] rcm6000 programming
> No. Because when the PC enables the serial port it will put the
> rabbit in programming mode. The SMODE can't be connected to any
> pin in the serial connector.
>
> *From:* Theodore Politis
> *To:* "r..."
> *Sent:* Thursday, February 23, 2012 6:54 AM
> *Subject:* Re: [rabbit-semi] rcm6000 programming
> Thank you very much Steve.
>
> I will try it today .
> The 49 pin (SMODE) can be connected like this ?
> 9-pin Dsub 232 Transceiver R6K
> Connector
> ---------- -----------------
> ---------------
> 6 - DSR ------> R_IN --> R_OUT -----------> 49 (SMODE) )
> in order to let DC10 switch the rabbit to programming mode ?
>
> *From:* Steve Trigero
> *To:* "r..."
> *Sent:* Thursday, February 23, 2012 2:13 AM
> *Subject:* Re: [rabbit-semi] rcm6000 programming
>
> 9-pin Dsub 232 Transceiver R6K Connector
> ---------- ----------------- ---------------
> 2 - Rx ------> R_IN --> R_OUT -----------> 50
> 3 - Tx <------ T_OUT <-- T_IN <----------- 48
> 4 - Status <---- T_OUT <-- T_IN <----------- 47
> 5 - Gnd -------> GND
> |
> | o
> ----> -/ o---------------------------> 49 (SMODE)
> Switch 1
> (Close to put into programming mode)
> The RS-232 cable needs to be a full NULL Modem cable.
>
> *From:* Theodore Politis
> *To:* "r..."
> *Sent:* Wednesday, February 22, 2012 1:18 PM
> *Subject:* [rabbit-semi] rcm6000 programming
> Hi all
>
> Does anybody knows the schematic (pin connections, max3232 connection )
> in order to make a programming cable, for program an RCM (5xxx,6xxx) mini
> core using a legacy pc com port ?
>
> Thank you in advance
>
>
>
Have you tried forceSoftReset()?

Alternatively, you can probably get a "harder" reset using the virtual watchdog (max 15 sec hit) and locking yourself intentionally in a closed loop.

--- In r..., Phil D wrote:
>
> Is there a way of doing a full reboot, i have the serial setup on a pcb for
> if web update fails. but i find when i upload from the web interface. i
> have to power cycle before the new firmware is loaded from flash to ram.
>

Hey All,

Just one BIG precaution on DTR to the RCM6000 (or any, for that matter).
We used an FTDI USB/serial to acheive the same thing + a jumper on SMODE to switch between prog/run modes, but this applies to any permanent (on-board) interface (as opposed to a removable prog cable).

- In prog mode, DTR must be connected to the CPU reset-in, as Dynamic-C needs to reset the processor.

- In "run" mode, there are two problems:

1. By default, DTR is cycled by the FTDI driver on connection, which means your processor is reset whenever you plug in to a PC. The solution (posted by FTDI) is to change the port setting via Device Manager to un-check "Serial Enumerator" and check "Disable Modem Ctrl at startup". However, if someone forgets to do this, you will get an unwanted reset on connection.

2. Terminal programs such as Hyperterminal and Putty always assert DTR, even if you select NO flow control. This holds the CPU in a permanent reset state.