Downloading firmware using Memcp

https//www.racom.eu/eng/support/download/down-memcp.html

Print version

3. Downloading firmware using Memcp

Detailed description, valid from version 616.

Recommended organisation of directories which suits batch files from version 674:

  morse
     fkl
        cb10.fkl
        ce10.fkl
        ...
     memcp  .exe
     setr   .exe
     starter.exe
     mr900_cbl_le.bat
     ...

*.fkl files are used for downloading. Only modules ma10, mw10 are in version *.rfr.

3.1. Downloading from the PC to MR400 (memcp)

  • Source = PC

  • Destination = MR400, MR900, MR300, MR160, MC100, MG100

  • Modules D, E, G, H,…., B

Use some of the prepared batch files and where necessary add other parameters. The required CU configuration is similar to the configuration required for sending a “!” command to the respective CU.

  • locally over the service lead
    – use the batch file

    mr900_cbl_le.bat

    which starts utility memcp.exe with parameters

    starter memcp -nt5000 -nr20 -as8 -pS -af.\fkl\ce10.fkl -pb115200 %1 %2
  • via the local CU and through the MORSE network to the CU with address 690F5502

    – use batch file (net = network) and add two parameters:

    mr900_net_le.bat -pb115200 -da690F5502

    which starts utility memcp.exe with parameters

    starter memcp -nt5000 -nr20 -as8 -af.\fkl\ce10.fkl %1 %2 %3 
    -pb115200 -da690F5502
  • locally via the Ethernet connection
    – use batch file and add the IP address of ETH channel in CU

    mr900_net_le.bat -pIP192.168.0.9

    which starts utility memcp.exe with parameters

    starter memcp -nt5000 -nr20 -as8 -af.\fkl\ce10.fkl %1 %2 %3 
    -pIP192.168.0.68
  • by Ethernet via the locally CU and next through the MORSE network to 690F5503
    – use batch file and add the IP address of ETH channel in the CU and the remote MORSE address. The MAS configuration is necessary.

    mr900_net_le.bat -pIP192.168.0.9 -da690F5503

    which starts utility memcp.exe with parameters

    starter memcp -nt5000 -nr20 -as8 -af.\fkl\ce10.fkl %1 %2 %3 
    -pIP192.168.0.68 -da690F5503

Meaning of the utilities and parameters used

starter

program starter ensures that Windows applications contained in file.bat are called in succession if there are more of them than in
 mr25_net_le_et.bat

memcp

calling program memcp, which performs transmission of the fw module by individual packets

-nt5000 -nr20

timeout and repeat for transmission through the network

-as8

the number of 128 byte sectors transmitted in a single packet. If connection conditions are poor select a small number, e.g. x=2, and use x=8 in the case of very good conditions and for transmission over the service lead

-pS

The B-saver module is active in the destination CU. If the parameter is left out then the main module is in operation during transmission, e.g. E (in MR25 this is only possible for transmission of modules B, A, W).

-pb115200

the transfer speed over the service lead. The parameter activates transmission via SCC

-pIP192.168.0.9

IP address of the ETH channel of the CU to which the PC is connected via Ethernet. The parameter activates transmission via ETH

-af.\fkl\ce10.fkl

calling the source file ce10.fkl. When downloading module B cb10.fkl particular care should be taken. If a fault occurs on downloading module B it is necessary to send the CU to Racom to have new sw installed. In most cases it is not necessary to download a new module B, however, always check the number of its version before downloading software to the real radio network.

%1 %2 %3

location for possible additional parameters

-da690F5502

address of the destination CU; this is used if a locally connected CU is only an intermediary for sending fw packets over the MORSE network to another CU. This is conditional upon routing from the PC to the destination CU being functional. Test using an “exclamation mark” command

Memcp after finishing the download

Fig. 3.1: Memcp after finishing the download

Downloading ce10.fkl over the service lead takes about 60 sec, via Ethernet about 6sec, followed by 6 sec to overwrite transferred data from D-RAM to S-RAM, and finally a reset.

3.2. Downloading from the PC to MR25 (memcp + B-saver)

  • Source = PC

  • Destination = MR25, MR25ET, MCM302

  • Modules D, E, G, H,…., B, A, W

MR25 has a different memory configuration, which is why different procedures are used than for MR400.

Here we use a pair of parameters -ar -aE, which causes a direct entry to flash memory.

Parameter -pS switches the station to module B, which can transmit all other modules, however, only locally.

By ignoring -pS the station remains in the main module (E), it can only transmit modules B,A,W. This transmission with parameter -da is also possible through the MORSE network to another CU.

Use of modules A,W is described in chapter Download using itl.

  • locally over the service lead
    – use the batch file

    mr25_cbl_le.bat

    which starts utility memcp.exe with parameters

    starter memcp -nt5000 -nr20 -ar -aE -as8 -pS -af.\fkl\me10.fkl -pb115200 %1 %2

    for transmission of module B use the batch file

    mr25_cbl_lb.bat
  • via the local CU and through the MORSE network to the CU with address 690F5502, only modules B, A, W
    During transmission of module B, A, W the main module is in operation (-pS missing), the local version or remote version with parameter -da is therefore possible

    – use batch file (net = network) and add two parameters:

    mr25_net_lb.bat -pb19200 -da690F5502

    which starts utility memcp.exe with parameters

    starter memcp -nt5000 -nr20 -as8 -af.\fkl\mb10.fkl %1 %2 %3 
    -pb19200 -da690F5502

