read_memory
Read a block of STM32 target memory by address and length, returning raw bytes plus a little-endian value so peripheral register bit positions are not misread.
Instructions
Reads a block of memory from the target. Returns the raw bytes in memory order, plus value_le -- the same bytes as one little-endian value -- for a 1/2/4/8-byte read. Use value_le for a peripheral register: the raw string arrives least-significant-byte first, so reversing it by hand is where bit positions get misread.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | Yes | Number of bytes to read. | |
| address | Yes | Hex address to read from, e.g., '0x20000000'. | |
| session | No | Optional debug-session name. Omit for the default target. |