Closed astroesteban closed 3 years ago
Have you managed to fix the problem?
Yes I did. Thanks! I just updated the config file OpenOCD used.
@astroesteban can you give some details about how to update the config file for OpenOCD? Thanks.
@astroesteban can you please, elaborate on you solution? I have TM4C123GH6PM Tiva-C board and I have updated my .json file in the PlatformIO eventually creating another custom board variant. Now I just get SRST error with no upload.
Hey @amidg all I did was change the configuration file OpenOCD loads from board/ek-tm4c123gxl.cfg
to board/ti_ek-tm4c123gxl.cfg
. You can see more information on how that's changed here. The System Reset (SRST) is a pretty finicky thing. You can read up about it here.
Since posting this issue OpenOCD released version 0.11.0 which seems to be working great for me. I don't know what version PlatformIO ships with but if there's a way to upgrade to the latest OpenOCD (found here I'd recommend you do that too.
Let me know if that works for you. I've since switched over to a CMake + VS Code + Cortex Debug (with OpenOCD & GDB) setup.
Hey @amidg all I did was change the configuration file OpenOCD loads from
board/ek-tm4c123gxl.cfg
toboard/ti_ek-tm4c123gxl.cfg
. You can see more information on how that's changed here. The System Reset (SRST) is a pretty finicky thing. You can read up about it here.Since posting this issue OpenOCD released version 0.11.0 which seems to be working great for me. I don't know what version PlatformIO ships with but if there's a way to upgrade to the latest OpenOCD (found here I'd recommend you do that too.
Let me know if that works for you. I've since switched over to a CMake + VS Code + Cortex Debug (with OpenOCD & GDB) setup.
I have updated both Windows and Linux machine with the OpenOCD 0.11.0 from your link, still the same result. I get SRST error still. I have also updated ti_ek-tm4c123gxl.cfg file with the following lines to test what VS Code terminal will show: source [find interface/ti-icdi.cfg] echo "interface ti-icdi.cfg is working, OK!"
transport select hla_jtag echo "hla_jtag working ok!"
set WORKAREASIZE 0x8000 set CHIPNAME tm4c123gh6pm echo "board MCU design is set correctly"
source [find target/stellaris.cfg] echo "stellaris.cfg is working correctly"
It does not even reach that point because SRST error seems to appear before this file is even executed. Any thoughts?
@amidg Gotcha. I ran that on Mac OS and it seemed to fix it. I'll give it another try this weekend and report back to you.
Hey @amidg all I did was change the configuration file OpenOCD loads from
board/ek-tm4c123gxl.cfg
toboard/ti_ek-tm4c123gxl.cfg
. You can see more information on how that's changed here. The System Reset (SRST) is a pretty finicky thing. You can read up about it here. Since posting this issue OpenOCD released version 0.11.0 which seems to be working great for me. I don't know what version PlatformIO ships with but if there's a way to upgrade to the latest OpenOCD (found here I'd recommend you do that too. Let me know if that works for you. I've since switched over to a CMake + VS Code + Cortex Debug (with OpenOCD & GDB) setup.I have updated both Windows and Linux machine with the OpenOCD 0.11.0 from your link, still the same result. I get SRST error still. I have also updated ti_ek-tm4c123gxl.cfg file with the following lines to test what VS Code terminal will show: source [find interface/ti-icdi.cfg] echo "interface ti-icdi.cfg is working, OK!"
transport select hla_jtag echo "hla_jtag working ok!"
set WORKAREASIZE 0x8000 set CHIPNAME tm4c123gh6pm echo "board MCU design is set correctly"
source [find target/stellaris.cfg] echo "stellaris.cfg is working correctly"
It does not even reach that point because SRST error seems to appear before this file is even executed. Any thoughts?
I kinda figured out what the problem is. After uploading, OPENOCD
resets the MCU, I noticed if I activate PLL the reset stage fails. So, I added this line to platformio.ini
:
upload_command = openocd -f /usr/share/openocd/scripts/board/ti_ek-tm4c123gxl.cfg -c "program .pio/build/lptm4c123gh6pm/firmware.elf verify exit"
And I do the reset myself on the board.
Hey yall,
I'm having a bit of an issue with flashing my TM4C123 board. The first is the warning from OpenOCD to switch to board/ti_ek-tm4c123gxl.cfg. Is there a way I can configure that in platformio? Or is that fixed in a newer release?
Second, I get a bunch of Error: SRST error but the board does get flashed. I can even launch the debugger and step through the code. Is this error something that can be easily fixed on my end?
platform.ini File
Terminal Output