+ Reply to Thread
Results 1 to 7 of 7

Thread: Error occurred when I writing BLDC_Sensorless_FOC Example to TLE9879QXW40

  1. #1
    New Member New Member q2213010 is on a distinguished road
    Join Date
    Jul 2021
    Posts
    4
    Points
    45

    Error occurred when I writing BLDC_Sensorless_FOC Example to TLE9879QXW40

    Click image for larger version

Name:	微信图片_20210719190848.jpg
Views:	1
Size:	284.4 KB
ID:	5829Click image for larger version

Name:	微信图片_202107191908481.jpg
Views:	1
Size:	194.3 KB
ID:	5830Click image for larger version

Name:	微信图片_202107191908482.jpg
Views:	1
Size:	206.1 KB
ID:	5831Click image for larger version

Name:	微信图片_202107191908483.jpg
Views:	1
Size:	255.9 KB
ID:	5832Click image for larger version

Name:	微信图片_202107191908484.jpg
Views:	2
Size:	226.7 KB
ID:	5833


    thats any kind of Error for my first day ............. help me, lord! its just a Example, how can this be so hard!

  2. #2
    Beginner Beginner ivernot is on a distinguished road
    Join Date
    Jul 2021
    Location
    Australia
    Posts
    7
    Points
    115
    The Lord helps those who help themselves

    You did not mention what hardware nor what debugger you are using so its hard to be too specific.

    However, the problem is mostly likely is that you debugger/programmer is not correctly configured..
    Goto menu 'Project->Options for project <name>
    Then Select Tab 'Debug' and make sure that the correct debugger tools is selected

    Click image for larger version

Name:	Capture.JPG
Views:	0
Size:	71.8 KB
ID:	5835

    You should press 'Settings' and the debugger will be detected and serial num identified etc.
    NB: SWD should be selected - your screen should look like below

    Click image for larger version

Name:	Capture2.JPG
Views:	0
Size:	72.3 KB
ID:	5836


    Hope that helps. Please let us know how you get on.
    Regards
    Ivan Vernot
    //realtimedesigns.com.au

  3. #3
    New Member New Member q2213010 is on a distinguished road
    Join Date
    Jul 2021
    Posts
    4
    Points
    45

    Reply to ivernot

    Quote Originally Posted by ivernot View Post
    The Lord helps those who help themselves

    You did not mention what hardware nor what debugger you are using so its hard to be too specific.

    However, the problem is mostly likely is that you debugger/programmer is not correctly configured..
    Goto menu 'Project->Options for project <name>
    Then Select Tab 'Debug' and make sure that the correct debugger tools is selected

    Attachment 5835

    You should press 'Settings' and the debugger will be detected and serial num identified etc.
    NB: SWD should be selected - your screen should look like below

    Attachment 5836


    Hope that helps. Please let us know how you get on.
    Regards
    Ivan Vernot
    //realtimedesigns.com.au

    Thank you for your detailed reply Ivernot .
    I tried it once as you gave, Click image for larger version

