TC4xx promo banner Banner_Aurix_Competition Banner_AURIX_Security-Solution Banner_AURIX_Safety_Products ShieldBuddy TC275 Banner_AURIX_DevelopmentStudio


+ Reply to Thread
Results 1 to 6 of 6

Thread: Flash and debug .hex file in Aurix Development Studio

  1. #1
    Beginner Beginner toppanto96 is on a distinguished road
    Join Date
    Mar 2021
    Posts
    4
    Points
    50

    Flash and debug .hex file in Aurix Development Studio

    Hi!

    I'm using a TC38x MCU and I have been searching for a solution to flash and debug an already existing .hex file in Aurix Development Studio.

    The MCU is connected to the PC via a MiniWiggler V3 DAP and I would like to load an external .hex file onto the MCU. I understand that I should create a debug/flash configuration in order to execute the flashing, but i did not find any way to import/add and external .hex file to the project.

    Shall I modify the existing path where the IDE searches for the generated hex file after building? Because it's an external hex file it would be great if i did not need to build the whole project every time i would like to flash the binary file.

    I appreciate every kind of related knowledge who has already done similar task.

    Thank you for your response in advance.

  2. #2
    Advanced Advanced UC_wrangler will become famous soon enough
    Join Date
    Jun 2019
    Posts
    485
    Points
    10050

  3. #3
    Beginner Beginner toppanto96 is on a distinguished road
    Join Date
    Mar 2021
    Posts
    4
    Points
    50
    I was also planning to debug the external file so I thought it would be easier if I could do the flashing and debugging with the same program.

  4. #4
    Intermediate Intermediate
    Infineon Employee
    Infineon Employee
    teoBits is on a distinguished road
    Join Date
    Nov 2019
    Posts
    89
    Points
    1190
    If you need to debug the hex file with the ADS, you need to compile and flash it with ADS, you cannot use the debugger of ADS (TASKING) to debug an external hex file
    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.

  5. #5
    Beginner Beginner toppanto96 is on a distinguished road
    Join Date
    Mar 2021
    Posts
    4
    Points
    50
    The mentioned hex file is compiled with Tasking compiler, but not in ADS. According to what you said I assume it could be possible to somehow attach the hex file to a new empty project, right?

  6. #6
    Advanced Advanced UC_wrangler will become famous soon enough
    Join Date
    Jun 2019
    Posts
    485
    Points
    10050
    You could do something crazy like import the hex file into a constant array in your application. For example:

    Code:
    const unsigned char hexdata[4096] = { 0x00, 0x04, 0xFE, ... } __at( 0xA0040000 );

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