May 03, 2021
02:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 03, 2021
02:11 AM
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.
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.
5 Replies
May 03, 2021
04:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 03, 2021
04:37 AM
Why not just use Memtool?
https://www.infineon.com/dgdl/Infineon-Memtool-DevelopmentTools-v04_90-EN.exe?fileId=5546d462518ffd8...
https://www.infineon.com/dgdl/Infineon-Memtool-DevelopmentTools-v04_90-EN.exe?fileId=5546d462518ffd8...
May 03, 2021
05:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 03, 2021
05:07 AM
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.
May 04, 2021
06:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 04, 2021
06:23 AM
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
May 06, 2021
01:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 06, 2021
01:37 AM
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?
May 06, 2021
05:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 06, 2021
05:38 AM
You could do something crazy like import the hex file into a constant array in your application. For example:
const unsigned char hexdata[4096] = { 0x00, 0x04, 0xFE, ... } __at( 0xA0040000 );