RTDX tests DSP Target to transfer data to PC: a) Create a project, edit the source code (.c/.asm), add header files (.h), library files (.lib) and link command files (.cmd) b) Add and modify the RTDX statements with real-time data transmission including:
#include; RTDX header file (rtdx.h) RTDX_CreateOutputChannel( ochan ); Define a global PC data output channel, the channel name can be any TARGET——INITIALIZE(); Initialize the DSP target system; RTDX_enableOutput( &ochan ); Enable the output channel to write data; status=RTDX_write( &ochan,&data,sizeof(data) ); Send data to PC; RTDX_disableOutput( &ochan ); Disable the output channel to transmit data. Copy code c) Perform data processing, and load the .out file after the test application is compiled and linked. Set RTDX to enable in TOOLS-RTDX-Configration and run debug-run. Problem: When downloading the executable file, it prompts "Data verification failed at address 0x (a certain address) Please verify target memory and memory map." Press Skip prompt. After the download is complete, the messages column prompts: Can't Set Breakpoint: Error 0x00000008/-1076 Error during: Break Point, Cannot set/verify breakpoint at 0x80007958 Breakpoint Manager: An error was encountered attempting to set a breakpoint used for end of program detection. Can't Set Breakpoint: Error 0x00000008/-1076 Error during: Break Point, Cannot set/verify breakpoint at 0x800081B4 Analysis: According to the CMD file, confirm whether your address allocation is in the DSP's allocatable RAM; if the address allocated to the program is not in the RAM segment on the chip, there will definitely be an error. It is possible that the CMD address space does not actually belong to the RAM mapping address range, resulting in failure to read and write normally. In addition, if there is a program running in the DSP chip, an error will also occur when downloading a new program. In this case, you can connect to CCS before starting the DSP. Solution: Change the address allocation in the cmd file to make it consistent with the Memory Map address space in OPTION.