File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
variants/arduino_giga_r1_stm32h747xx_m7 Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2025 Arduino SA
3+ * SPDX-License-Identifier: Apache-2.0
4+ */
5+
6+ #include <zephyr/devicetree.h>
7+ #include "wiced_resource.h"
8+
9+ #define QUADSPI_MMAP_BASE DT_REG_ADDR_BY_IDX(DT_NODELABEL(quadspi), 1)
10+ #define FLASH_CHIP_OFFSET DT_REG_ADDR(DT_NODELABEL(qspi_flash))
11+ #define AIROC_PART_OFS DT_REG_ADDR(DT_NODELABEL(airoc_firmware))
12+
13+ #define FW_ADDR (QUADSPI_MMAP_BASE + FLASH_CHIP_OFFSET + AIROC_PART_OFS)
14+ #define FW_SIZE 421098 /* same as the _bin.c file */
15+
16+ const resource_hnd_t wifi_firmware_image = {
17+ RESOURCE_IN_MEMORY ,
18+ FW_SIZE ,
19+ { .mem = { (const char * ) FW_ADDR } }
20+ };
Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ endif()
1414if (CONFIG_AIROC_WIFI_CUSTOM)
1515 zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR} ) # for wifi_nvram_image.h
1616 zephyr_library_sources(4343WA1_clm_blob.c)
17- zephyr_library_sources(4343WA1_bin .c)
17+ zephyr_library_sources(4343WA1_bin_qspi .c) # use _bin.c for a static build
1818endif ()
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ CONFIG_SDIO_STACK=y
9191CONFIG_SDHC_INIT_PRIORITY=75
9292
9393CONFIG_AIROC_WIFI_CUSTOM=y
94+ CONFIG_STM32_MEMMAP=y
9495
9596CONFIG_NETWORKING=y
9697CONFIG_WIFI=y
You can’t perform that action at this time.
0 commit comments