Hi,
I'm trying to debug a simple hello world project with Lauterbach.
My goal is to program the application on the RAM and debug it with Lauterbach.
I have tried the following two methods to do that, but each of them has a limitation that I have noted below.
1. Putting the board on UART mode and loading the boot and application both on RAM using the provided Python script "uart_bootloader.py"
Then I plugged the Lauterbach probe into J25 and defined the R5-0 as CPU and attach it. After, by loading the .out file, I was able to see the source code as well. However, in this way, each time that I want to reprogram the board using UART, it asks me to do a power cycle. Which is not possible as the board is connected to a remote pc.
2. I put the board on DEV BOOT mode (my device is HS-FS). In this mode, if I'm programming inside the CCS I have to load the load_dmsc.hs_fs.js through the scripting console.
But I'm not using CCS (because my ultimate goal was to make a batch file to include the execution of this script as well as the Lauterbach script)
where my load_dmsc.hs_fs.js is modified to first reset the board at the beginning to be able to reprogram it and also, load the application after loading the ccs_init_elf_file (containing SYSFW and boardcfg).
By doing so, I'm able to see the Hello World printing on my console, and it seems it's successfully programmed.
However, the memory package for your debugger script doesn't mention how the loading program is calculated and it is loaded where.
At this step, if I attach my Lauterbach probe to J25, the debugger is automatically transferred from J28 to J25 (external debugger which is Lauterbach here), meaning that I can not use TI's debugger script anymore to reprogram it. and each time I need to disconnect the Lauterbach probe (so it is switched to the internal debugger), program it, reconnect the probe, define my CPU as R5-0, and attach it. However, this is not pleasant because each time I have to disconnect Lauterbach to load the program with the internal debugger into RAM and then connect the debugger to attach Lauterbach for debugging.
So I tried to implement an equivalent of the load_dmsc.hs_fs.js in Lauterbach which is setting some values for the defined addresses and loading ccs_init_elf_file and then my application files.
I think it's maybe because it's not loaded at the right address. In your Javascript, I can not see where the ccs_init_elf_file is loaded, however, for a non-HS-FS, the loading address is visible. Based on the linker file, I could see the address of the SRAM that is used which is E:0x70080000. But should I put both of these two files (ccs_init_elf_file, and my application back to back? I tried to put only the first one, but the debug port fails).
Can you help me with how should I modify it to be able to either do everything with Lauterbach(programming and debugging) or to be able to do it with a batch file without changing the connection or do the power cycle manually?
Thanks,
Boshra