The meaning of parameters is the same as in the previous paragraph.

When downloading ma10.rfr or mw10.rfr there are the same possibilities as in the case when downloading mb10.fkl. We can use -pS, and then download locally using B-saver or omit parameter -pS, and then work using the main module with the possibility of using remote access:

    memcp -af.\fkl\ma10.rfr -as8 -pb115200 -ar -aE -pS              or
    memcp -af.\fkl\ma10.rfr -as8 -pb115200 -ar -aE     -da690F5502

Batch files:

In the sw package, e.g. mswin-i486-625-morse.zip there is a set of files prepared for downloading. Here we present the names and content of files determined for working with the  B-saver in MR25:

   mr25_cbl_le.bat
   mr25_cbl_ld.bat
   mr25_cbl_lg.bat
   mr25_cbl_lh.bat
   mr25_cbl_la.bat
   mr25_cbl_lb.bat
   mr25_cbl_lb_up.bat

memcp.exe -nt5000 -nr20 -ar -aE -as8 -pS -af.\fkl\me10.fkl -pb115200 %1 %2 %3
memcp.exe -nt5000 -nr20 -ar -aE -as8 -pS -af.\fkl\md10.fkl -pb115200 %1 %2 %3
memcp.exe -nt5000 -nr20 -ar -aE -as8 -pS -af.\fkl\mg10.fkl -pb115200 %1 %2 %3
memcp.exe -nt5000 -nr20 -ar -aE -as8 -pS -af.\fkl\mh10.fkl -pb115200 %1 %2 %3
memcp.exe -nt5000 -nr20 -ar -aE -as8 -pS -af.\fkl\ma10.rfr -pb115200 %1 %2 %3
memcp.exe -nt5000 -nr20 -ar -aE -as4 -pS -af.\fkl\mb10.fkl -pb19200  %1 %2 %3
memcp.exe -nt5000 -nr20 -ar -aE -as8     -af.\fkl\mb10.fkl -pb19200  %1 %2 %3

We see that the batches contain parameters -ar -aE for direct entry to flash memory and parameter -pS, which activates module B. Transmission runs over the service lead. In the last batch -pS is omitted, which is why module E will be in operation (used if the present module B was older than sw616).

In the macro it is possible to change a parameter by editing or add a parameter to the command line. After transferring the name of the macro to the command line (Ctrl + Enter) it is possible to add the missing parameter. If the parameter is already contained in the macro then the connected parameter replaces its value. For example:

mr25_cbl_le.bat -as4

will transmit module E using shorter packets.

Downloading from the PC to MR25ET and MCM302 (memcp + loader)

These CU use me10.fkl series modules such as MR25, however, they come with D-RAM and therefore in addition they permit transmission over the network. The above mentioned procedures for MR25 for the transmission of modules C, D, E, G, H,… are growing in number. They are used in a similar way as in the case of MR400, in place of batch file mr900_net_le.bat we use mr25_net_le_et.bat .

For the purpose of downloading module C-loader supplements modules B, A, W, E, D, G, H in MR25ET. Module B-saver has been modified from version 616, the old module B needs to be updated with the new one using mr25_cbl_lb_up.bat.

Downloading is done in two steps. First download the short C-loader, and with the next command download the main module using this loader.

  • locally over the service lead
    the batch file with parameter

    mr25_net_le_et.bat -pb115200

    starts the memcp.exe utility with parameters

        memcp -af.\fkl\mc10.fkl -as8 -pb115200
        memcp -af.\fkl\me10.fkl -as8 -pb115200
  • via the local CU and through the MORSE network to the CU with address 690F5502

    mr25_net_le_et.bat -pb115200 -da690F5502
        memcp -af.\fkl\mc10.fkl -as8 -pb115200 -da690F5502
        memcp -af.\fkl\me10.fkl -as8 -pb115200 -da690F5502
  • by Ethernet

    mr25_net_le_et.bat -pIP192.168.0.9
        memcp -af.\fkl\mc10.fkl -as8 -pIP192.168.0.9
        memcp -af.\fkl\me10.fkl -as8 -pIP192.168.0.9
  • by Ethernet via the locally CU and next through the MORSE network to 690F5503:

    mr25_net_le_et.bat -pIP192.168.0.9 -da690F5503
        memcp -af.\fkl\mc10.fkl -as8 -pIP192.168.0.9 -da690F5503
        memcp -af.\fkl\me10.fkl -as8 -pIP192.168.0.9 -da690F5503

Downloading of the C-loader takes approx. 2sec, downloading of me10 takes about 45 sec over the service lead, via Ethernet about 6sec, followed by 6 sec to overwrite the transferred data from the D-RAM to Flash, and finally reset.

[Note]Note

Replacing new sw with old can be more difficult. The key to it is downloading the old (519) module B using the new (640) memcp.exe and then using the old (585) swl.exe download the old main module (E 585).

Other notes on firmware options are given in chapter Chapter 5, Notes

©  2024 RACOM s.r.o. All Rights Reserved.