infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 8 of 8

Thread: XMC1300 debugger

  1. #1
    Sam
    Guest

    XMC1300 debugger

    Hi,
    Currently I am working with XMC1302 device.
    I have buy XMC1300 boot kit which have on board debugger.
    I have made my own custom board and I want to use debugger of boot kit.
    Is it possible to use boot kit debugger for custom board programming?
    If yes than How can this possible?

    Regards,
    Sam

  2. #2

    Infineon Employee
    Infineon Employee
    Juergen is on a distinguished road
    Join Date
    Sep 2011
    Location
    Singapore
    Posts
    37
    Points
    52.3046875
    Hi Sam,

    If you have followed the schematic for the XMC1302 boot kit then you will have a connector on your custom board to which you can connect the debugger board from the boot kit. You just program your board the same way as if you were programming the boot kit. There is a cable supplied with the boot kit.

    Best Regards
    Jurgen
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    Sam
    Guest
    Quote Originally Posted by Juergen View Post
    Hi Sam,

    If you have followed the schematic for the XMC1302 boot kit then you will have a connector on your custom board to which you can connect the debugger board from the boot kit. You just program your board the same way as if you were programming the boot kit. There is a cable supplied with the boot kit.

    Best Regards
    Jurgen
    Thanks Juergen,
    I have connect my custom board as per schematic and able to programming to my custom board.
    As per schematic SWD is at P0.14 and SWCLK at P0.15.
    When I have connect my custom board with same pins I am able to programming.
    but When I have connect SWD at P1.3 and SWCLK at P1.2, I am not able to programming. error occured as follow:
    The debug instrument IO could not be initialized.
    An error occured while connecting to the target. The exact cause is unknown, but possibly, the J-link is not connected to the target properly.
    Is it possible to use P1.3 and P1.2 for debugging? How?

    Regards,
    Sam
    Last edited by Sam; Dec 16th, 2013 at 03:37 AM.

  4. #4
    tys is on a distinguished road
    Join Date
    Mar 2013
    Posts
    37
    Points
    67.578125
    Hi, Sam,
    In order to use SWD for P1.3 and SWCLK at P1.2, the BMI value need to set SWD1 (debug). From what you described, maybe your XMC1302 device's BMI value is program to SWD0 since it is working using P0.14 and P0.15 pin.
    So, first connect SWD at P0.14 and SWCLK at P0.15. Open DAVE3. In the main menu of the DAVE3, click the "BMI Get Set" icon as highlight in red circle. Then, the "BMI Get Set" dialog box will appear, Click the "Select" pull down bar, select -> User Mode (debug) SWD1. Then, click the "Set BMI" button. The BMI value of the XMC1302 device should be change to SWD1 (debug). Next, you connect SWD to P1.3 and SWCLK to P1.2. You should be able to do the programming via P1.3 and P1.2.
    Click image for larger version

Name:	ChangeBMI.JPG
Views:	0
Size:	28.8 KB
ID:	467
    Click image for larger version

Name:	GetSetBMI_gui.JPG
Views:	1
Size:	39.9 KB
ID:	468

  5. #5
    tys is on a distinguished road
    Join Date
    Mar 2013
    Posts
    37
    Points
    67.578125
    Hi, Sam,
    Please download the latest Segger firmware v478m if you want to program the BMI to SWD1(debug). The segger download link is : http://www.segger.com/jlink-software.html.
    Under the J-Link software & documentation pack for Windows section, click the Download button. When the download dialog box pop out, under the " Having a problem finding the serial number?" section, choose -> I do not have a serial number because ...... From there, you would be able to download the latest Segger firmware. Please unzip and run the setup file of the Segger firmware downloaded. Next, when you open the Get Set BMI dialog box of DAVE3, it will prompt you whether to update the Segger firmware of your XMC1302 boot kit. Choose yes, and the Segger firmware of your XMC1302 boot kit debugger will be updated.

  6. #6
    Sam
    Guest

    BMI setting problem

    Thanks,
    I have update segger J link, and able to debug program for only one time.
    When new chip is connected, I getting ASC bootstrap Load mode in Get BMI.
    Than I have set BMI at User Mode(Debug)SWD0. and able to debug program for one time. when I trying to debug program on same chip again
    I getting following error:
    The debug instrument IO could not be initialized.
    An error occured while connecting to the target. The exact cause is unknown, but possibly, the J-link is not connected to the target properly.
    When I select BMI get set for same chip, and click on Get BMI, I getting following error:
    > Could not set BMI value.Please check the connection
    > Updae drivers and try again.
    I have check this with two chip but in both same problem occurs.
    What should be problem?
    Regards,
    Sam.

  7. #7
    tys is on a distinguished road
    Join Date
    Mar 2013
    Posts
    37
    Points
    67.578125
    Hi, Sam,
    May I know how is your board setup? Is the SWD and SWDCLK of the debugger connect to P0.14 and P0.15 of XMC1302 device. Also, is the VDD and Gnd from the debugger connect to VDD and Gnd of the XMC1302 device? Please check the VDD pin of the XMC1302 device has 3.3V or 5V.

  8. #8
    Sam
    Guest
    Thanks again,
    I have just replace XMC1302 device with newer on XMC1302 bootkit. so I think every connections are ok. I have also check VDD and GND.

+ Reply to Thread

Tags for this Thread

Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.