HF-BNO08x  0.1.0-dev
Loading...
Searching...
No Matches
dfu_workflow_test.cpp File Reference

DFU workflow integration test for BNO08x on ESP32. More...

#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include <array>
#include <memory>
#include <vector>
#include "../../../inc/bno08x.hpp"
#include "TestFramework.h"
#include "esp32_bno08x_bus.hpp"
Include dependency graph for dfu_workflow_test.cpp:

Macros

#define CHECK_OR_RETURN(cond, fmt, ...)
 

Functions

void app_main (void)
 

Detailed Description

DFU workflow integration test for BNO08x on ESP32.

This suite validates class-aware DFU features on real transport hardware:

  • Driver state transitions around DFU APIs
  • Bootloader helper APIs (EnterBootloader/ExitBootloaderAndReboot)
  • In-memory DFU APIs and validation behavior
  • Full workflow helper (RunDfuFromMemory)

Notes:

  • Requires BNO08x hardware connected over I2C.
  • BOOTN wiring is optional; when BOOTN is not wired, transfer attempts are expected to fail at protocol level but still exercise state/flow behavior.

Macro Definition Documentation

◆ CHECK_OR_RETURN

#define CHECK_OR_RETURN ( cond,
fmt,
... )
Value:
do { \
if (!(cond)) { \
ESP_LOGE(TAG, fmt, ##__VA_ARGS__); \
return false; \
} \
} while (0)

Function Documentation

◆ app_main()

void app_main ( void )