Commit Graph

4 Commits

Author SHA1 Message Date
Eduard Iten 19c9e488c2 feat: working basic firmware with legacy USB API
- Successful compilation with Zephyr 4.3.0
- Basic gs_usb USB interface implementation
- CAN-FD support with FDCAN2 interface
- PFET control via UART (simplified from USB CDC)
- Custom board definition for STM32G0B1KBU6
- Deprecated warnings present but functional
- Memory usage: 51KB Flash (9.8%), 21.6KB RAM (14.7%)

Next: Migrate to new USB device stack API to remove warnings
2025-12-08 14:06:01 +01:00
Eduard Iten 7f07622543 Remove USB configuration to fix STM32Cube dependency issues
- Remove USB_DEVICE_STACK_NEXT and related USB configs
- Focus on CAN functionality first to get basic build working
- USB composite functionality to be added later once base works
2025-12-08 12:11:52 +01:00
Eduard Iten 8051f18b9b Fix USB configuration for Zephyr 4.2.0
- Use CONFIG_USB_DEVICE_STACK_NEXT (new USB stack)
- Replace CONFIG_USB_CDC_ACM with CONFIG_USBD_CDC_ACM_CLASS
- Remove deprecated CONFIG_USB_DEVICE_COMPOSITE
- Add CONFIG_HAS_STM32CUBE=y to defconfig (required for USB)
- Remove networking configs (not needed for basic USB CDC)
- Based on actual Zephyr 4.2.0 samples
2025-12-08 12:01:41 +01:00
Eduard Iten 3d328fb7a2 Add initial CAN FD CDC composite firmware
- Custom board definition for STM32G0B1KBU6 (ews_board)
- Zephyr-based firmware with modular architecture
- USB composite device: gs_usb CAN FD + CDC ACM interfaces
- PFET control via CDC text commands (PA8, PB2)
- Status LED on PB4, CAN FD on PB0/PB1
- No external crystal - uses HSI with USB clock recovery
- Ready for build testing with: west build -b ews_board
2025-12-08 11:27:15 +01:00