Repository navigation
Memory and Flash Layout
| Region | Address | Contents | Written by |
|---|---|---|---|
| Protected boot block |
0x08000000–0x0801FFFF (128 KiB) |
The device's boot code, its calibration data (0x0801C000) and device settings |
Never written by OpenOSC |
| OpenOSC Recovery |
0x08020000, 128 KiB |
Recovery bootloader | The device's USB update mode (.ZTK) |
| Firmware package header |
0x08040000, 1 KiB |
Header of the installed .OSC
|
Recovery |
| OpenOSC firmware |
0x08040400 up to 0x08200000
|
The application | Recovery |
The calibration data is read at boot and used read-only. Your own oscilloscope corrections are files on the external Flash (Calibration).
Rule: no code may write to 0x08000000–0x0801FFFF. Pull requests that do will not be accepted.
| Region | Address | Used for |
|---|---|---|
| DTCM |
0x20000000, ~128 KiB |
.data, .bss and the main stack at the top |
| AXI SRAM |
0x24000000, 1 MiB |
Frame buffer, DMA buffers, capture record arena, plot buffers, LVGL heap |
| AHB SRAM |
0x30000000, 128 KiB |
DMA-accessible buffers |
| SRAM4 |
0x38000000, 32 KiB |
JSON workspace for settings, theme and calibration files |
| ITCM |
0x00000400, 63 KiB |
Protocol decoder workspace |
The main stack is small, a few KiB of headroom on top of .bss. Do not put large buffers on the stack: use a static buffer in a suitable region (see the JSON workspace in include/openosc/settings/json_workspace.hpp). A stack guard above .bss resets the device through the watchdog if the stack ever reaches it.
Linker scripts: ld/application.ld (firmware) and ld/recovery.ld, ld/recovery_common.ld (Recovery, which runs from AXI RAM).
16 MiB SPI NOR with a FAT file system, mounted by both images. Layout of the files: Files on the Device.
OpenOSC is licensed under the GPL-3.0. Found a mistake on this page? Tell us in Discussions.
Getting started
Instruments
Device
- Menu Map
- Settings Menu
- Calibration
- Screenshots and Captures
- Files on the Device
- Performance Profiles
Hardware Mods
PC connection
Help
Contributors