infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 19 of 19

Thread: makefile problem

  1. #11
    Beginner Beginner enricol is on a distinguished road
    Join Date
    Feb 2019
    Posts
    10
    Points
    85
    Thanks, this solved the problem!
    Now, how can I print in the UDE simulated I/O?
    If I put a printf in core0_main, the memtool doesn't complete the loading (image below) and when I start debugging the IDE ask me the location of file "vio_virtio.c" and if I give it, the debugging session get stuck into that function.
    I searched in this forum but I didn't find any solution.

    Click image for larger version

Name:	Capture.PNG
Views:	0
Size:	23.1 KB
ID:	3862

  2. #12
    Advanced Advanced HIGHTEC.henk-piet.glas is on a distinguished road
    Join Date
    May 2017
    Posts
    76
    Points
    1432.5
    Quote Originally Posted by enricol View Post
    Thanks, this solved the problem!
    Now, how can I print in the UDE simulated I/O?
    If I put a printf in core0_main, the memtool doesn't complete the loading (image below) and when I start debugging the IDE ask me the location of file "vio_virtio.c" and if I give it, the debugging session get stuck into that function.
    I searched in this forum but I didn't find any solution.

    Attachment 3862
    Nice one. You'll need to study chapter 5.3 of this application note. Chapter 5.4 subsequently shows how to enable to simulated IO debug window, but I guess you already figured that one out.

    Best regards,

    Henk-Piet Glas

    Principal Technical Specialist
    Embedded Software

  3. #13
    Beginner Beginner enricol is on a distinguished road
    Join Date
    Feb 2019
    Posts
    10
    Points
    85
    Got it!
    The other problem related to debugging that I'm experiencing is that sometimes, when I'm debugging, at a certain time the program stops on the instruction reported below (instead of continuing with the execution):

    Click image for larger version

Name:	Capture.PNG
Views:	0
Size:	16.1 KB
ID:	3865

    What is causing it?

  4. #14
    Advanced Advanced HIGHTEC.henk-piet.glas is on a distinguished road
    Join Date
    May 2017
    Posts
    76
    Points
    1432.5
    Quote Originally Posted by enricol View Post
    Got it!
    The other problem related to debugging that I'm experiencing is that sometimes, when I'm debugging, at a certain time the program stops on the instruction reported below (instead of continuing with the execution):

    Attachment 3865

    What is causing it?
    Looks like you're running into a trap. Traps indicate a hardware violation which, in your case, seem to have a spurious nature.

    What you have todo is to find out the trap class. Typically trap handlers halt the target by means of a debug instruction (IfxCpu_Trap.c). When that happens you will be able to read its halted vector address from the disassembly window of your debugger. The trap class is then established using the following formula:

    Code:
    class = (trap address - BTV)/32
    Where BTV is the start address of the vector table. The trap class, combined with the trap identification number (called TIN) will provide additional hints of what type of error is triggering it. The TIN typically resides in register D15 when the trap handler is hit. You will have to consult table 6.1 of the Infineon tricore architecture manual (volume 1) to find out which specific trap definition has been triggered.

    You will also have to try and find out where the PC is located at the precise moment the trap is being triggered. You can do this by consulting the stacktrace window when the trap has been hit. That will give you the precise instruction that causes the trap and combined with the trap definition it should give you a pretty good feel of what's going wrong, and hence how to solve it.

    Henk-Piet Glas

    Principal Technical Specialist
    Embedded Software

  5. #15
    Beginner Beginner enricol is on a distinguished road
    Join Date
    Feb 2019
    Posts
    10
    Points
    85
    Thanks.
    Besides, do you know if it is possible to use the wake button as a general purpose button? How can I override its ISR?
    I checked in the documentation but I wasn't able to find what I was searching for.

  6. #16
    Advanced Advanced HIGHTEC.henk-piet.glas is on a distinguished road
    Join Date
    May 2017
    Posts
    76
    Points
    1432.5
    Quote Originally Posted by enricol View Post
    Thanks.
    Besides, do you know if it is possible to use the wake button as a general purpose button? How can I override its ISR?
    I checked in the documentation but I wasn't able to find what I was searching for.
    Judging from the PCB schematics and datasheet this is not possible; switch S102 is dedicated to the TLF35584 voltage regulator.

    Best regards,

    Henk-Piet Glas

    Principal Technical Specialist
    Embedded Software

  7. #17
    Beginner Beginner enricol is on a distinguished road
    Join Date
    Feb 2019
    Posts
    10
    Points
    85
    I thought the same, but I wanted to be sure.

    I also wanted to use the iom demo, but it seems like in the folder "iLLD_1_0_1_9_0_TC2xx_Drivers_And_Demos_Releas e" provided there are some missing files (IfxIom_Iom.h and Iom/Iom/IfxIom_Iom.h).
    Do you know where I can find these missing pieces?

  8. #18
    Advanced Advanced HIGHTEC.henk-piet.glas is on a distinguished road
    Join Date
    May 2017
    Posts
    76
    Points
    1432.5
    Quote Originally Posted by enricol View Post
    I thought the same, but I wanted to be sure.

    I also wanted to use the iom demo, but it seems like in the folder "iLLD_1_0_1_9_0_TC2xx_Drivers_And_Demos_Releas e" provided there are some missing files (IfxIom_Iom.h and Iom/Iom/IfxIom_Iom.h).
    Do you know where I can find these missing pieces?
    Sorry, I don't. Maybe someone else knows. Alternatively you can run it by your local Infineon representative. Perhaps they can help.

    Best regards,

    Henk-Piet Glas

    Principal Technical Specialist
    Embedded Software

  9. #19
    Beginner Beginner enricol is on a distinguished road
    Join Date
    Feb 2019
    Posts
    10
    Points
    85
    I sent many email but no one is answering... is there any way you can help me?

    I found the attached library but it is related to the hightech toolchain, instead I am using the baseframeworks provided by the myicp webpage.
    I tried to port that library to my current environment but ,even if it compiles correctly, nothing works at execution time .

    Thanks in advance
    ?????
    Last edited by enricol; Mar 18th, 2019 at 09:13 AM.

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