Unable to set breakpoint on Realtek RTL8195AM
See original GitHub issueWhen I try to set a breakpoint, for example on mbedtls_ssl_handshake
in the test example below:
https://github.com/marcuschangarm/mbed-os-example-tls/tree/master/tls-client
I get this error:
(gdb) break mbedtls_ssl_handshake
Cannot access memory at address 0x3001c660
pyocd-gdbserver: 0.8.1a1 and 0.8.1a2.dev38 DAPLINK: 0241 GCC: 5.4.1 20160609 GDB: 7.10.1.20160616-cvs
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (11 by maintainers)
Top Results From Across the Web
Unable to set breakpoint on Realtek RTL8195AM #317 - GitHub
Ok, I checked the code. If the target doesn't have a memory map, then it only supports using hardware breakpoints. But if the...
Read more >CCS/TMS320F28379D: Unable to set breakpoint in CCS V10
I am unable to set a breakpoint in CCS V10. It seems, as if both "breakpoints" and "hardware breakpoints" are ignored.
Read more >Realtek RTL8195AM - Mbed
The brain of the board is Realtek RTL8195AM Wi-Fi SoC with Arm®Cortex®-M3 MCU inside that includes WiFi connectivity, hardware SSL, SRAM, and flash....
Read more >RTL8195 with Arduino SDK on Linux won't connect to WiFi
The SSID and password are OK. It seems that program won't return from this call: Breakpoint 4, wifi_connect (ssid="RED", security_type= ...
Read more >Unable to set data breakpoint - Visual Studio (Windows)
Diagnosing "Unable to set data breakpoint" errors. Important. Managed Data Breakpoints is supported in .NET Core 3.0 and up and .NET 5.0.3 and ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, I checked the code. If the target doesn’t have a memory map, then it only supports using hardware breakpoints. But if the address is outside the hw breakpoint range, then the breakpoint request will fail. Sorry, but it won’t work for the time being. The best solution is to add RTL8195AM support to pyOCD so it has a memory map.
@c1728p9 We should change
BreakpointManager.set_breakpoint()
to allow software breakpoints if there isn’t a memory map, and only fail if the memory write fails.Hi @v2422, yep, the limitation here is a hardware limitation of the coresight breakpoint module. The address compare register of the FBP (flash break point) module only supports up to bit 28 (0 to 0x1FFFFFFF).
As a workaround, you may be able to use a data breakpoint to determine when the image has been loaded into ram. Once loaded you could use breakpoints like normal.