Hi. I am using JLink on OSX, targeting an STM32L496AG micro.
When connecting via command link JLinkExe, it seems like the RTT control block is not automatically found.
Invocation is:
While JLinkExe connects and controls the core OK without issue, it does not seem to make RTT output available to the JLinkRTTClient running in another shell.
Is this expected behavior?
However, when using Ozone for debugging, the RTT block is detected automatically upon connection, and all output appears through JLinkRTTClient.
After some tinkering, the one workaround I found was to force a manual search, by putting this into an `rtt.jlink` file:
And running:
In this case, it does appear that RTT output is picked up and visible in the JLinkRTTClient.
A minor note is that I see the RAM size listed for the STM32L496AG MCU in the Segger list is 256KB, whereas this part actually has 320KB of SRAM. Possibly an incorrect search is being done? Although I am not sure why that would work in Ozone and not CLI.
When connecting via command link JLinkExe, it seems like the RTT control block is not automatically found.
Invocation is:
JLinkExe -device STM32L496AG -if swd -speed auto -autoconnect 1
While JLinkExe connects and controls the core OK without issue, it does not seem to make RTT output available to the JLinkRTTClient running in another shell.
Is this expected behavior?
However, when using Ozone for debugging, the RTT block is detected automatically upon connection, and all output appears through JLinkRTTClient.
After some tinkering, the one workaround I found was to force a manual search, by putting this into an `rtt.jlink` file:
h
r
exec SetRTTSearchRanges 0x20000000 0x50000
And running:
JLinkExe -device STM32L496AG -if swd -speed auto -autoconnect 1 -CommandFile rtt.jlink
In this case, it does appear that RTT output is picked up and visible in the JLinkRTTClient.
A minor note is that I see the RAM size listed for the STM32L496AG MCU in the Segger list is 256KB, whereas this part actually has 320KB of SRAM. Possibly an incorrect search is being done? Although I am not sure why that would work in Ozone and not CLI.