background image

 

CONFIDENTIAL

                    DM816x RTC User Guide v1.1 

   
 
                                                                                                                                                                                                                                                             

___________________________________________________________________________________________ 

                                                                                                                                                                 

Z3 Technology, LLC 

 100 N. 8th St., Suite 250 

 Lincoln, NE 68508 USA 

 +1.402.323.0702 

   

 

 
 
 
 
 
 
 
 

RTC Firmware for the DM81xx-MOD Family

 

 

 

 

DOC-USR-0016-02 

September 6, 2013 

Summary of Contents for DM8148

Page 1: ...___________________________________________________________________________________________ Z3 Technology LLC 100 N 8th St Suite 250 Lincoln NE 68508 USA 1 402 323 0702 1 RTC Firmware for the DM81xx MOD Family DOC USR 0016 02 September 6 2013 ...

Page 2: ..._________________________________________________________________ Z3 Technology LLC 100 N 8th St Suite 250 Lincoln NE 68508 USA 1 402 323 0702 2 Revision History Version Date Change Note Author 1 0 3 7 12 Initial version BM 1 1 9 6 13 Updated programming procedure RC ...

Page 3: ...are Programmed Successfully Quick Test 10 5 Verifying the Firmware Programmed Successfully Running the Linux Apps 11 5 1 Building the software 11 5 2 Running the software 12 6 Inserting the Battery 13 7 Programming Other Modules 13 LIST OF FIGURES Figure 1 TI MSP 430 Debugger 5 Figure 2 Elprotronic Download Page MSP430 Portion 5 Figure 3 Connecting the Debugger to the Z3 DM8168 APP 02 6 Figure 4 E...

Page 4: ... RTC firmware controls the power drain on the RTC battery Without the proper RTC firmware loaded the RTC battery will be drained very quickly in a matter of minutes Do not insert a battery in the battery holder before the RTC firmware is loaded or the battery will be lost Please wait until after the RTC software is installed before inserting the battery in the battery holder The battery should las...

Page 5: ...p fet430uif To load the RTC firmware perform the following steps 3 1 Installing the programming software 1 Download the Elprotronic FET Pro430 Lite programming software This can be found at the following site http www elprotronic com download html Find the Flash Programmers for TI s MSP430 MCU uses TI s FET Adapter at the very bottom of the page and click on the link that says FREE 2 Install the d...

Page 6: ...is running normally 6 Connect the USB end of the MSP430 debugger to the PC with the Elprotronic Software installed Once you do so the power light on the MSP430 debugger should turn green 3 3 Running the programming software 7 Make a directory in the C drive of your PC called Z3 MSP430 8 Copy the MSP_DM81xx_v2 2 txt file received from Z3 into this directory 9 Run the Elprotronic FET Pro430 Lite sof...

Page 7: ..._______________________________________________ Z3 Technology LLC 100 N 8th St Suite 250 Lincoln NE 68508 USA 1 402 323 0702 7 Figure 4 Elprotronic Main Menu 1 Click here and open MSP_DM81xx_v2 2 txt 2 Select Group MSP430F2xx and then MSP430F2012 3 Select Setup Connection Device Reset ...

Page 8: ...etup Connection Device Reset This should open the Connection Reset Options menu 13 Select Spy Bi Wire as the method of Communication with the Target Device 14 Under Final Target Device action select Reset and start the application program 15 Ensure COM Port is set to USB à Automatic 16 Click Ok Figure 5 Elprotronic Target Connection Reset Options Menu 1 Select Spy Bi Wire 2 Select Reset and start ...

Page 9: ... 17 In the main menu click on the AUTO PROG key The Status should change to Active and the software should automatically go through the Verify Security Fuse Erase Flash Write Flash and Verify Flash stages Figure 6 shows what the screen should look like after a successful program 17 The Firmware should now be programmed Figure 6 Elprotronic Main Menu After Successful Programming Click here to start...

Page 10: ... the space bar before u boot ends so that you are in the u boot prompt 3 Within the u boot prompt type Z3 DM8168 MOD i2c md 42 0 20 You should see a row of register values followed by a row of dd s Figure 7 Note that the value at 0000 will likely be different from 01 4 Again type Z3 DM8168 MOD i2c md 42 0 20 You should see the same thing except the very first value at 0000 should gradually increme...

Page 11: ... below detail where to copy these files and how to build and use it 5 1 Building the software 1 Go to the project directory and type source z3 env make sure z3 env and z3apps are in this directory ls note actual contents may be slightly different build tools factory images makeall sh sysapps u boot z3 env dvr rdk filesys kernels Makefile toolchain z3apps source z3 env 2 Go to the z3apps app direct...

Page 12: ...32 44 Date YYYY MM DD 2013 08 27 Time HH MM SS 08 32 45 You should see the version of the RTC software and date time each time you press enter Press Ctl C to exit 11 Type usr local bin hwclock2 r to print the time and date from the RTC usr local bin hwclock2 r Date YYYY MM DD 2013 08 27 Time HH MM SS 08 34 00 12 Type usr local bin hwclock2 set date m d y h m s to set the RTC time date usr local bi...

Page 13: ...rmly snapped in place It is a common error to not snap the 5th connector into place When this happens it will seem like the MOD is operating correctly in that it might boot up but then unexpected behavior can happen later It is therefore a good idea to make doubly sure that the MOD and APP boards are firmly connected at this stage you should hear a slight snap when that fifth connector is firmly i...

Reviews: