forked from portapack-mayhem/mayhem-firmware
-
Notifications
You must be signed in to change notification settings - Fork 1
ChibiOS Notes
Jimi Sanchez edited this page Feb 12, 2022
·
1 revision
These are miscellaneous useful notes about how ChibiOS functions.
From ChibiOS crt0.c:
Two stacks available for Cortex-M, main stack or process stack.
- Thread mode: Used to execute application software. The processor enters Thread mode when it comes out of reset.
- Handler mode: Used to handle exceptions. The processor returns to Thread mode when it has finished all exception processing.
ChibiOS configures the Cortex-M in dual-stack mode. (CONTROL[1]=1) When CONTROL[1]=1, PSP is used when the processor is in Thread mode.
MSP is always used when the processor is in Handler mode.
- main_stack_size: Used for exception handlers. Yes, really.
- process_stack_size: Used by main().
After chSysInit(), the current instructions stream (usually main()) becomes the main thread.
Original Wiki by sharebrained at Operating System Notes
- First steps
- Intended use and Legality
- Features
- Firmware update procedure
- Description of the hardware
- User interface
- Troubleshooting
-
Applications
- Receivers
- Transmitters
- ADS-B(S)
- APRS
- BHT Xy/EP
- GPS Sim
- Jammer
- Key Fob
- LGE Tool
- Morse
- Burger Pager
- POCSAG
- SSTV
- TEDI/LCR
- TouchTunes
- RDS
- OOK
- Soundboard
- Capture
- Replay
- Calls
- Scanner
-
Tools
- Freq manager
- File manager
- Signal gen
- Wave viewer
- Antenna length
- Wipe SD card
- Options
- Audio
- Radio
- Interface
- Date/Time
- Touchscreen
- Debug
- Memory
- SD Card
- Peripherals
- Temperature
- Buttons Test
- HackRF
- Compile From Source
- Description of the Structure
-
Software Dev Guides
- Create a Simple App
- Widgets
- SD Card
- Access Radio Hardware
- Create a Complex App
- Debug via SWD
- Tools
- Research
- UI Screenshots