Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
version = 1

exclude_patterns = [
"lib/bme68x/*",
"lib/bsec3210/*",
"lib/cube/*",
"lib/fat/*"
]

[[analyzers]]
name = "cxx"
61 changes: 1 addition & 60 deletions .github/workflows/testbuildrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,20 +184,6 @@ jobs:
pip install --upgrade platformio
pio pkg install --environment dummy

# - name: Install STM32CubeWL
# uses: actions/checkout@v4
# with:
# repository: STMicroelectronics/STM32CubeWL
# path: temp/framework-stm32cubewl
# submodules: true

# - name: Add stm32wle to PlatformIO platforms
# run: |
# cp -f .github/workflows/platform.json /home/runner/.platformio/platforms/ststm32/platform.json
# cp -r temp/framework-stm32cubewl /home/runner/.platformio/packages/framework-stm32cubewl
# cp -f .github/workflows/package.json /home/runner/.platformio/packages/framework-stm32cubewl/package.json
# cp /home/runner/.platformio/packages/framework-stm32cubewl/Utilities/misc/stm32_systime_if_template.h /home/runner/.platformio/packages/framework-stm32cubewl/Utilities/misc/stm32_systime_if.h

- name: Check PlatformIO
run: |
pio system info
Expand All @@ -218,52 +204,7 @@ jobs:
run: |
pio run -t compiledb

# cloud build is currently not working...
# - name: Build
# run: |
# pio run -e production

- name: Collect coverage into XML report
run: |
gcovr --sonarqube --gcov-ignore-parse-errors > coverage.xml

- name: Run sonar-scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner \
--define sonar.projectKey=Strooom_BME688-ML-v1-SW \
--define sonar.organization=strooom \
--define sonar.coverageReportPaths=coverage.xml

# - name: Attach Binary to Workflow run
# id: attachbinarytoworkflowrun
# uses: actions/upload-artifact@v4
# with:
# name: ${{ steps.selectversion.outputs.buildversionfilename }}.bin
# path: .pio/build/production/firmware.bin
# if-no-files-found: error

# - name: Release when on main branch
# id: createrelease
# uses: actions/create-release@v1
# if: ${{ steps.versioninfo.outputs.branchname == 'main'}}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ steps.selectversion.outputs.buildversion }}
# release_name: Release ${{ steps.selectversion.outputs.buildversion }}
# draft: false
# prerelease: false

# - name: Attach Binary to Release
# id: attachbinarytorelease
# uses: actions/upload-release-asset@v1
# if: ${{ steps.versioninfo.outputs.branchname == 'main'}}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.createrelease.outputs.upload_url }}
# asset_path: .pio/build/production/firmware.bin
# asset_name: ${{ steps.selectversion.outputs.buildversionfilename }}.bin
# asset_content_type: application/octet-stream
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
![workflow](https://github.com/strooom/BME688-ML-v1-SW/actions/workflows/testbuildrelease.yml/badge.svg)
[![codecov](https://codecov.io/gh/Strooom/BME688-ML-v1-SW/branch/develop/graph/badge.svg?token=1YU44QFM6B)](https://codecov.io/gh/Strooom/BME688-ML-v1-SW)
[![License: CC BY-NC-SA 4.0](https://img.shields.io/badge/License-CC_BY--NC--SA_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc-sa/4.0/)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=strooom_bme68x-ml-sw&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=strooom_bme68x-ml-sw)

[![DeepSource](https://app.deepsource.com/gh/Strooom/BME688-ML-SW.svg/?label=active+issues&show_trend=true&token=zlNcnPfKz-hS2mY2oRJuvLvB)](https://app.deepsource.com/gh/Strooom/BME688-ML-SW/)
[![DeepSource](https://app.deepsource.com/gh/Strooom/BME688-ML-SW.svg/?label=code+coverage&show_trend=true&token=zlNcnPfKz-hS2mY2oRJuvLvB)](https://app.deepsource.com/gh/Strooom/BME688-ML-SW/)

# Firmware for the BME688-ML PCB

This repository will hold the firmware for a MachineLearning application with the BME688 sensor.
The purpose is to build a smart sensor which can be trained by Bosch AI Studio to detect gases. Both the training and the inference can be done on the sensor. The sensor interfaces to a 'parent' device using the QWIIC I2C.

The hardware can be found here : https://github.com/Strooom/BME688-ML-V1-PCB

Loading