From c38ed67fb002eca97bb97231f45034006cb5b0be Mon Sep 17 00:00:00 2001 From: Jesse Braham Date: Thu, 22 Jun 2023 11:00:15 +0200 Subject: [PATCH] Fix the `octal_psram` example for ESP32-S3, check example in CI --- .github/workflows/ci.yml | 2 ++ esp32s3-hal/examples/octal_psram.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53a84031c..84422fc95 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -313,6 +313,8 @@ jobs: run: cd esp32s3-hal/ && cargo check --example=embassy_serial --features=embassy,embassy-time-timg0,async - name: check esp32s3-hal (async, i2c) run: cd esp32s3-hal/ && cargo check --example=embassy_i2c --features=embassy,embassy-time-timg0,async + - name: check esp32s3-hal (octal psram) + run: cd esp32s3-hal/ && cargo check --example=octal_psram --features=opsram_2m --release # This example requires release! esp-riscv-rt: runs-on: ubuntu-latest diff --git a/esp32s3-hal/examples/octal_psram.rs b/esp32s3-hal/examples/octal_psram.rs index 1d9d5ba7b..b4afc7752 100644 --- a/esp32s3-hal/examples/octal_psram.rs +++ b/esp32s3-hal/examples/octal_psram.rs @@ -24,7 +24,7 @@ static ALLOCATOR: esp_alloc::EspHeap = esp_alloc::EspHeap::empty(); fn init_psram_heap() { unsafe { ALLOCATOR.init( - soc::psram::PSRAM_VADDR_START as *mut u8, + soc::psram::psram_vaddr_start() as *mut u8, soc::psram::PSRAM_BYTES, ); }