Debugger Error: Loading failed: A problem occurred during downloading

12-Nov-2024

When your application is fully located in RAM, the debugger may fail to download and run it on the target. In that case, the debugger issues an error:

Loading failed: A problem occurred during downloading


Possible solution

Certain parts of the internal memory are automatically cleared during power-on and soft-reset due to the security reasons of the TriCore/AURIX microcontroller. This can be prevented by setting the RAMIN bit-field in the register UCB_DFLASH to Don't init RAM after power on reset. This requires a third-party flash tool such as the free MemTool from Infineon. After setting this bit-field, the application can be loaded and successfully run from RAM using the debugger.


More resources

Was this answer helpful?