Home
SS-V850 In-Circuit Emulation System
Contents
1. Clicking Yes in response to the error message exits the program Check the power supply connection and polarity setting Check the parallel cable connection and settings If communication is still unsuccessful uninstall NEC_Server in My computer Control Panel using the Remove Software command in your Windows operating system Reinstall the software Restart the program If you still need help call technical support at 1 800 366 9782 57 SS V850 System User s Manual IN EC For additional information visit our web site at www necel com call 1 800 366 9782 or fax 1 800 729 9288 NEC Electronics Inc The information in this document is current as of July 2001 The information is subject to change without notice For actual design in refer to the latest publications of NEC s data sheets or data books etc for the most up to date specifications of NEC semiconductor products Not all products and or types are available in every country Please check with an NEC sales representative for availability and additional information No part of this document may be copied or reproduced in any form or by any means without prior written consent of NEC NEC assumes no responsibility for any errors that may appear in this document NEC does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of NEC semiconductor products listed in this document or any other lia
2. socket or connected to the DB9 connector the program sends an error message DLL error Error setting up Hash programming code message Couldnt init Hash device Click OK to exit the program If a flash device is inserted in the clamshell socket or connected to the DB9 connector check for proper pin orientation or signal connection Since parameters for initialization of the flash device are taken from the PRC file it may be possible that the device does not match the PRC file specifications and cannot be initialized with those parameters Check that the specified PRC file matches the device in the socket or connected to the DB9 connector 8 3 4 Flash Device Detection If the device can be initialized but the silicon signature in the device does not match the one specified in the PRC file you receive an error message stating for example that the device detected a 70F3025A but the PRC file specified the uPD78F9177 In this case click YES to return to the previous dialog box where you can select another PRC file Otherwise click NO to exit the FLASHDLL program DLL error PRE tle EX BSO LEE necbox orl fF pre doesnt match device Device Signature info name DOF 30 58 extension FB function ZF SlG 10 FE YF FF WF SF C4 ar BO 46 B3 BO se BS C1 20 Retry 51 SS V850 System User s Manual IN EC 8 4 FLASHDLL EXE Functions 8 4 1 FLASHDLL Program Once the FLASHDLL program verifies communication with the flash
3. OK 850e elf gdb Properties C SNECELSNE CEOS Demo Norral window 31 SS V850 System User s Manual 6 2 2 Creating A Shortcut for the MULTI Debugger 1 From Windows Explorer locate C GREEN multi exe 2 Right click multi exe 3 Click Send To and then click Desktop create shortcut 1 create shortcut he 4 Right click the newly created icon MULTI 32 MEC SS V850 System User s Manual 5 Select Properties 6 Specify the project path in the Start in field and then click OK MULTI Properties 33 SS V850 System User s Manual Mi EC 7 OPERATION 7 1 GDB Debugger Operation This section explains how to operate the SS V850 emulator system 1 From your desktop double click the GDB icon youle elf gdb 2 Inthe Source window click File and then click Open 34 MEC 3 4 SS V850 System User s Manual In the Load New Executable dialog box select an out file and then click Open Load D ew Executable DELFUMC BAR el builds bak al DELFUNE Eidemo out 3 a DBLFUNC GNL Soe 3 dblfune isa Mec chg al dblfunc o el VESDE ELF GD dblfunc faa VE50LINK BAK Filename demo Files of ipe AI Files 3 When the source code is visible in the Source window click the Run icon on tool bar dblfunc c Source Window De Bun View ane RENE X Un da iF in ay e We En Deia 389 sl al d A doubly linked list is a set of ordered el
4. OZ Karale R Sein 22 5 2 1 Windows 95 98 Driver EE 22 222 MS RE EE 22 DD O MI ds 22 07 SO Ware Sea 23 BEE EE 23 osl T Selecind COMPONEN EE 24 6 1 2 Installing the Red Hat GNU Debugger ue 26 6 2 Testing System Operation BEE 28 6 21 Cheallng A SHONCULTOR GDB ssis EA a Eo 30 6 2 1 Creating A Shortcut for MULTI Debugoger ek 30 SS V850 System User s Manual IN EC T OPCION co 34 Ta GOB DA os 34 LN ee ee 40 8 Flash PFOGra MM Oca 45 EE 45 02 ERR a 46 62 1 ODO Clamshell Socke EE 46 022 WEIOMEO lena 46 O20 FEASHDLE EA OS 47 8 2 4 Installation of FLASHDLL EXE Program ooccoconcccccnconoonconooncononnconoonconoonnononncononnconcnncnnono 47 0 9 EXCCUUON OF FLASADLELEXE PO Mision 47 8 3 1 SClECUNO PRO Parameter TE 49 8 3 2 Verifying Hardware Capabilities Against PRC File Reourements 49 8 3 3 Check for Flash Device Communtcaton 51 SE E E ERR le RT Ee EE 51 64 FLAS ADE EXE FUNCIONS eo ene neo eo 92 GAl C FLASAOLEPOO A mesa 52 8 4 2 Silicon Signature Check Operation 92 843 Bank Check Opera isa 93 8 4 4 Erase Operation isidro 53 8 4 5 Write and Internal Verify Dperaton ENEE 53 8 4 6 Verify Against File Operaton 54 041 Complete Program ero 94 8 4 8 Programming of a New DEYICS a e o 54 8 4 9 Programming a Different Device occoccnicnicnccnccnconoonoonconconoonconconoonconconnnnnrnconnnn nar nonos 55 0410 EXHING Me PLASADEL Prog aiM rasan a N 55 Y TROUDIESNOOLNG id 56 IN EC SS V850 System User s Manua
5. and other families depending on the emulation board used and the characteristics of the device to be programmed The circuitry and connectors mounted on the emulation board support flash programming of V850 devices corresponding to that particular board For some devices the Vpp and VPP programming voltages may be different For example the uPD70F3025A in the V853A subfamily requires Vop at 5 Voc and Vrr at 10 Voc the uPD70F3017A in the V850 SA1 subfamily requires Voo at 3 3 Voc and Vpp at 7 6 Voc The SS V853A EM emulation board supports Voo at 5 Voc and Vrr at 10 Voc and is suitable for programming the uPD70F3025A and other V853A devices requiring these voltages The board is also suitable for programming of 8 bit KO and KOS microcontroller families that require these voltages However the board does not program the uPD70F3017A microcontroller which requires Von at 3 3 Voc and VPP at 7 6 Voc The SS V850SA1 EM emulation board for V850 SA1 microcontrollers supports Voo at 3 3 Voc and Vpp at 7 6 Voc and is suitable for programming of the uPD70F3017 and other V850 SA1 devices requiring these voltages The board does not program the uPD7OF3025A or other devices requiring Voo at 5 Voc and or Vpp at 10 Voc Table 10 lists supported devices grouped by Von and VPP programming voltages and emulation board Table 10 Programming Voltages Emulation Board SS V853A EM SS V850SA1 EM V850 devices supported uPD 0F3003 uPD 0F3017A uPD7OF3003A uPD70F
6. device and opens the PRC file it displays the Flash Programming dialog box where you can choose to perform a silicon signature check SSig Chk blank check Blank Chk Erase Write or Verify operation individually or in sequence Program Sequence Flash Programming Filename Browse Device Re 5519 Chk Change Device Type 8 4 2 Silicon Signature Check Operation When you click SSig Chk the flash programmer checks the signature of the device against the specified parameter file and then displays the part number in the Device box The Status box briefly shows Ssig Checking while the operation is in process If the device signature does not match the parameter file the program displays an error message and the Device box is blank 52 IN EC SS V850 System User s Manual 8 4 3 Blank Check Operation 1 To perform a blank check on the device click Blank Chk 2 The Status box displays Blank checking 3 Ifthe device is blank the Status box displays Blank 4 Ifthe device is not blank the Status box displays Device is not blank 8 4 4 Erase Operation 1 To erase the entire device click Erase 2 Throughout the operation the Status box shows Erasing 3 When the device is erased the Status box displays Erased 4 Ifan error occurs during the erase operation the program sends a message indicating the type of error and the Status box displays Erase failed 8 4 5 Write and Int
7. flashes disconnect the power supply and A it with one that is 5 Voc Turn on the S1 power switch and wait for the green light to indicate that power is on and the system is operational 12 IN EC SS V850 System User s Manual 3 3 U30 Settings The standard oscillator on SS V850 MC supplies 6 667 MHz to the CPU Typically the on chip phase locked loop PLL multiplies this clock to produce the main system frequency of 33 33 MHz To use a nonstandard frequency up to 66 67 MHz install an alternate clock oscillator and then select the clock type and frequency as described in Section 3 5 Software Settings Table 4 U30 Settings sama rome CN Alternate clock U30 Use a half size clock oscillator DigiKey part number CTX oscillator nnr ND where nnn clock frequency Use caution when selecting the frequency of the alternate clock oscillator and the settings for the CKSEL and PLLSEL inputs to the emulation CPU 3 4 Host Computer The SS V850 communicates with an IBM compatible host computer through a standard bidirectional parallel port Connect the DB 25 male to male straight through cable to J2 on the SS V850 and to LPT1 on the computer 3 5 Software Settings SS V850 settings that affect hardware functionality are defined upon launching of the LV8HW INI initialization file located in the working directory from where the debugger is launched After software installation the LV8HW INI file resides in NECEL NECBox but you
8. future invocation Look ir E Debug a ce File name t d Files of type DLL s D dll sl Cancel A The program then attempts to communicate with the SS V850 system If communication is successful the program asks you to specify a parameter file If communication is unsuccessful an error occurs LY8 ERROR Error calling InitL S Not communicating with L S Exit Prograrn Click Yes to terminate the program Check the power connections and verify that the SS V850 system is connected properly to your computer before attempting to restart the program 48 IN EC SS V850 System User s Manual 8 3 1 Selecting the Parameter File After the system loads the LV8HW DLL file the program prompts you to specify the PRC parameter file that contains the characteristics of the device to be programmed Double click the file name to open it for the first time Otherwise click Open to open the last PRC file loaded Dpen Lock mr 3 Debug el 7891 36 pre Filename 7020253 pre Files ot type PRC files F pre Cancel 8 3 2 Verifying Hardware Capabilities Against PRC File Requirements After you select the parameter file the FLASHDLL program checks the Vpop and VPP values specified in the parameter file for the selected device against the Von and Ver voltages for the emulation board being used If the Von voltage of the board does not match the device specifications in the parameter f
9. port NEC only use 11 SS V850 System User s Manual IN EC 3 2 JP1 Settings A power supply polarity detection circuit on the SS V850 causes the red LED to flash when you connect a power supply with the wrong polarity The over voltage detection circuit causes the yellow LED to flash if you connect a power supply with higher than 5 Voc power Figure 7 Power Supply Polarity and Over voltage Detection Circuits Reverse Polarity Detect 0 EE Red Light Flashes When Reverse Polarity Detected High Voltage Detect Flashina Red Yellow Light Flashes When High Voltage Detected GND Flashing Yellow For Center Positive Supply Connect 1 3 2 4 For Center Negative Supply Connect 3 5 4 6 GND GND Table 3 JP1 Settings CCOO Power supply Keep power switch Keep power switch S1 in off positon in Keep power switch S1 in off positon position Move jumper block JP1 to select desired power supply polarity _ jumper block Move jumper block JP1 to select desired power supply polarity _ to select desired power supply polarity Connect JP1 1 3 and 2 4 to select center positive A most power supplies in the U S A Connect JP1 3 5 and 4 6 to select center negative Pa most power supplies in wee Connect the power supply to the J1 power jack the power Connect the power supply to the J1 power jack to the J1 power jack If the red LED flashes disconnect the power A and set JP1 to the reverse A If the A LED
10. should copy the file to a working directory The LV8HW INI file is an ASCII file divided into sections with headings specified within brackets Currently only the Clock section is supported Within each section individual settings contain a parameter an equal sign and a value as shown in Figure 8 Figure 8 Example LV8HW INI File Clock ClockSource CLK 6MHZ ClockDivider 1 ClockSelect PLLX5 13 SS V850 System User s Manual IN EC 3 6 Clock Settings Three different settings affect clock rate the clock source setting the external clock divider setting and the clock selection settings of the CKSEL and PLLSEL inputs to the emulation CPU 3 6 1 Clock Source The SS V850 uses one of three clock sources the standard 6 667 MHz system oscillator the user installed alternate clock oscillator or a target supplied clock to the X1 terminal of the probe The ClockSource parameter is specified in the Clock section of the LV8HW INI file Table 5 ClockSource Settings ClockSource CLK 6MHZ Standard system 6 667 MHz oscillator default ClockSource CLK_ ALT Alternate oscillator installed in U30 ClockSource CLK_TX1 Supplied by target at X1 terminal of the probe The CLK_TX1 setting requires the clock source from the target system to be a driven clock rather than a crystal capacitor circuit connected to the X1 and X2 terminal because the SS V850 system does not drive the X2 terminal NOTE If there is no driving cl
11. 3040 uPD70F3025A uPD 0F3102 uPD70F3102A uPD70F3107 uPD78F3102A Other devices supported KOS family uPD78F9xxx KO family uPD78FOxxx 45 SS V850 System User s Manual IN EC 8 2 Flash Device The SS V850 system has an on board clamshell socket for loose devices and a DB 9 connector for off board programming of devices Off board devices may be in the target system or in a flash programming adapter such as the PA 80GG 8 2 1 On board Clamshell Socket Flash devices may be inserted or removed from the on board clamshell socket while power is applied to the SS V850 The socket has no power unless a flash programming operation is in progress 1 To use the on board clamshell socket lift its latch and insert the flash device 2 Orient pin 1 of the flash device with the pin 1 mark on the emulation board which is along the edge of the socket closest to the edge of the emulation board and at the left side of that edge 3 Close the latch on the clamshell socket and begin flash programming 8 2 2 DB9 Connector The DB9 connector serves as an interface to an off board device for three wire serial UO programming VPP pulses 0 e To use the DB9 connector to program devices in a flash programming adapter first ensure that the adapter is wired for the target device to be flash programmed Refer to the user s manual for your chosen adapter and then consult NEC technical support about proper wiring e To use the DB9 connector to p
12. SS V850 system is an evaluation copy To purchase an official copy please contact Green Hills Software directly 1 Select GHS debugger and then click NEXT Select Components 2 If the MULTI debugger is not installed select Don t continue and click NEXT to exit the setup Install the MULTI debugger and then restart the installation If MULTI is installed select Continue and then click NEXT Select Components Gg sa EE Za bg Z a dl Ss a se DS sl e Tree e EMA RG VI d pet 24 IN EC SS V850 System User s Manual 4 Specify the path where the MULTI debugger resides Click NEXT to continue or Browse to specify a different path Set path for Multi debugger 5 Click YES to accept the modified autoexec bat or NO to return to the previous box 25 SS V850 System User s Manual Mil EC 6 Click Finish to complete installation and restart your computer Setup Complete 6 1 2 Installing the Red Hat GNU Debugger 1 Select GDB debugger and then click NEXT Select Components wa KSE E er S Sa RE la OR SN ba Dn ee E tia a 26 IN EC SS V850 System User s Manual 2 Click NEXT to continue or Browse to specify a different path Choose Destination Location 3 Click YES to accept the modification to autoexec bat or NO to return to the previous box 4 Click Finish to complete the installation and restart your computer S
13. The signature of the device inserted in the clamshell socket or connected to the DB9 connector is checked before every operation to guard against accidental programming of the wrong device If you wish to program a device other than the one specified in the current PRC file click Change Device Type and select a PRC file to match the new device 8 4 10 Exiting the FLASHDLL Program To exit the FLASHDLL program click OK 55 SS V850 System User s Manual Mi EC 9 TROUBLESHOOTING 9 1 Command Window Errors When NEC_ Server launches for the first time from any working directory the window appears gray 1 To open the command window click Q on the tool bar gt 71 id ra a y Ge lear M Bea sim r Mew OB ox 2 Quit the program 3 Relaunch NEC_ Server 4 The program then saves the configuration in NEC cfg in your local directory 56 MEC 9 2 SS V850 System User s Manual Communication Errors The following message indicates that communication with the SS V850 is not established 10 LY8 ERROR Error calling rta Mot communicating with LV Exit Program Clicking No in response to the error message generates another error message Failed to Connect to In Circuit Emulator Exitthe NEC_Server program Refer to Section 8 3 for information about how to troubleshoot programming errors
14. User s Manual NEC SS V850 In Circuit Emulation System OJuly 2001 NEC Electronics Inc Printed in USA All rights reserved Document no 50930 SS V850 System User s Manual IN EC NEC SS V850 V850 V850 SA1 V853 and V853A are trademarks or registered trademarks of NEC Corporation in the United States and other countries Green Hills is a trademark and MULTI is a registered trademark of Green Hills Software Inc Red Hat is a trademark or registered trademark of Red Hat Inc in the United States and other countries Microsoft MS DOS Windows and Windows NT are trademarks or registered trademarks of Microsoft Corporation in the United States and other countries All other marks are property of their respective holders IN EC SS V850 System User s Manual Contents ls IO Te EE 5 Za SHIPPING C ONTENTS siisii 7 ZAMOB OA di PACKAGE ni A S T 22 EMUO Board Ee EE 8 2 3 Optional ACCESSES EE 8 3 SVStem S er Sisirin r aer 9 GE Uu Ee Te dee E SE 10 Et Te 12 MS O t 13 I A HOST COMPUTE eE OOO O E Em E E Ia 13 DO Wal EE islands 13 lo COCK SENNO A E O O O O eee 14 ERC Beie OU EE 14 960 2 IIA a EE 15 O CKSELand PLESE eo eee o eo dade 15 OFF Dat nelle EE 16 S C ODUNA e EE 17 SITIO VAC POWT AGAD a iaa 17 3 10 DB 25 Straight through Parallel Cable o ooooococionconionionconconionconconconconconconconconcnnnnnos 17 A A 18 d Fe UE ME 19 5S Hardware Selina 21 51 Bidirectional Paralel POR usaste an aE T loro 21
15. al extension memory and coverage memory which are optional Table 1 System Features Feature rem remm Coverage memory Optional Branch and pass coverage Read write CO coverage MO coverage SFR memory 1 KB by 2 bits 1 KB by 2 bits Flash programming On board flash programming On board flash programming Interface Clamshell socket for flash device programming Host interface Bidirectional parallel port V 85x realchip V853A and V850 SA1 interface Removable emulation board for all V85x devices interface Low voltage LVbp 3 3 volt support SS V85x EM can support various voltages when emulation interfaced with V85x EVAchip 100 pin cable probe NEC TQPAQ probe footprint Power supply Single 5 volt at 5A LVop generated using voltage regulator Center positive support USA Center negative support Japan Built in over voltage detection circuit Physical structure A Motherboard combined with emulation board SS V850 System User s Manual NEC 3 1 Main Board Settings Figure 5 Main Board Layout mif i ml Jugadas a 4 Sc i vid i td ra a nad an m D IT IL D OI ZEIT ihh s a sooo 5 AAA ae Jam A e F La fe E e E e e P A ikki hiai td Tt fi Hai Pai ve D 1 Lire Ty ell a hd eal Cass D T a del a ER A ear Li a e ze mes ds RE 4 KR e SE KiC d 1 Note NEC Electronics ships the SS V850 MC board with a protective plastic cover When changing jump
16. ate NECEL NTDRIVER tvichw32 inf on the CD ROM 3 Right click tvichw32 inf and choose Install to install vchw11 sys in WinNT Systems32 Restart your computer to load the driver 5 3 SS V85x Software SS V85x EM software has two major components e Red Hat GNU and Green Hills MULTI debugger software e NEC low level server software and flash programming software 22 IN EC SS V850 System User s Manual 6 SOFTWARE SETUP The CD ROM for the SS V850 MC main board contains the items shown in Figure 15 Figure 15 CD ROM Contents Demo programs for Red Hat GDB and MULTI debuggers Si demo A demo g a JCT demo omu Gi a devtiles 2 Sr Documents 1 ntdriver gt 3 v blice 000310 Demo programs for MULTI debugger Demo programs for Red Hat GDB debugger Flash programming files User s manuals in PDF Microsoft Windows NT driver Ludddua Red Hat GNU compiler debugger software 6 1 Installing the Software This section explains how to install the software 1 Insert the CD ROM in your CD ROM drive 2 Open Windows Explorer and locate NECEL SETUP EXE Double click SETUP EXE and follow the prompts 23 SS V850 System User s Manual Mi EC 6 1 1 Selecting Components The Select Components dialog box allows you to install the MULTI debugger from Green Hills Software GHS and the GNU debugger GDB from Red Hat Inc 6 1 1 1 Installing Green Hills MULTI Debugger The MULTI debugger shipped with the
17. bility arising from the use of such products No license express implied or otherwise is granted under any patents copyrights or other intellectual property rights of NEC or others Descriptions of circuits software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples The incorporation of these circuits software and information in the design of customer s equipment shall be done under the full responsibility of customer NEC assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits software and information While NEC endeavors to enhance the quality reliability and safety of NEC semiconductor products customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely To minimize risks of damage to property or injury including death to persons arising from defects in NEC semiconductor products customers must incorporate sufficient safety measures in their design such as redundancy fire containment and anti failure features NEC semiconductor products are classified into the following three quality grades Standard Special and Specific The Specific quality grade applies only to semiconductor products developed based on a customer designated quality assurance program for a specific application The recommended applications of a semiconduct
18. e only allows output of data to a printer It does not allow the input of data necessary for bidirectional communication and therefore does allow operation of the SS V850 e Standard bidirectional or PS2 mode allows bidirectional communication on the parallel port and should be selected for use with the SS V850 e ECP mode allows for higher speed bidirectional communication but it should not be selected if bidirectional or PS2 mode is available For systems without bidirectional or PS2 mode try selecting ECP mode Operation of the SS V850 system may be possible in this mode but it is not guaranteed e EPP mode allows for extended capabilities on the parallel port but it should not be selected if bidirectional or PS2 mode is available For systems without bidirectional or PS2 modes and ECP mode you can try selecting EPP mode but operation of the SS V850 is not supported in this mode 21 SS V850 System User s Manual IN EC Using the hardware setup program set the computer parallel port to bidirectional or PS2 mode It may be possible to view and change the I O port addresses assigned to LPT1 using the hardware setup program If so verify that LPT1 is set to the base address of 0378H If another address is set change it if possible to 0378H 5 2 Parallel Port Driver 5 2 1 Windows 95 98 Driver The msip vxd driver loads automatically during software installation 5 2 2 Windows NT Driver 1 Log in as Administrator 2 Loc
19. ements Each element SES 384 pa to its previous element a pointer points to the next element ant 381 to its related data A ea 383 384 void main 385 4 i 386 int 1 387 d 88 hold base anchor HULL Ze Clear element pointers q 391 memset heap 6 heap_end heap Ze Clear heap memory 392 393 Ze At this point the doubly linked list is empty 394 Loo Fforts3 SE 306 H SE 397 Ze To view the linked list of state names whick were added to H 398 e list click the eye glasses icon on the tool bar and ther 399 fe From the add variable dialog box at the bottom of the watch E jani fune c w main sl source 35 SS V850 System User s Manual MEC 5 Inthe Target Selection dialog box select V850ICE 6 Click the check boxes to set target options as explained in Section 7 1 1 and then click OK Target Selection me 850 ICE 7 Select a device file for example DF3003 800 and then click OK DF 3003 S00 Steg 36 IN EC SS V850 System User s Manual 8 The program executes in the Source window and then stops at breakpoints specified in the target options Section 7 1 1 dblfune C Soure Window 379 Ze A doubly lin 386 to its previ 381 to its rela Connected to In Circuit Emulator 1E DW NECEL NECBox DEMO demo out 384 void main 385 4 386 int i 387 388 menset t_heap Za t this po For 33 37 SS V850 Sy
20. ending on whether the contents of the file exactly match the data in the flash device 8 4 7 Complete Programming Cycle 1 To automate the programming sequence click Program Sequence to execute the silicon signature check blank check erase if necessary and write operations in sequential order During these operations the status box displays Ssig Checking Blank Checking Erasing if the device is not blank and Writing as the program cycles through the individual operations 2 After completion of the sequence the Status box displays Written and verified If the program detects an error at any step in the sequence it displays an error message and aborts programming at that step 8 4 8 Programming of a New Device Upon completion of any operation or sequence of operations the program turns off Vpp_FLSH and Vr power to the clamshell socket and DB9 connector so that you can safely remove the device from the unit You can then insert a new device and select another operation The program performs a silicon signature check on the new device to detect whether it matches the selected parameter file Several devices may be programmed with the same data 1 Select a file to be written 2 Inserta device in the clamshell socket 3 Click Program Sequence 4 When programming is complete remove the programmed device and return to step 2 94 IN EC SS V850 System User s Manual 8 4 9 Programming a Different Device
21. er settings please unscrew the mounting screws and remove the cover Apply your settings and then replace the cover when done 10 IN EC SS V850 System User s Manual Figure 6 Jumpers and Switches Red LED Yellow LED Wrong Polarity Reverse Polarity Detection Detection OL JO Power Jack Polarity Select Jumper S1 PLD Programming Port Power Switch U29 Main Clock Oscillator DB 25 Host Alternate Clock Oscillat V850 EVAchip Interface eee EE EEN uPD703091R 100 Pin Connector Optional Memory Interface a e 2 e 80 Pin Interboard Connector Reset Switch Alternate Host Interface Connector Power On 01RC 0145B 7 01 The SS V850 MC operates with the SS V85x EM removable emulation board Before connecting power to the main board please ensure proper configuration of the hardware as explained in Table 2 Table 2 Main Board Settings Name Description Power supply JP1 Set to center positive in U S m Set to center negative in Japan Turn on power for SS V850 Vop Vop QS JP2 JP3 Use when SS V85X EM is not attached to main board ii Remove when SS V85X EM is attached to main board Push to initiate a system reset operation Connect to host PC Pushbutton reset DB25 host interface DC power jack Alternate clock oscillator U30 Connect to user installed clock A A Select alternate clock frequency via software Connect to power supply Reserved for future use Alternate host interface PLD programming
22. ernal Verify Operation 1 To program the device click Browse and select a file with data for writing The FLASHDLL program currently supports two types of files e BIN files that contain a binary image of the data to be written starting at address 000000 and ending with the last address of the write data e HES files that contain data in Intel hexadecimal format that specifies individual records of data with addresses and checksums 2 Click Write to program the device Programming time varies depending on the size of the file being written but the Status box displays Writing throughout the operation 3 After the program writes the data it then performs an internal verify operation on the device After completion the Status box displays Written and verified 4 Ifthe program detects an error it sends an error message and the Status box displays Write failed 53 SS V850 System User s Manual IN EC 8 4 6 Verify Operation 1 To verify the contents of a device against a file click Browse 2 Select a file and then click Verify The status box displays Verifying When you select this method of verifying the program sends data to the flash device for all areas of memory even those outside the area specified by the file The time to perform a verify operation is generally no longer than the time needed to write a file 3 After all the data is verified the Status box displays either Verified or Verify failed dep
23. etup Complete tt E Se a A Lo a a Se gi aa z Foe E a a 27 SS V850 System User s Manual Mi EC 6 2 Testing System Operation 1 Connect the SS V850 emulation system to your computer and then turn on power switch S1 2 From the desktop of your Windows operating system click the Start button 3 Click Programs and then select the MS DOS prompt 4 Execute MDI EXE to launch the NEC_Server Cmdbox 5 From the Dialog dialog box select a device file and click OK 0 3003 800 SI SH 3 800 28 IN EC SS V850 System User s Manual 6 Ifthe hardware and software are working properly the program displays Connected To In Circuit Emulator Connected to In Circuit Emulator 7 If the hardware and software are not working properly the program displays Failed to connect to In Circuit Emulator In that case close the application and troubleshoot the problem as described later in Section 9 29 SS V850 System User s Manual Mi EC 6 2 1 Creating A Shortcut for GDB 1 From Windows Explorer locate C NECEL NECBOX v850ice 000310 H i686 cygwin32 bin v850e elf gdb exe Right click v850e elf gdb exe Click Send To and then click Desktop create shortcut Cie stoe Sendo Right click the newly created icon 30 MEC SS V850 System User s Manual 5 Click Properties and then click the Shortcut tab 6 Specify the project path in the Start in field and then click
24. hen the source code appears in the Builder for main bld window download the executable code 8 Type load in the Command window and then press Enter SC CANECEL1NECBox DEMO main void Compiler char data 1 pr main Be i A 20 Z int SEY po 3 while 1 4 111 d mp e Eor 0450 10000 e 4 jiz 5 FillMemf Oxas lz jis 6 CompMen t Oxas 1 14 FillMemf OxOO Is 15 5 CGompbenmt OxXOD jie S gt HULTI gt Losch 43 SS V850 System User s Manual 9 Click the Go icon to execute the program When the program stops at main click the GO icon to resume program execution char data j int 1 while 11 4 ioe AA epp dl g FilimMen Oxa5 Ji CompMem Oxas j FiliMem Depp 4 CompMem Ox00 J Un n bene Download complete running C NECEL MECBox DEMO main software break condition 11 To stop program execution click the Halt icon or click the Halt execution of program command on the task bar E C NECELANECBox DEMO main me oss ead char but 10 gt int Ilo void FillMem char data void CompHem char data 17 main 4 int a while 13 for i 0 10000 3 4 FiliMem Oras Ji Download complete running C NECELYNECBox DEMO main Software break condition MULTI gt J 44 IN EC SS V850 System User s Manual 8 FLASH PROGRAMMING 8 1 Overview The SS V850 system performs flash programming for NEC microcontrollers in the V850 family
25. ile the program displays a DLL error message DLL error Error setting up flash programming code 6 message Device Ydd voltage doesn t match Pre file Click OK to terminate the FLASHDLL program 49 SS V850 System User s Manual IN EC If the board s Voo voltage matches but the Vrr voltage doesn t the resulting action depends on how far apart the board Vep and device Vpr are If they differ by more than 0 3 volts the program displays the following message DLL error Error setting up flash programming code 8 message Device pp voltage doesn t match Pre file Click OK to terminate the program If the Ver voltages are within 0 3 volts of each other you may be able to program the target device depending on device specifications since there is typically a range of at least 0 3V for VPP on NEC flash devices Check the data sheet for the device you are programming for VPP voltages allowed The program lists the mismatched voltages allowing you to ignore the mismatch if you so choose LY8 ERROR pp mismateh pre tle 10 device 10 7 lgnore Click NO to exit the FLASHDLL program or YES to ignore the Ver mismatch and continue FLASHDLL program execution 50 IN EC SS V850 System User s Manual 8 3 3 Check for Flash Device Communication After initialization of communication with the SS V850 system the FLASHDLL program checks for communication with a flash device If it finds no flash device in the clamshell
26. kSelect 33 333 MHz 6 667 MHz 6 667 MHz C e oome osme osme If a 40 MHZ oscillator is installed in U30 the ALT frequency is 40 MHz and the clock frequencies are as shown in Table 9 Table 9 Alternate Clock Frequencies ClockSelect 200 MHz 40 MHz 40 MHz 100 MHz 20 MHz 20 MHz 50 MHz 10 MHz 10 MHz 12 5 MHz 2 5 MHz 2 5 MHz CAUTION Note that with these settings you can select a system clock value above the maximum 66 MHZ allowable Do nof select a system clock greater than 66 MHz because operation of the SS V850 is not guaranteed under such conditions 3 7 Default Jumper Settings NEC Electronics ships the SS V850 MC main board with the following default settings e JP1 3 5 and JP1 4 6 short for center negative power supply e JP2 and JP3 open to operate with the SS V85X EM emulation board All other jumpers are open 16 IN EC SS V850 System User s Manual 3 8 Optional Features Alternate memory on the SS V850 MC main board can be extended by an additional 2 MB These additional memory devices are factory installed The SS V850 EM emulation board also can be equipped with coverage memory Contact your local NEC representative to learn more about these optional features 3 9 110 Vac Power Adapter The 110 Vac power adapter that generates 5 Voc for the SS V850 emulator The adapter does not supply power to the target system Figure 9 Power Adapter Note The 5 Voc connector has the cente
27. l 1 INTRODUCTION The SS V850 in circuit emulator ICE is a low cost full function ICE for developing embedded systems based on NEC s V850 microcontrollers The SS V850 supports comprehensive ICE functions and on board flash programming Figure 1 Main Board and Removable Emulation Board The SS V850 system consists of the SS V850 MC main board and a removable emulation board that provides family specific product emulation The PC based system connects to the host computer via a bidirectional parallel port The complete emulation system requires an SS V850 MC main board and a target specific SS V85x EM removable emulation board for example an SS V853A EM board that emulates a V853 microcontroller or an SS V850SA1 EM board that emulates a V850 SA1 device The main board and the emulation board are packaged separately so that different combinations can be assembled SS V850 System User s Manual Trace Memory 152 Bits Frame by 32K Frames Alternative Memory 2 MB Optional Alternate External Power Polarity Detection Circuit Power Reset Switches Host System Interface Coverage Memory Interface V850 EVAchip jPD703091R ROM RAM 1MB System Control Logic Realchip Interface System Control Alternate Host Host Interface Interface mmm mmm mmm mmm mmm mmm mmm mmm mmm mmm cs eee eee ee 2X 80 Pin Connector Connecting SS V850 with SS V85x EM Flash Programming In
28. ock for the source selected for example CLK_ALT is selected but there is no oscillator in U30 the emulation CPU generates its own clock of about 1 MHz 14 IN EC SS V850 System User s Manual 3 6 2 Clock Divider Each clock source can be divided by hardware that is external to the emulation CPU uPD703091R with division factors of 1 2 4 8 or 16 For example 6 667 MHz can be divided by 4 to produce an input clock to the emulation CPU of 1 667 MHz If a 40 MHz oscillator is installed in U30 and you specify division by 8 the input clock to the emulation CPU is 5 MHz Table 6 shows the input frequency for each possible source Table 6 ClockDivider Settings Setting Source CLK_6MHZ Source CLK_ALT Source CLK_TX1 wo Im aw owe 3 6 3 CKSEL and PLLSEL The ClockSelect parameter controls CKSEL and PLLSEL as shown in Table 7 These pins control operation of the on board clock control circuitry on the emulation CPU The emulation CPU like devices in the V850 family has a PLL circuit that can multiply the input clock by a factor of 1 or 5 depending on the setting of PLLSEL The CKSEL pin controls whether the input clock is used directly or routed through the PLL for multiplication Table 7 CKSEL and PLLSEL Settings DIRECT Don t care 1 is set Fx input clock 15 SS V850 System User s Manual IN EC Clock frequencies for the standard system oscillator are shown in Table 8 Table 8 Standard Clock Frequencies Cloc
29. or product depend on its quality grade as indicated below Customers must check the quality grade of each semiconductor product before using it in a particular application Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots Special Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems life support systems and medical equipment for life support etc The quality grade of NEC semiconductor products is Standard unless otherwise expressly specified in NEC s data sheets or data books etc If customers wish to use NEC semiconductor products in applications not intended by NEC they must contact an NEC sales representative in advance to determine NEC s willingness to support a given application Note 1 NEC as used in this statement means NEC Corporation and also includes its majority owned subsidiaries 2 NEC semiconductor products means any semiconductor product developed or manufactured by or for NEC as defined above 58
30. r pin negative 3 10 DB 25 Straight through Parallel Cable The standard straight through parallel cable connects the SS V850 emulation system to the host PC Figure 10 Parallel Cable 17 SS V850 System User s Manual IN EC 3 11 Emulation Board Settings The emulation board allows the emulator system to emulate a specific microcontroller For instance the SS V853A EM emulation board together with the SS V850 MC main board emulates the V853A microcontroller For information about how to configure the emulation board please consult the SS V85x EM User s Manual document no 50931 Figure 11 Emulation Board Layout Figure 12 100 Pin Ribbon Cable Cable Probe 18 IN EC SS V850 System User s Manual 4 HARDWARE ASSEMBLY The SS V850 emulator is shipped in two packages the SS V850 MC main board package and the SS V85X EM removable emulation board package This section explains how to assemble connect and configure the hardware Figure 13 Hardware Components com a aay PLE 7 LET Ty E OZ ZL Z GT MB Say ay LP ED EDI TOD LG See D DLL LES ay IS Lf 4 PD AD E A _ 0 hann V850 MC Main Board i V85X EM Emulation Board Ta TEC Emulation Probe Cable 19 SS V850 System User s Manual IN EC First connect J3 and J4 of the main board to the corresponding P3 and P4 connectors of the emulation board as shown in Figure 14 Figure 14 Board Assembly 1 Connect parallel cable to connec
31. rogram a target device soldered or socketed in a target system confirm that the target system is connected properly and able to isolate flash programming signals from target system signals In normal operation the target device s Ver RESET X1 X2 SI SO and SCK pins are connected to target system resources For flash programming you must disconnect these signals from the target system and connect them to the DB9 connector either by changing jumpers or by other methods of switching signals The system supports driving of Von_FLSH pin 7 of the DB9 connector either from the SS V850 system or by the target system Upon initialization of the software the SS V850 system senses Vpp_FLSH to determine whether voltage is applied If Voo _FLSH is non zero the system does not drive this pin If Vop_FLSH is zero the SS V850 drives Vpp_FLSH at the start of a flash programming operation with the appropriate Voo voltage 46 IN EC SS V850 System User s Manual The device socket has no power during a flash programming operation Therefore it is not necessary to insert or connect a flash device before starting the FLASHDLL program You may insert or remove a device at any time except during flash programming For connection of flash programming signals to a target device in a target system please see the flash programming section of the appropriate device data sheet 8 2 3 FLASHDLL EXE Program The 32 bit Windows based FLASHDLL EXE program opera
32. roject in Builder l S ui id bxinbssel io program 40 IN EC SS V850 System User s Manual 3 In the Load which project dialog box select a build bld file and then click Open I Load which h project rad 4 When the file name and file type are visible in the Builder for mam bid window click the Connect icon main Pld Progr am main ic locate Ink linker file Wector s assembly 41 SS V850 System User s Manual 5 Inthe Remote command dialog box select 850ice32 and then click OK Remote command meso Bbllice32 5 ex85032 dll Automatic connection to the target can be specified in the RC script file along with the name of the project for example main rc Afterward when you launch the MULTI debugger the NEC_Server connects to the target automatically NEC_Server Cmdbox _ ES a ain bld ma in E locate Ink vector s Connected to I n Circu it Emulator Connected to Establishing er Please malt Hadr Attempting to connect to In Circuit Emulator Target cpu VE50E E Target 42 IN EC SS V850 System User s Manual 6 Click Debug to launch the MULTI debugger Builder for main bld LC locate lnk linker_file Wector s assembly Connected to debug server C GREENZE 650icegz Establishing communication with remote Please Wait Atremptinao to connect to In Cireuit Emulator Target cpu VES0E 7 W
33. sas sess assesses sess esses ssssssssssssssss EE 383 Ze S84 void maint 385 4 386 int i 387 TI 388 hold base anchor HULL fe Clear element pointers Ei 398 A 391 memset t heap 6 heap end heap Clear heap memory 392 393 fe AC this point the doubly linked list is empty 394 395 fori 3065 H S S S 397 Ze To view the linked list of state names whick were added to ti 398 fe list click the eye glasses icon on the tool bar and ther 399 e From the add variable dialog box at the bottom of the watch E fe d CA Za omnes oem O aen des m T T Eha Aata wanns ee m iL ieee Stop Jabifunc c main source j 38 IN EC SS V850 System User s Manual 7 1 1 Target Options From the Target Selection dialog box you can set breakpoints and other options for the target program Options are stored in memory and do nof have to be set each time you launch the debugger T arget Selection 1 For example click Set breakpoint at main to set a breakpoint at the beginning of the main function in the program Target Selection 2 Click More Options to set additional options including Attach to Target Download to Program Run Program and Continue from Last Stop 39 SS V850 System User s Manual 7 2 MULTI Debugger Operation 1 From your desktop double click the MULTI icon MULTI 2 Inthe Builder for default bld dialog box click File and then click Open P
34. stem User s Manual IN EC 9 Click the Continue icon to continue program execution dblfunc_c Source Window File Bun View Control Preferences Help a mm mm Dim CN gt 45 E Bxi4ua 389 et ete 379 A dout Continue Cl Vist is a set of ordered elements Each element ral 380 to its previous element a pointer points to the next element anc 381 to its related data SS 992 E E 383 38 void main J85 4 386 int i 387 388 hold base anchor HULL Za Clear element pointers jm 396 391 memset heap 6 heap_end amp heap Clear heap memory 392 393 Ze At this point the doubly linked list is empty 394 995 Ford gt SS 397 Ze To view the linked list of state names whick were added to d 398 Ze List click the eye glasses icon on the tool bar and ther 399 fx Pe the add variable dialog box at The bottom of the watch H me Continue E ablfunc c main sl source 10 To halt execution click the Stop icon dblfunc c Source Window Ele GE Mie Gant ieee Help NA Zeit Key Kb n Ama r Gi 7 ww Hi f l 2 SE 3 d e LA Ah E geile J i EK br ek E a Sea E SC E BAR i E 3 sl RES eu nt D A i a A Ku e d E SN GEN Geer i GA LEE SE ds H doubly linked list is a set of ordered elements Each element NES 388 to its previous element a pointer points to the next element anc 381 to its related data ae G02 fessssssssssssssssss sess e
35. terface Circuit NEC Probe YQSOCKET Footprint gt Ae O 2 co O bal LL D gt O O o 2 Ce Q O V85x Realchip Clamshell Socket for Flash Programming 100 Pin Cable Probe Connector NEC Target System 01RC 0144B 7 01 IN EC SS V850 System User s Manual 2 SHIPPING CONTENTS 2 1 Main Board Package e S V850 MC main board e 110 Vac power adapter e DB 25 straight through cable e CD ROM containing Red Hat GNU debugger package demonstration programs and documentation e Evaluation copy of Green Hills MULTI 2000 debugger Figure 3 Main Board Contents i Power Adapter d i CD ROM with auto installer NEC_Server software Red Hat GNU debugger flash programming GUI uPDF703xxx device Le files flash programming files example programs and user s manuals 25 Pin Straight Through Parallel Cable O CD ROM with evaluation copy of MULTI debugger from Green Hills Software SS V850 System User s Manual 2 2 Emulation Board Package e SS V85x EM removable emulation board e 100 pin ribbon cable cable probe Figure 4 Emulation Board Contents Oe 2 3 Optional Accessories e Emulation probe e Main board with 2 MB external extension memory e Emulation board with coverage memory options NEC 100 Pin Ribbon Cable IN EC SS V850 System User s Manual 3 SYSTEM SETTINGS The features listed in Table 1 are implemented in SS V850 hardware except for extern
36. tes the flash programming circuitry of the SS V850 emulation system and other emulators supplied by NEC such as the KOS LCE and KO LCE low cost emulators The FLASHDLL program operates independently of the software debuggers and should not be used while the SS V850 system is under control of a software debugger Conversely the software debuggers should not be used while the SS V850 system is under control of the FLASHDLL program 8 2 4 Installation of FLASHDLL EXE Program Install the FLASHDLL EXE program in the directory containing the LV8HW DLL file and other system files From the Start menu click the shortcut to FLASHDLL EXE which should read lt dir gt FLASHDLL EXE LV8HW DLL where lt dir gt is the directory where the FLASHDLL EXE program resides If the shortcut does not exist create one in the location of your choice 8 3 Execution of FLASHDLL EXE Program You can execute FLASHDLL EXE in one of three ways e Click the shortcut on the Start menu to launch FLASHDLL EXE and load the LV8HW DLL component e Entera FLASHDLL LV8HW DLL command after an MS DOS prompt to start the program and load the LV8HW DLL component e Double click the file name in Windows Explorer 47 SS V850 System User s Manual IN EC In the last case double clicking the file name in Windows Explorer the program prompts you to specify a DLL file In the Open dialog box select LV8HW DLL and click OK The name and location of the DLL file are stored for
37. tor J2 on the main board and to the parallel port of your computer 2 With power switch S1 off connect the power supply to the J1 power connector 3 Proceed with software installation 20 IN EC SS V850 System User s Manual 5 HARDWARE SETUP This section explains how to connect and test the hardware 5 1 Bidirectional Parallel Port Operation of the SS V850 requires a PC with a bidirectional parallel port Parallel port addresses and modes vary from one computer to another and for help with specific systems please call the technical hotline at 1 800 366 9782 Most new PCs have one parallel port with a DB 25 female connector on the back of enclosure with the parallel port usually configured as LPT1 with a base address of 0378H Some PCs have add in cards or more than one parallel port in the base system In those cases determine from your system documentation which port is LPT1 To check the mode of the parallel port run a hardware setup program In some systems the program may be invoked by pressing a particular key or key combination during boot up In other systems it may be possible to invoke the program from the Windows operating system Check your computer system documentation for information about how to invoke the hardware setup program In the hardware setup program it is usually possible to set the parallel printer port to one of several modes The names of these modes may vary e Standard output only mod
Download Pdf Manuals
Related Search
Related Contents
REVETÓN RUGOSO Lenovo IdeaPad Flex 15 Manutenção e Lubrificação - Escolas Estaduais de Educação Copyright © All rights reserved.
Failed to retrieve file