stedgeai
birdnet_stm32.deploy.stedgeai
¶
stedgeai deployment commands: generate, load, and validate on STM32N6.
detect_board()
¶
Auto-detect an STM32 board serial port.
Scans /dev/ttyACM* and returns the first match, or None.
generate(cfg, *, dry_run=False)
¶
Run stedgeai generate to produce the target project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cfg
|
DeployConfig
|
Deployment configuration. |
required |
dry_run
|
bool
|
If True, print the command without executing it. |
False
|
Source code in birdnet_stm32/deploy/stedgeai.py
load_to_target(cfg, *, dry_run=False)
¶
Flash the model to the STM32N6 board via n6_loader.py.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cfg
|
DeployConfig
|
Deployment configuration. |
required |
dry_run
|
bool
|
If True, print the command without executing it. |
False
|
Source code in birdnet_stm32/deploy/stedgeai.py
validate_on_target(cfg, *, dry_run=False)
¶
Run stedgeai validate on the physical STM32N6 board.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cfg
|
DeployConfig
|
Deployment configuration. |
required |
dry_run
|
bool
|
If True, print the command without executing it. |
False
|
Source code in birdnet_stm32/deploy/stedgeai.py
deploy_full(cfg, *, dry_run=False, skip_validate=False)
¶
Run the full deployment pipeline: generate, load, validate.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cfg
|
DeployConfig
|
Deployment configuration. |
required |
dry_run
|
bool
|
If True, print commands without executing them. |
False
|
skip_validate
|
bool
|
If True, skip the on-target validation step. |
False
|