How infineon/ref_esc_48v_80a_foc works
Project type and purpose
• This is an embedded C firmware project for an Electronic Speed Controller (ESC) reference design (REF_ESC_48V_80A_FOC).
• Purpose: implement sensorless Field-Oriented Control (FOC) of a three-phase PMSM using a PSOC™ Control C3 MCU, non-invasive current sensors, and generate PWM/DSHOT signals to drive a power stage for drone motors.
File structure
• Top-level:
• bsps/… – board support package for the ESC reference board (linker scripts, startup, HAL wrappers, auto-generated hardware-config sources)
• configuration/… – user-configurable C modules for hardware interfaces (MCU, pins, clocks) and motor-control library parameters
• deps/… – ModusToolbox library metadata (.mtb, .mtbx)
• main.c – application entry point (initializes hardware, kicks off FOC loops, handles DSHOT decoding)
• build/… – build artifacts, object files, linker reports; ninja/make integration
• templates/… – project templates for other target boards
• Makefile, compile_commands.json, csources, linker scripts, etc.
• Architectural patterns: layered firmware: BSP → HAL/PDL → motor-control library → application
• Key configuration files: bsp.mk, props.json, linker scripts, cycfg.c/.h modules
README for additional insights
• Confirms use of PSOC™ Control C3 MCU (Arm® Cortex®-M33), XENSIV™ TMR current sensors, OptiMOS™ MOSFETs and DSHOT600 for flight-controller communication.
• Describes flight-controller interface, Motor Suite GUI, J-Link debug.
• Highlights discrete hardware (sensor, driver, power stage) and firmware layers (FOC algorithm, DSHOT decoder, UART/retarget-io).