Part Number: MCU-PLUS-SDK-AM243X
So this topic is based on an error we get, when we are booting from flash. This is based on the topic https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1107631/mcu-plus-sdk-am243x-rprc-image-problem-when-loading-from-flash-by-bootloader-part2/4105498#4105498
We have a problem where we can load our app from CCS and everything runs fine but if the exact same image is run from flash by our Bootloader an abort occurs. This seems to be timing-sensitive, since if you connect to the device "fast enough" and step through the code from 0x00000000 (our start of application) the error does not happen. If you have less breakpoints and run directly again, the abort does happen.
I localized the problem to the ADC based on the last entries in the mentioned thread. It is reproducable happening when I set a hw-breakpoint at the start of ADCPowerUp() in disassembly. I also set a HW-breakpoint to its end at the asm-pop-call. If it reaches the first one at the start and I run it, it will directly go to the data-abort when it tries to write the 0x28001040-register, which is the ADC-CTRL-register and never reach the HW-breakpoint at the end. From the first HW-breakpoint I can even load the symbols and keep simple stepping in CCS, the abort will happen every time it will write the register.

Our call to that function is a lot of lines of code (and so a lot of ticks and ms) later then the Board_driversOpen and System_init() and so on...
And it really depends from where and how "fast" it's started somehow:
laoding via CCS: never had problems
running directly from flash and connecting later on: looping in the data-abort
Running and instantly connecting via CCS and stepping step by step through the loaded app-code after the Bootloader calls the runCpus: no problems.
Running and instantly connecting via CCS and running into the HW-Breakpoint of start of PowerUp and proceeding: data-abort
What is going on here?
Best regards
Felix