Skip to content

Commit c447bed

Browse files
authored
chore: Update dependencies (#9)
* chore: Update dependencies * update build and fix sa * actually fix sa * update cmake dep
1 parent 5f35059 commit c447bed

File tree

11 files changed

+56
-28
lines changed

11 files changed

+56
-28
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
- name: Checkout repo
1212
uses: actions/checkout@v4
1313
with:
14-
submodules: 'recursive'
14+
submodules: true
1515

1616
- name: Build Main
1717
uses: espressif/esp-idf-ci-action@v1
1818
with:
19-
esp_idf_version: v5.2.2
19+
esp_idf_version: release-v5.4
2020
target: esp32s3
2121
path: '.'

.github/workflows/package_main.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ on:
55
branches: [main]
66
release:
77
types: [published]
8+
workflow_dispatch:
89

910
jobs:
1011
build:
1112

1213
runs-on: ubuntu-latest
1314
continue-on-error: false
1415

16+
outputs:
17+
zipfile-id: ${{ steps.zip_step.outputs.artifact-id }}
18+
1519
steps:
1620
- name: Checkout repo
1721
uses: actions/checkout@v4
@@ -21,19 +25,22 @@ jobs:
2125
- name: Build Main Code
2226
uses: espressif/esp-idf-ci-action@v1
2327
with:
24-
esp_idf_version: v5.2.2
28+
esp_idf_version: release-v5.4
2529
target: esp32s3
2630
path: '.'
2731
command: 'idf.py build'
2832

2933
- name: Upload Build Outputs
3034
uses: actions/upload-artifact@v4
35+
id: zip_step
3136
with:
3237
name: build-artifacts
3338
path: |
39+
build/*.bin
40+
build/*.elf
3441
build/bootloader/bootloader.bin
3542
build/partition_table/partition-table.bin
36-
build/*.bin
43+
build/flasher_args.json
3744
build/flash_args
3845
3946
- name: Attach files to release
@@ -42,7 +49,21 @@ jobs:
4249
with:
4350
files: |
4451
build/*.bin
52+
build/*.elf
4553
build/bootloader/bootloader.bin
4654
build/partition_table/partition-table.bin
55+
build/flasher_args.json
4756
build/flash_args
4857
58+
package:
59+
name: Package the binaries into an executables for Windows, MacOS, and Linux (Ubuntu)
60+
needs: build
61+
strategy:
62+
matrix:
63+
os: [windows-latest, macos-latest, ubuntu-latest]
64+
runs-on: ${{ matrix.os }}
65+
steps:
66+
- uses: esp-cpp/[email protected]
67+
with:
68+
zipfile-id: ${{ needs.build.outputs.zipfile-id }}
69+
programmer-name: 'camera-display_programmer'

.github/workflows/static_analysis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@ jobs:
99
steps:
1010
- name: Checkout repo
1111
uses: actions/checkout@v4
12-
with:
13-
submodules: 'recursive'
1412

1513
- name: Run static analysis
1614
uses: esp-cpp/StaticAnalysis@master
1715
with:
1816
# Do not build the project and do not use cmake to generate compile_commands.json
1917
use_cmake: false
2018

21-
# Use the 5.2 release version since it's what we build with
22-
esp_idf_version: release/v5.2
19+
# Use the 5.4 release version since it's what we build with
20+
esp_idf_version: release/v5.4
2321

2422
# (Optional) cppcheck args
25-
cppcheck_args: -i$GITHUB_WORKSPACE/components/espp -i$GITHUB_WORKSPACE/components/jpegdec -i$GITHUB_WORKSPACE/components/esp-protocols --force --enable=all --inline-suppr --inconclusive --platform=mips32 --std=c++17 --suppressions-list=$GITHUB_WORKSPACE/suppressions.txt
23+
cppcheck_args: --force --enable=all --inline-suppr --inconclusive --platform=mips32 --std=c++17 --suppressions-list=$GITHUB_WORKSPACE/suppressions.txt

.gitmodules

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
[submodule "components/espp"]
2-
path = components/espp
3-
url = [email protected]:esp-cpp/espp
4-
[submodule "components/esp-protocols"]
5-
path = components/esp-protocols
6-
url = [email protected]:espressif/esp-protocols
71
[submodule "components/jpegdec"]
82
path = components/jpegdec
93
url = https://github.com/esp-cpp/jpegdec

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# The following lines of boilerplate have to be in your project's CMakeLists
22
# in this exact order for cmake to work correctly
3-
cmake_minimum_required(VERSION 3.5)
3+
cmake_minimum_required(VERSION 3.20)
44

55
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
66

77
# add the component directories that we want to use
88
set(EXTRA_COMPONENT_DIRS
9-
"components/espp/components"
10-
"components/esp-protocols/components"
119
)
1210

1311
# add compile definition ARDUINO_ARCH_ESP32, enabling jpegdec simd support

components/esp-protocols

Lines changed: 0 additions & 1 deletion
This file was deleted.

components/espp

Lines changed: 0 additions & 1 deletion
This file was deleted.

components/jpegdec

Submodule jpegdec updated 39 files

main/idf_component.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## IDF Component Manager Manifest File
2+
dependencies:
3+
## Required IDF version
4+
idf:
5+
version: '>=5.0'
6+
espp/rtsp: '>=1.0'
7+
espp/esp-box: '>=1.0'
8+
espp/wifi: '>=1.0'
9+
espp/monitor: '>=1.0'
10+
espp/t-deck: '>=1.0'
11+
espp/socket: '>=1.0'
12+
espp/nvs: '>=1.0'
13+
espp/task: '>=1.0'
14+
espressif/mdns: '>=1.8'

main/main.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ extern "C" void app_main(void) {
178178
};
179179
// Start the display task
180180
logger.info("Starting display task");
181-
auto display_task = espp::Task::make_unique({
182-
.name = "Display Task",
183-
.callback = display_task_fn,
184-
.stack_size_bytes = 5 * 1024,
185-
});
181+
auto display_task = espp::Task::make_unique({.callback = display_task_fn,
182+
.task_config = {
183+
.name = "Display Task",
184+
.stack_size_bytes = 5 * 1024,
185+
}});
186186
display_task->start();
187187

188188
// make the rtsp client
@@ -278,6 +278,7 @@ void mdns_print_results(mdns_result_t *results) {
278278
a = r->addr;
279279
while (a) {
280280
if (a->addr.type == ESP_IPADDR_TYPE_V6) {
281+
// cppcheck-suppress unknownMacro
281282
printf(" AAAA: " IPV6STR "\n", IPV62STR(a->addr.u_addr.ip6));
282283
} else {
283284
printf(" A : " IPSTR "\n", IP2STR(&(a->addr.u_addr.ip4)));

sdkconfig.defaults

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ CONFIG_SPI_MASTER_IN_IRAM=y
2727

2828
# SPIRAM Configuration
2929
CONFIG_SPIRAM=y
30-
CONFIG_SPIRAM_USE=y
30+
CONFIG_SPIRAM_USE_MALLOC=y
3131
CONFIG_SPIRAM_MODE_OCT=y
32-
CONFIG_SPIRAM_SPEED_80M=y
32+
# CONFIG_SPIRAM_SPEED_80M=y
33+
CONFIG_SPIRAM_SPEED_120M=y
34+
CONFIG_SPIRAM_SPEED=120
35+
CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y
36+
CONFIG_SPIRAM_RODATA=y
3337
# CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y
3438
# CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y
3539

0 commit comments

Comments
 (0)