Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi,
I have imported the hello world M4 project. It builds fine and debugs fine when no changes are made to the code.
Here is the original code from the SDK that debugs:
#include <stdio.h> #include <kernel/dpl/DebugP.h> #include "ti_drivers_config.h" #include "ti_drivers_open_close.h" #include "ti_board_open_close.h" void hello_world_main(void *args) { /* Open drivers to open the UART driver for console */ Drivers_open(); Board_driversOpen(); DebugP_log("Hello World!\r\n"); Board_driversClose(); Drivers_close(); }
When debugging, I am able to debug on the M4 core with no issues. But, when I add code to the hello_world.cpp, while building the project is fine, I am not able to debug this code. Here is the code I am trying to debug. Even whenf flashing the project to the M4 core, I only see the "hello world" output; not my additional output from the code.The only changes that were made are in hello_world.cpp:
#include <stdio.h> #include <string.h> #include <kernel/dpl/DebugP.h> #include "ti_drivers_config.h" #include "ti_drivers_open_close.h" #include "ti_board_open_close.h" typedef unsigned int uint; /// Sample class that sets a string class Foo { public: Foo(void); static const uint uStrLen = 20U; char mystr[uStrLen + 1U]; }; // class Foo Foo::Foo(void) { strncpy(mystr, "Testing\r\n", uStrLen); mystr[uStrLen] = '\0'; } /// Declare static class instance Foo foo; void hello_world_main(void *args) { /* Open drivers to open the UART driver for console */ Drivers_open(); Board_driversOpen(); DebugP_log("Hello World!\r\n"); DebugP_log(foo.mystr); Board_driversClose(); Drivers_close(); }
When I try to debug this code on the M4 core, I get these error messages:
BLAZAR_Cortex_M4F_0: GEL Output: CPU reset (soft reset) has been issued through GEL. BLAZAR_Cortex_M4F_0: File Loader: Verification failed: Values at address 0x00014C40 do not match Please verify target memory and memory map. BLAZAR_Cortex_M4F_0: GEL: File: C:\dev\ccs\hello_world_cpp_am243x-evm_m4fss0-0_nortos_ti-arm-clang\Debug\hello_world_cpp_am243x-evm_m4fss0-0_nortos_ti-arm-clang.out: a data verification error occurred, file load failed.
Why can I not add/edit code on this project and then debug it? The issue seems to be with Code Composer Studio. How can we address and fix this issue so that I may edit this project and debug off of the M4 core? This same code runs and debugs on the R5 core.