question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to set breakpoint on Realtek RTL8195AM

See original GitHub issue

When 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:open
  • Created 6 years ago
  • Comments:15 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
flitcommented, Jul 6, 2017

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.

0reactions
c1728p9commented, Aug 17, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found