Comprehensive BLDC motor testing suite for ESP32-C6 DevKit-M-1 (noexcept)
This file contains comprehensive testing for BLDC motor control including:
- Bootloader initialization and configuration validation
- Hardware reset sequence (integrated into bootloaderInit)
- Mode auto-detection (bootloader vs parameter mode)
- OTP auto-start scenario handling
- Motor type configuration (BLDC with various pole pairs)
- Hall sensor feedback configuration and testing
- ABN encoder feedback configuration and testing
- FOC control loop configuration (current and velocity)
- Commutation mode testing (FOC_HALL_SENSOR, FOC_ABN, FOC_OPENLOOP)
- Velocity control testing with different targets
- Current control testing with different limits
- Motor startup and shutdown procedures
- Error handling and recovery
- Telemetry monitoring during operation
- Performance benchmarking
- Multi-device scenarios
- Edge cases and fault injection
NEW in v2.0: Integrated Reset & Mode Detection The bootloaderInit() function now includes:
- Hardware reset sequence (RST pin toggle + FAULTN monitoring)
- Auto-detection of bootloader vs parameter mode
- OTP auto-start scenario detection and handling
- Transition from parameter mode to bootloader if needed
All functions are noexcept - no exception handling used.
- Author
- Nebiyu Tadesse
- Date
- 2025
- Copyright
- HardFOC