41CL How-to's (using embedded serial port) [2017-12-09]
|
12-09-2017, 02:24 PM
(This post was last modified: 01-15-2021 05:47 AM by Sylvain Cote.)
Post: #1
|
|||
|
|||
41CL How-to's (using embedded serial port) [2017-12-09]
41CL How-to's (using embedded serial port) Table of Content
MMU configuration for this how-to's This article uses two modules: 41CL Extreme Functions (YFNX) and 41CL Update Functions (YUPS).
execute the following functions: Code: MMUDIS // disable 41CL memory management unit Code: "UPDAT XX" // 41CL Update ROM with revision in XX Copy plug-in ROM to 41CL RAM page This example will copy the time module in port 5 to physical RAM page 0x820.
execute the following functions: Code: "5-1>820" // ROM module location: 4K word from logical page 5 bank 1 >to> RAM physical address 0x820000 Code: "COPYING" Note: you must replace the address-bank from the above example ("5-1") by your specific information based on your module location and type. Copy ROM image from Flash/RAM page to computer file This example saves the physical RAM page at address 0x820 in a computer file.
Connect your 41CL to your computer Physically connect your 41CL to your computer using the serial cable. execute the following functions: Code: MMUEN // just in case, sometimes connecting/disconnecting the serial cable to/from 41CL has the effect of disabling the MMU Start computer program to receive upcoming ROM image. To do this step, you have to start a command line and need to be in the folder were the clupdate program is located. Replace the FILENAME.ROM tag in the following step, by your specific filename. Replace the SERIAL_PORT tag in the following step, by its specific serial port:
Code: java -jar clupdate-1.1.0.jar --download FILENAME.ROM SERIAL_PORT 4800 [RETURN] Code: HH:MM:SS --upload [fileName: FILENAME.ROM] [portName: SERIAL_PORT] [baudRate: 4800] Warning: you now have 60 seconds to do the next steps before getting a timeout. Export RAM/Flash page to serial port execute the following functions: Code: "820000-0FFF" // physical address 0x820000 of length 0x0FFF in RAM Code: "SENDING" Code: HH:MM:SS Receiving 710 2186 2186 2186 924 = 8192 bytes received Note: this RAM page currently contains the time module copied in the previous steps. Validate integrity of the saved file execute the following functions: Code: "820" // calculating CRC of the copied module Code: "9931943C" // value should match the above value Note: this RAM page currently contains the time module copied in the previous steps. 41CL How-to's (using embedded serial port) Have Fun! 8-) Sylvain |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)