Hello,
I am attempting to use CPU2’s CLA but am getting some strange errors when trying to launch a debug session. Once the debug session launches, I get the following error in the debug pane related to CPU2: “_args_main() at args_main.c (an error occurred: Attempted to read past the end of memory at 0xFFFFFFFFFFFFFFFE @Data)”. In addition, if I try to run main within CPU2, most of the variables values resolve to a similar error stating: “Attempted to read past the end of memory…”.
I created a simplified “sandbox project” that implements the CLA on CPU2 which does not give me these errors and seems to run perfectly fine. I have copied the code (main from CPU1, main from CPU2, the .cla file with the task and linker cmd files) from that sandbox project into my current project but still see the error occur. I compared all the project configuration settings and the debug configuration settings of each project and they match. I tried deleting all the workspace and project files and re-building everything but that did not work either. But since the exact same code works on one project but not on the other I do believe it is probably some configuration somewhere? Looking at this post, https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/918298/ccs-tms320f28388d-debug-error-attempted-to-read-past-the-end-of-memory-at-0xfffffffffffffffe-data, I tried changing the debug DWARF version from 3 to 4 and also tried changing the Floating Point Mode from relaxed to strict but neither of those helped and the program couldn’t seem to find the entry point in main.
I am using CCS version “10.2.0.00009”, compiler version “TI v20.2.2.LTS”. I don’t do anything with the .args section or the c_args _symbol. I have attached a screenshot of the error in question. As seen in the screenshot, I tested for a stack overflow by filling the whole stack memory space with 0xA5 and resetting the program. Once I ran the program I could see that the stack was no where near overflowing. Address 0xB004 – pointed at by the mouse – is the actual location of variable ‘platformCoreConfig’ where the window above says it is at 0xFFFFFFF6.
Thanks