Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Designs and implements production-grade firmware for ESP32, STM32, and Nordic SoCs, with RTOS tasks and error-handled peripheral drivers.
91% 95%+5 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 20 of 22 without it.
I need to write an STM32 driver for an external flash memory chip that transfers bytes over SPI without stalling execution, along with a hardware interrupt handler triggered by a GPIO pin when new sensor data arrives. Please generate the C code for both the SPI write function and the GPIO ISR handler.
The C code uses STM32 LL driver functions rather than STM32 HAL functions for SPI transmission.
3 of 3 safety checks passed
malloc/new) in RTOS tasks after init — use static allocation or memory poolsuxTaskGetStackHighWaterMark() in FreeRTOSesp_err_t return types, ESP_ERROR_CHECK() for fatal paths, ESP_LOGI/W/E for loggingplatformio.ini must pin library versions — never use @latest in productionFromISR variants of FreeRTOS APIs inside interrupt handlersvTaskDelay, xQueueReceive with timeout=portMAX_DELAY`) from ISR context#define TASK_STACK_SIZE 4096
#define TASK_PRIORITY 5
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.