Name:	1.png
Views:	0
Size:	26.8 KB
ID:	5838
    and got the following results (see the attachment for details):
    The system keeps prompting me "JLink Info: RESET (pin 15) high, but should be low. Please check target hardware.",then "Error: Flash Download failed-Target DLL has been cancelled".
    I am trying to solve this problem by reading the official instructions:
    https://www.infineon.com/dgdl/Infine...5b248fc7622e4b
    https://www.infineon.com/dgdl/Infine...5ba9870bd91373
    https://www.infineon.com/dgdl/Infine...65c32d753c766f

    Can you give me some more suggestions, what should I do next?
    The device I am using is this REF_ENGCOOLFAN1KW(https://www.infineon.com/cms/de/prod...engcoolfan1kw/),
    and Debug is: J-Link LITE-Cortex-M-5V

    But nothing is displayed in the SWD window on the right. The official document says "SWD connection established when "IDCODE" is visible", but I don't know how to make "IDCODE" visible

    Qian SU
    best regards
    ?????

  4. #4
    Beginner Beginner ivernot is on a distinguished road
    Join Date
    Jul 2021
    Location
    Australia
    Posts
    7
    Points
    115
    Hello Qian SU
    I am sorry but I don't know why the ICODE is not visible

    It almost looks like the JLink is somehow not compatible....

    I am using the TLE9879_EvalKit which has an inbuilt Segger debugger (and it works).
    If you can get a JLINK EDU - I know it also works.
    I am not familiar with the J-Link LITE-Cortex-M-5V

    Please let us know how you get on.
    Regards
    Ivan Vernot
    //realtimedesigns.com.au

  5. #5
    New Member New Member q2213010 is on a distinguished road
    Join Date
    Jul 2021
    Posts
    4
    Points
    45
    Hi Ivernot ,

    Because INFINEON engineers have not replied to my question yet, I am trying to turn over the document now, see if I can replace J-Link Lite-Cortex-M-5V with Jlink EDU.

    Sometimes this is really ironic, I spent more expensive price to buy REF_ENGCOOLFAN1KW, but Infineon provides more comprehensive document support to TLE9879_EVALKIT.

    If I know so, I should buy tle9879_evalkit.

    In order to save money, I may find someone, then use the official document of the ref_engcoolfan1kw in my hand to exchange all the files of TLE9879_EVALKIT.

    If you are interested, please let me know.

    And, don't worry, if I found the problem,and successfully solved the problem, I will share it to you

    Qian Su
    best Regards

    Fachhochschule-Anhalt

  6. #6

    Infineon Employee
    Infineon Employee
    Mc-Key will become famous soon enough
    Join Date
    Jan 2018
    Location
    Germany
    Posts
    28
    Maybe I can help you out.

    In general it is not a bad Idear to buy the Evalkit before buying the reference design.
    The Evalkit has pin header for Port Pins and several testpoints to debug your code.

    The purpose of the Reference Designs are to give a reference to a specific challenge of a dedicated application.
    It is not intended to be easy to operate.

    It is much more convenient to develop code with the Evalkit.

    Nevertheless I can probably help you:
    - The J-Link Edu cannot be used to program the TLE987x products since it has 3.3V IOs.
    I recommend to use the included J-Link Lite.
    - Please make shure the SWD cable is connected in the correct orientation on the debug linker.
    - Finally the target device needs to be supplied with 12V over the P and N terminals. (LED on the Board lights up, when supplied)
    P is plus
    N is not plus

    Here is a picture of my setup.
    Click image for larger version

Name:	IMG_0150 (Medium).JPG
Views:	1
Size:	144.1 KB
ID:	5847
    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.

  7. #7
    New Member New Member q2213010 is on a distinguished road
    Join Date
    Jul 2021
    Posts
    4
    Points
    45
    Quote Originally Posted by Mc-Key View Post
    Maybe I can help you out.

    In general it is not a bad Idear to buy the Evalkit before buying the reference design.
    The Evalkit has pin header for Port Pins and several testpoints to debug your code.

    The purpose of the Reference Designs are to give a reference to a specific challenge of a dedicated application.
    It is not intended to be easy to operate.

    It is much more convenient to develop code with the Evalkit.

    Nevertheless I can probably help you:
    - The J-Link Edu cannot be used to program the TLE987x products since it has 3.3V IOs.
    I recommend to use the included J-Link Lite.
    - Please make shure the SWD cable is connected in the correct orientation on the debug linker.
    - Finally the target device needs to be supplied with 12V over the P and N terminals. (LED on the Board lights up, when supplied)
    P is plus
    N is not plus

    Here is a picture of my setup.
    Attachment 5847
    Hi Mc-key,

    Thans for your Reply.

    -The Debugger i'm using is
    SWD-JTAG
    Header SMD 10POS
    1.27mm
    SAMTEC
    FTSH-105-01-F-DV-K-TR
    Is this belong to J-Link Lite ??? I herd v8-Link might not work ,is this the J-Link Edu what your said???

    -I have connected DEBUGER and SWD-Debug Interface with SWD cable. The correct orientation you said, you mean connect the right connect the SWD cable to the corresponding interface, right?

    -Yes, i think the main Setup is correct.

    But still, can you give me some advice for the Question too ? what i have previously talked with Ivernot from #1—— #5

    Qian Su
    Best Regards

+ 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.