AM1 Debug Probe Quick-Start Guide · AM1 Debug Probe Quick-Start Guide [1] AM1 Debug Probe 1.1...

20
AM1 Debug Probe Quick-Start Guide A A M M 1 1 D D e e b b u u g g P P r r o o b b e e Q Q u u i i c c k k S S t t a a r r t t G G u u i i d d e e - 1 - - Microcomputer Research & Development - OBJECT Co.,Ltd. www.OBJECT.jp

Transcript of AM1 Debug Probe Quick-Start Guide · AM1 Debug Probe Quick-Start Guide [1] AM1 Debug Probe 1.1...

  • AM1 Debug Probe Quick-Start Guide

    AAMM11 DDeebbuugg PPrroobbee QQuuiicckk SSttaarrtt GGuuiiddee

    - 1 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

  • AM1 Debug Probe Quick-Start Guide

    [1] AM1 Debug Probe Serial .............................................................................................................3 1.1 Target Connection Image........................................................................................................ 3 1.2 Target Connection................................................................................................................... 4 1.3 LED ......................................................................................................................................... 5 1.4 DIP SWITCH........................................................................................................................... 5

    [2] Set up ..........................................................................................................................................6 2.1 How to install DebugFactory Builder....................................................................................... 6 2.2 Install USB driver .................................................................................................................... 8 2.3 How to Driver uninstall ............................................................................................................ 11

    [3] How to use DebugFactory Builder...............................................................................................11 3.1 Start-up (Project selection menu) ........................................................................................... 11 3.2 Precautions in using WindowsXP SP2 ................................................................................... 11 3.3 DebugFactory Builder start-up display.................................................................................... 12 3.4 Compile the sample program.................................................................................................. 12 3.5 Connect AM1 Debug Probe Serial.......................................................................................... 13 3.6 Execute the sample program.................................................................................................. 14

    [4] Sample Program..........................................................................................................................15 4.1 Specification............................................................................................................................ 15 4.2 Source file ............................................................................................................................... 15

    [5] Registration Guide.......................................................................................................................18 5.1 How to Register ...................................................................................................................... 18

    [6] Technical Support ........................................................................................................................18

    [7] Technical Report Mailing List.......................................................................................................19 7.1 User Community Mailing List .................................................................................................. 19

    - 2 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

  • AM1 Debug Probe Quick-Start Guide

    [1] AM1 Debug Probe 1.1 Target Connection Image

    To HOST COMPUTERby USB1.1

    AM1 Debug Probe

    MN101XXXXX MicroCompuer

    Debug Probe 10P Connector

    MN101XXXXX TARGET BOARD

    - Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

    - 3 -

  • AM1 Debug Probe Quick-Start Guide 1.2 Target Connection Debug Probe connects to the target with 10P probe. The following is the connection table for each type.

    TARGET CONNECTOR

    9 7 5 3 1

    10 8 6 4 2

    PIN Name MN101CF78A MN101CF77G MN101CF49K

    1 SBT P32/COM2/SBT3/SCL3 P52/SBT3/SCL3 P35/NLDDMA/SCL/SBT3

    2 GND GND GND GND

    3 SBI P33/COM3/SBO3/SDA3 P51/SBO3/SDA3 P33/NBR/SDA/SBO3

    4 Reserve N.C N.C N.C

    5 SBO P31/COM1/SBI3 P50/SBI3 P34/NBT/SBI3

    6 Reserve N.C N.C N.C

    7 BOOTSEL(*1) P37 P24/IRQ4 P15

    8 VPP N.C VPP (*1) VPP (*1)

    9 NRESET P27/NRST P27/NRST P27/NRST

    10 TVDD(*3) VDD VDD VDD

    1 VPP pin of MN101CF77G should be pulled up to 3.3V power supply on the target. *2 The pin of the target which connects to BOOTSEL signal should be pulled up to the power supply. *3 TVDD signal is used for the sensing of target power supply voltage and the pull-up of the signal which connects to the target. *4 Unused pins should be always opened.

    PIN Name SPECIFIC

    1 SBT Synchronous serial clock for monitoring communication

    2 GND Power supply GND

    3 SBI Synchronous serial data output for monitoring communication

    4 Reserve Unused

    5 SBO Synchronous serial data input for monitoring communication

    6 Reserve Unused

    7 BOOTSEL(*1) Monitor start-up selection signal output

    8 VPP VPP power output

    9 NRESET Reset output

    10 TVDD(*3) Target power supply input

    - 4 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

  • AM1 Debug Probe Quick-Start Guide

    1.3 LED

    AM1 Debug Probe Serial

    STATUS POWER

    OBJECT

    LED NAME

    COLOR SPECIFIC

    OFF AM1 Debug Probe power supply is OFF. RED In communicating with monitor

    STATUS

    GREEN AM1 Debug Probe power supply is ON (generally, it is in the idle state)

    OFF Target system power supply is OFF RED User program is running. Target system power

    supply is ON.

    POWER

    GREEN User program is broken. Target system power supply is ON.

    1.4 DIP SWITCH

    1 2 3 4

    OFF

    BIT DEFAULT Name ON(↓) OFF (↑) 4 OFF BOOTSEL RUN: execute the user program DEBUG: start up the monitor 3 OFF RSVSW1 Disabled Fixed to OFF 2 ON PUSEL Signal pull-up = user power

    supply Signal pull-up = internal + 5V

    1 OFF RSVSW0 Disabled Fixed to OFF

    - Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

    - 5 -

  • AM1 Debug Probe Quick-Start Guide

    [2] Set up 2.1 How to install DebugFactory Builder AM1 Debug Probe includes the debug integrated environment “DebugFactory Builder”.To use this product, start up the installer included in the attached CD-ROM and install the software into your PC. [Install Procedure] (1) Check precautions Read “Precautions and Warranty Policy” of Japanese version (Readme_J.txt) or English version (Readme_E.txt) in the attached CD. There is a possibility that the latest information which is not mentioned in each manual is described in this precaution. (2) Install software Start the attached installer (Japanese version:DFBuilder101XXXXX_DPJ.exe, English version:DFBuilder101XXXXX_DPE.exe) and install the software by following the dialog message. As the type selection dialog is displayed during installation, select the type you purchased. In the default setting, each software and document is installed in the “%system%\Panasonic” folder. [NOTE!] “%system%“ shows Windows system disc. In the general IBM/PC compatible i386 system,”C:” corresponds to “%system%“. [NOTE!] XXXXX parts represent type name (CF78A/CF77G/CF49K). STEP1 The following is the DFBuilder101XXXXX_DPE.exe setup display. Click “Next(N)” button.

    - 6 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

  • AM1 Debug Probe Quick-Start Guide

    STEP2 Read the license agreement carefully. If you accept all terms of the agreement, click on the “Yes(Y)" button.

    STEP3 Select the folder in which the files should installed. When installing them into the default folder, click on the “Next(N)” button. When changing the installing folder, click on the “Reference(R)” button and specify the folder.

    - 7 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

  • AM1 Debug Probe Quick-Start Guide STEP4 Specify the folder name which is to be added to the “program” menu in the Windows start menu. When changing the folder name, input any name to the “Program folder(P)” column. When selecting the default folder, click on the “Next(N)” button.

    2.2 Install USB driver After installing the DebugFactory Builder, connect the AM1 Debug Probe to the PC with the enclosed USB cable. Windows will then prompt you to install the required driver. Specify the driver as %system%\Panasonic\DebugFactory\Builder\MN101C_SK\Driver\omusbi.inf , or click "Browse" and navigate to the appropriate folder location in which DebugFactory Builder is installed. STEP1 When connecting AM1 STARTER KIT with the PC by the USB cable, the following dialogue appears. Check the “Yes,now and every time I connect a device” and click on the “Next(N)” button.

    - 8 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

  • AM1 Debug Probe Quick-Start Guide

    STEP2 Next time. Check the “Install from a list or specific location [Advanced]” and click on the “Next(N)” button.

    STEP3 As specifing the directory path of the driver file, check the “Search for the best driver in these locations (S)” and “Include this location in the serarch (O) box, and click on the “Browse(R)” button to specify the following file. After completing input, click on the “Next (N)” button and then searching the driver will start.

    %system%\Panasonic\DebugFactory\Builder3\MN101C_DP\Driver\omusbi.inf [[NNOOTTEE!!]] %system% shows Windows systems disc. In the general IBM/PC compatible i386 system, “C:” corresponds to “%system%”

    - Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

    - 9 -

  • AM1 Debug Probe Quick-Start Guide

    STEP4

    When the warning dialogue appears while installing the dirver, click on the “Continue Anyway (C)” button to continue installing.

    STEP5

    After the driver file is finished coping, the set up finished dialogue will appear, and click on the “Finish” button to end the driver installation.

    - 10 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

  • AM1 Debug Probe Quick-Start Guide

    2.3 How to Driver uninstall In order to uninstall the DebugFactory Builder, start the attached installer again, check the “delete” box and execute the uninstallation. In order to delete the USB driver, open the “system” menu of the control panel in the Windows, select the “USB (UniversalSerialBus) controller” in the “device manager” of the hardware tab, and delete AM1 STARTER KIT USB I/F.

    [3] How to use DebugFactory Builder AM1 Debug Probe includes the debug integrated environment ”DebugFactory Builder for MN101C” as standard equipment. The main functions are the C source code debugger, Source file editor, and C compiler. This integrated environment is the same environment as the MN101C series full ICE and simulator.

    3.1 Start-up (Project selection menu) Start up the DebugFactory Builder by clicking the following menues in order: start menu of Windows> Program> Panasonic DebugFactory> MN101C_DP> Builder. The project selection screen is displayed in the opening of start-up. Confirm that “Open the last project (L)” box is checked, and click the “Go(G)” button.

    [NOTE!] The attached sample program is registered as the last project just after installing the DebugFactory Builder. 3.2 Precautions in using WindowsXP SP2 After installing AM1 STARTER KIT in a PC suitable for WindowsXP ServicePack2, WindowsSecurityArart may appear if it is the first start up of “DebugFactoryBuilder for MN101C”. In this case, make sure that “Name” is “DF101C_SK”, and click the “Unlock” button.

    - 11 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

  • AM1 Debug Probe Quick-Start Guide 3.3 DebugFactory Builder start-up display DebugFactory Builder has three main windows: Menu window, Debug window, and Project explorer. At the first start-up, the attached sample project opens. In this condition, DebugFactory Builder has not recognize the AM1 Debug Probe yet.

    3.4 Compile the sample program AM1 Debug Probe includes a sample program as a model in order to facilitate the programming for AM1 Debug Probe. However, C compiler is not attached in the AM1 Debug Probe. Therefore, the finished version should be separately obtained. STEP1 To execute the sample program, compiling is needed because the sample program just after installing is not compiled. To compile the program, select the “Make” menu of the DebugFactory Builder menu bar and execute “Make(M)”.

    - 12 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

  • AM1 Debug Probe Quick-Start Guide

    3.5 Connect AM1 Debug Probe For the connection of AM1 Debug Probe and target system, the 10pin cable included with AM1 Debug Probe is used. When AM1 Debug Probe recognizes that the power of the target system is on, POWER LED of AM1 Debug Probe lights up green. If POWER LED does not light up, the power of the target system is off. Check the cable and the power of target system. [NOTE!] Since DebugFactory Builder is designed as the integrated environment which supports various debug source, the debug target resource parts are thus separated. STEP1 DebugFactory Builder recognizes the AM1 Debug Probe by selecting “Debug” of the menu bar and executing “Start debug (CTRL+T)”.

    STEP2 After executing the start debug (CTRL+T)” in the “Debug” menu, the dialog message whether the execution file should be load appears. Click “Yes (Y)” and load the sample program into the AM1 Debug Probe. When DebugFactory Builder loads the objects, the objects are written into MN101C built-in flash ROM.

    - 13 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

  • AM1 Debug Probe Quick-Start Guide 3.6 Execute the sample program The sample program attached to the AM1 Debug Probe is executed by clicking “Go(G)” in the “Debug” menu. As for the operation specification of the sample program, refer to “[4] Sample Program”.

    [NOTE!] The attached sample program is registered as the last project just after installing the DebugFactory Builder.

    - 14 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

  • AM1 Debug Probe Quick-Start Guide

    [4] Sample Program 4.1 Specification Sample program consists of the activation assembler for boot up and C source file which includes dummy main() function. Program itself does not have special facility. 4.2 Source file [Project file] Sample.dfp ·················Sample project file for DebugFactory Builder [C source file] sample.c ·····················C source file including sample program mail() function int.c ·····························C source file that processes interrupts [Header file] 101XXXXX.h ··············The header file that defines function declaration / variable inherent in MN101C sample.h ·····················The header file that defines function declaration of the sample program int.h ····························The header file that defines function declaration related to interrupts def.h ···························The header file that defines “define” of the sample program [Assembler source file] bootXXX.asm···············Assembler source file of boot program [Document and make file] readme.txt ··················Instruction of sample program Makefile························makefile complying with the make tool attached in DebugFactory Builder [NOTE!] The XXXXX parts of the source file name represent type name (CF78A/CF77G/CF49K).

    - 15 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

  • AM1 Debug Probe Quick-Start Guide

    PanaXSeries, DebugFactory Builder is a trademark of Matsushita Electric Industrial Co., Ltd.

    MS-WINDOWS, and MS-DOS are trademarks of Microsoft Corporation. Adobe Acrobat Reader is a trademark of Adobe Corporation. The other corporation name, logotype, and product names written in the book are trademarks or registered

    trademarks of their corresponding corporations.

    Request for your special attention and precautions in using the technical information and semiconductors described in this book

    (1) An export permit needs to be obtained from the competent authorities of the Japanese Government if any of the products or technologies described in the book and controlled under the “Foreign Exchange and Foreign Trade Law” is to be exported or taken out of Japan.

    (2) The contents of this book are subject to change without notice in matters of improved function.

    (3) We are not liable for any damages arising out of the use of the contents of this book, or for any infringement of patents or other rights owned by a third party.

    (4) No part of this book may be reprinted or reproduced by any means without written permission from our company.

    (5) In no event will OBJECT and Matsushita Electric Industrial Co., Ltd. Semiconductor Company be liable to you for any indirect damages caused by using this Product.

    (6) In the event that you find a defect of this Product and advise OBJECT of it within one(1) year from the date of purchase, OBJECT will pay for the damage. In no event OBJECT's liability to you exceed the amount actually paid by you for this Product, and as the previous article, OBJECT and Matsushita Electric Industrial Co., Ltd. Semiconductor Company shall not be liable to you for defect warranty.

    (7) We can supply the support for AM1 Debug Probe via E-Mail ([email protected])and WEB SITE (www.OBJECT.jp) Please determine the up- to-date information and more on our WEB SITE.

    - 16 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

    mailto:[email protected]://www.object.jp/

  • AAMM11 DDeebbuugg PPrroobbee RReeggiissttrraattiioonn GGuuiiddee

    AAMM11 DDeebbuugg PPrroobbee UUsseerr RReeggiissttrraattiioonn GGuuiiddee

    - Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

    - 17 -

  • AAMM11 DDeebbuugg PPrroobbee RReeggiissttrraattiioonn GGuuiiddee

    [5] Registration Guide

    Thank you very much for purchasing AM1 Debug Probe (this “Product”). OBJECT offers a variety of support to upgrade and maintain the performance of this “Product”. To receive support, you are required to complete your user registration. In this user registration guide, you can learn how to register and what type of support is available.

    5.1 How to Register

    Visit the following our website and choose “English”, and click "Registration" on the right corner of the page.

    http://www.OBJECT.jp/

    - Complete the required fields (product name, serial number, user information) and enter the optional fields

    (questionnaire about product). If the required fields are not completed, you cannot finish the user registration.

    - Product serial number is mentioned on the backside of the body case (11-digit number).

    - User information means general information such as your name, company name, etc.

    - Choose whether to join the mailing list of our technical report community. “I Join” is selected in the default setting. If you would not like to join the mailing list, select “I do NOT Join”.

    - Registration process takes few minutes. When the registration has been completed, you will be notified via e-mail.

    - After the user registration is completed, you can request a version upgrade of the compiler and technical supports. If you select to join the technical report community, the technical report information is distributed (Past reports are not distributed. If you would like to get the past information, please see “Support” page of our website.

    [6] Technical Support - Please request technical support by e-mail.

    - To request technical support, visit “Support” page of our website and click [email protected]. The inquiry sheet starts up. The URL is as follows:

    http://www.OBJECT.jp/panamc_eng/support/tec-sup.html

    - Complete the inquiry sheet and send. If your user registration has not completed, the message “please complete user registration and send your inquiry again” is sent to you.

    - After your user authentication is confirmed, you will be notified within 24 hours via e-mail that your inquiry has been received.

    - We will respond to your inquiry as quickly as possible. Please note that it takes time depending on the type of inquiry.

    - The contents of your inquiry will be opened on the FAQ of our website and in some cases are posted on the technical support mailing list. If you do not want your inquiry listed as a FAQ please mention this in your e-mail inquiry.

    - 18 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

    http://www.object.jp/mailto:[email protected]

  • AAMM11 DDeebbuugg PPrroobbee RReeggiissttrraattiioonn GGuuiiddee

    [7] Technical Report Mailing List - We offer timely e-mail messages that keep you up-to-date with technical information for products (product

    news, technical report updates, application notes, bug information, etc.).

    - To join this mailing list, you need to complete your user registration.

    - Whether to join the mailing list is determined at user registration. When modifying your choice, list the registered product name, product serial number, and changes, and then send e-mail to the following address:

    Mail address : [email protected]

    Subject : Change of Technical Report Community Registration

    - Distribution of information starts immediately after your user registration is completed.

    7.1 User Community Mailing List - We offer our User community mailing list, which is different type from the technical report community mailing

    list.

    - Anyone may participate in this group. Please join us and exchange information.

    - For more information, please see the “Support” page of our website.

    - 19 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

  • AAMM11 DDeebbuugg PPrroobbee RReeggiissttrraattiioonn GGuuiiddee

    PanaX Series and DebugFactory Builder are the trademarks of Matsushita Electric Industrial Co., Ltd. MS-WINDOWS and MS-DOS are the trademarks of Microsoft Corporation. Adobe Acrobat Reader is a trademark of Adobe Corporation. The other corporation names, logos, and product names written in the publication are trademarks or registered trademarks of their corresponding corporations.

    Request for your special attention and precautions in using the technical information and

    semiconductors described in this publication

    (1) An export permit needs to be obtained from authorities of the Japanese Government if any of the products or technologies described in this publication and controlled under the “Foreign Exchange and Foreign Trade Law” are to be exported or taken out of Japan.

    (2) The contents of this publication are subject to change without notice.

    (3) We are not liable for any damages arising out of the use of the contents of this publication or for any infringement of patents or other rights owned by a third party.

    (4) No part of this publication may be reprinted or reproduced by any means without written permission from OBJECT.

    (5) We can supply support for the AM1 Debug Probe via E-Mail([email protected]) and our website (www.OBJECT.jp)

    AAMM11 DDeebbuugg PPrroobbee QQuuiicckk--SSttaarrtt GGuuiiddee RReevv 11..33

    OBJECT Co., Ltd. 3rd Floor, Mori New Bldg. 1-3-1 Hotarugaike Higashimachi, Toyonaka, Osaka 560-0032, Japan TEL : 81-6-6844-1747 E-Mail : [email protected] : www.OBJECT.jp

    - 20 -- Microcomputer Research & Development -

    OBJECT Co.,Ltd. www.OBJECT.jp

    http://www.object.jp/mailto:[email protected]://www.object.jp/

    [] AM1 Debug ProbeTarget Connection ImageTarget ConnectionLEDDIP SWITCH

    [] Set upHow to install DebugFactory BuilderInstall USB driverHow to Driver uninstall

    [] How to use DebugFactory BuilderStart-up (Project selection menu)Precautions in using WindowsXP SP2DebugFactory Builder start-up displayCompile the sample programConnect AM1 Debug ProbeExecute the sample program

    [] Sample ProgramSpecificationSource file

    [] Registration GuideHow to Register

    [] Technical Support[] Technical Report Mailing ListUser Community Mailing List

    /ColorImageDict > /JPEG2000ColorACSImageDict > /JPEG2000ColorImageDict > /AntiAliasGrayImages false /DownsampleGrayImages true /GrayImageDownsampleType /Bicubic /GrayImageResolution 300 /GrayImageDepth -1 /GrayImageDownsampleThreshold 1.50000 /EncodeGrayImages true /GrayImageFilter /DCTEncode /AutoFilterGrayImages true /GrayImageAutoFilterStrategy /JPEG /GrayACSImageDict > /GrayImageDict > /JPEG2000GrayACSImageDict > /JPEG2000GrayImageDict > /AntiAliasMonoImages false /DownsampleMonoImages true /MonoImageDownsampleType /Bicubic /MonoImageResolution 1200 /MonoImageDepth -1 /MonoImageDownsampleThreshold 1.50000 /EncodeMonoImages true /MonoImageFilter /CCITTFaxEncode /MonoImageDict > /AllowPSXObjects false /PDFX1aCheck false /PDFX3Check false /PDFXCompliantPDFOnly false /PDFXNoTrimBoxError true /PDFXTrimBoxToMediaBoxOffset [ 0.00000 0.00000 0.00000 0.00000 ] /PDFXSetBleedBoxToMediaBox true /PDFXBleedBoxToTrimBoxOffset [ 0.00000 0.00000 0.00000 0.00000 ] /PDFXOutputIntentProfile () /PDFXOutputCondition () /PDFXRegistryName (http://www.color.org) /PDFXTrapped /Unknown

    /Description >>> setdistillerparams> setpagedevice