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
6 changes: 5 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ jobs:

- name: Build NRF firmware
run: |
pio run
platformio run --environment oeplnrf

- name: Build ESP32 firmware
run: |
platformio run --environment oeplesp32-s3-N16R8
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
curl -L https://raw.githubusercontent.com/microsoft/uf2/master/utils/uf2families.json -o uf2families.json
chmod +x uf2conv.py

- name: Install intelhex
run: pip install --upgrade intelhex

- name: Install esptool
run: pip install esptool

- name: Build Firmware
run: |
pio run
Expand All @@ -41,6 +47,20 @@ jobs:
--family 0xADA52840 \
--output firmware_output/production-${TAG_NAME}.uf2

- name: Build esp32-s3-N16R8 Firmware
run: |
pio run --environment oeplesp32-s3-N16R8
mkdir oeplesp32-s3-N16R8
cp ~/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin oeplesp32-s3-N16R8/boot_app0.bin
cp .pio/build/oeplesp32-s3-N16R8/firmware.bin oeplesp32-s3-N16R8/firmware.bin
cp .pio/build/oeplesp32-s3-N16R8/bootloader.bin oeplesp32-s3-N16R8/bootloader.bin
cp .pio/build/oeplesp32-s3-N16R8/partitions.bin oeplesp32-s3-N16R8/partitions.bin
cd oeplesp32-s3-N16R8
esptool.py --chip esp32-s3 merge_bin -o merged-firmware.bin --flash_mode dio --flash_freq 80m --flash_size 16MB 0x0000 bootloader.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 firmware.bin
cd ~/
cp oeplesp32-s3-N16R8/firmware.bin firmware_output/oeplesp32-s3-N16R8.bin
cp oeplesp32-s3-N16R8/merged-firmware.bin firmware_output/oeplesp32-s3-N16R8_full.bin

- name: Upload Release Assets
uses: svenstaro/upload-release-action@v2
with:
Expand Down
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# NRF52840 OEPL BLE
# OEPL BLE Firmware for NRF52840 and ESP32

## TODO List

- [ ] **Manufacturer ID** - Configure BLE manufacturer data
- [ ] **Compression** - Implement compressed image upload
- [ ] **Power Consumption** - Improve power efficiency
- [ ] **Display** - Fix display issues
- [ ] **Display Types** - Implement more display types
- [ ] **Dynamic Config** - Implement dynamic configuration
33 changes: 29 additions & 4 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[env]
lib_deps =
https://github.com/bitbank2/bb_epaper.git
https://github.com/pfalcon/uzlib

[env:oeplnrf]
#build_unflags = -DUSE_LFXO
#build_flags = -DNRF52840_XXAA -DUSE_LFRC -DNRF52_S140 -DNRF52 -DNRF52840
build_flags = -DTARGET_NRF
#lib_compat_mode = soft
platform = https://github.com/maxgerhardt/platform-nordicnrf52
#platform = nordicnrf52
Expand All @@ -10,7 +16,26 @@ board_build.variant = oeplnrf
board = xiaoblesense_adafruit
#board = oeplnrf
monitor_speed = 115200
lib_deps =
https://github.com/bitbank2/bb_epaper.git
https://github.com/pfalcon/uzlib
build_src_filter = +<*> -<main_mbed.cpp>
build_src_filter = +<*> -<main_mbed.cpp>

[env:oeplesp32-s3-N16R8]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
framework = arduino
build_flags =
-DTARGET_ESP32
-DBOARD_HAS_PSRAM
-DARDUINO_USB_MODE=1
-DARDUINO_USB_CDC_ON_BOOT=1
-DCONFIG_FREERTOS_WATCHDOG_TIMEOUT_S=120
board_build.filesystem = littlefs
board = esp32-s3-devkitc-1
board_build.partitions = default_16MB.csv
board_build.flash_mode=qio
board_build.arduino.memory_type = qio_opi
board_build.psram_type=qspi_opi
board_build.usb_mode = hardware
board_upload.maximum_size = 16777216
board_upload.maximum_ram_size = 327680
board_upload.flash_size = 16MB
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
Loading