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
2 changes: 2 additions & 0 deletions .github/workflows/format_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
files_ignore: |
cores/arduino/api/**
loader/llext_exports.c
loader/blobs/4343WA1_*.c
loader/blobs/wifi_nvram_image.h
libraries/examples/**
libraries/extras/**
libraries/ea_malloc/**
Expand Down
25,493 changes: 25,493 additions & 0 deletions loader/blobs/4343WA1_bin.c

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions loader/blobs/4343WA1_bin_qspi.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright 2025 Arduino SA
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/devicetree.h>
#include "wiced_resource.h"

#define QUADSPI_MMAP_BASE DT_REG_ADDR_BY_IDX(DT_NODELABEL(quadspi), 1)
#define FLASH_CHIP_OFFSET DT_REG_ADDR(DT_NODELABEL(qspi_flash))
#define AIROC_PART_OFS DT_REG_ADDR(DT_NODELABEL(airoc_firmware))

#define FW_ADDR (QUADSPI_MMAP_BASE + FLASH_CHIP_OFFSET + AIROC_PART_OFS)
#define FW_SIZE 421098 /* same as the _bin.c file */

const resource_hnd_t wifi_firmware_image = {
RESOURCE_IN_MEMORY,
FW_SIZE,
{ .mem = { (const char *) FW_ADDR } }
};
400 changes: 400 additions & 0 deletions loader/blobs/4343WA1_clm_blob.c

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion loader/blobs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@ if (CONFIG_BOARD_ARDUINO_PORTENTA_C33)
${CMAKE_CURRENT_SOURCE_DIR}/c33_bl.bin
${gen_dir}/c33_bl.bin.inc
)
endif()
endif()

if(CONFIG_AIROC_WIFI_CUSTOM)
zephyr_include_directories(${CMAKE_CURRENT_LIST_DIR}) # for wifi_nvram_image.h
zephyr_library_sources(4343WA1_clm_blob.c)
zephyr_library_sources(4343WA1_bin_qspi.c) # use _bin.c for a static build
endif()
87 changes: 87 additions & 0 deletions loader/blobs/wifi_nvram_image.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/*
* Copyright (c) 2019, Cypress Semiconductor Corporation, All Rights Reserved
* SPDX-License-Identifier: LicenseRef-PBL
*
* This file and the related binary are licensed under the
* Permissive Binary License, Version 1.0 (the "License");
* you may not use these files except in compliance with the License.
*
* You may obtain a copy of the License here:
* LICENSE-permissive-binary-license-1.0.txt and at
* https://www.mbed.com/licenses/PBL-1.0
*
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/** @file
* NVRAM file for CY8CKIT-062-WiFi-BT (PSoC6 WiFi-BT Pioneer Kit) using
* Murata's Type 1DX module - Copied from bcm94343wwcd1.txt on 08/04/2019
* # 2.4 GHz, 20 MHz BW mode; No Antenna Diversity
*/

#ifndef INCLUDED_NVRAM_IMAGE_H_
#define INCLUDED_NVRAM_IMAGE_H_

#include <string.h>
#include <stdint.h>
#include "generated_mac_address.txt"


#ifdef __cplusplus
extern "C" {
#endif

/**
* Character array of NVRAM image
*
* Generated from cyw94343cy8ckit-062-wifi-bt.txt
*/

static const char wifi_nvram_image[] =
"manfid=0x2d0" "\x00"
"prodid=0x0726" "\x00"
"vendid=0x14e4" "\x00"
"devid=0x43e2" "\x00"
"boardtype=0x0726" "\x00"
"boardrev=0x1202" "\x00"
"boardnum=22" "\x00"
NVRAM_GENERATED_MAC_ADDRESS "\x00"
"sromrev=11" "\x00"
"boardflags=0x00404201" "\x00"
"boardflags3=0x04000000" "\x00"
"xtalfreq=37400" "\x00"
"nocrc=1" "\x00"
"ag0=0" "\x00"
"aa2g=1" "\x00"
"ccode=ALL" "\x00"
"extpagain2g=0" "\x00"
"pa2ga0=-145,6667,-751" "\x00"
"AvVmid_c0=0x0,0xc8" "\x00"
"cckpwroffset0=2" "\x00"
"maxp2ga0=74" "\x00"
"cckbw202gpo=0" "\x00"
"legofdmbw202gpo=0x88888888" "\x00"
"mcsbw202gpo=0xaaaaaaaa" "\x00"
"propbw202gpo=0xdd" "\x00"
"ofdmdigfilttype=18" "\x00"
"ofdmdigfilttypebe=18" "\x00"
"papdmode=1" "\x00"
"papdvalidtest=1" "\x00"
"pacalidx2g=48" "\x00"
"papdepsoffset=-22" "\x00"
"papdendidx=58" "\x00"
"il0"NVRAM_GENERATED_MAC_ADDRESS "\x00"
"wl0id=0x431b" "\x00"
"muxenab=0x10" "\x00"
"\x00\x00";

#ifdef __cplusplus
} /* extern "C" */
#endif

#else /* ifndef INCLUDED_NVRAM_IMAGE_H_ */

#error Wi-Fi NVRAM image included twice

#endif /* ifndef INCLUDED_NVRAM_IMAGE_H_ */
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CONFIG_CDC_ACM_DTE_RATE_CALLBACK_SUPPORT=y

CONFIG_LLEXT_STORAGE_WRITABLE=n
CONFIG_SHARED_MULTI_HEAP=y
CONFIG_HEAP_MEM_POOL_SIZE=2048
CONFIG_HEAP_MEM_POOL_SIZE=24576
CONFIG_SHELL_STACK_SIZE=32768
CONFIG_MAIN_STACK_SIZE=32768
CONFIG_LLEXT_HEAP_SIZE=128
Expand Down Expand Up @@ -85,3 +85,47 @@ CONFIG_FS_FATFS_MAX_SS=4096
CONFIG_FS_FATFS_MAX_LFN=255
CONFIG_FS_FATFS_FSTAB_AUTOMOUNT=y
CONFIG_FS_FATFS_CUSTOM_MOUNT_POINTS="wlan,ota"

CONFIG_SDHC=y
CONFIG_SDIO_STACK=y
CONFIG_SDHC_INIT_PRIORITY=75

CONFIG_AIROC_WIFI_CUSTOM=y
CONFIG_STM32_MEMMAP=y

CONFIG_NETWORKING=y
CONFIG_WIFI=y

CONFIG_NET_MGMT=y
CONFIG_NET_MGMT_EVENT=y
CONFIG_NET_MGMT_EVENT_STACK_SIZE=8192
CONFIG_NET_MAX_CONTEXTS=10
CONFIG_NET_MGMT_EVENT_QUEUE_TIMEOUT=5000
CONFIG_NET_MGMT_EVENT_QUEUE_SIZE=32
CONFIG_NET_MAX_CONN=10
CONFIG_NET_MGMT_EVENT_STACK_SIZE=4608

CONFIG_POSIX_API=y

CONFIG_NET_TCP=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_IPV6=n
CONFIG_NET_IPV4=y
CONFIG_NET_ARP=y
CONFIG_NET_UDP=y
CONFIG_NET_DHCPV4=y
CONFIG_NET_DHCPV4_OPTION_CALLBACKS=y
CONFIG_NET_SOCKETS_NET_MGMT=y
CONFIG_NET_SOCKETS_SOCKOPT_TLS=y

CONFIG_DNS_RESOLVER=y
CONFIG_DNS_SERVER_IP_ADDRESSES=y
CONFIG_DNS_SERVER1="8.8.8.8"

CONFIG_NET_CONFIG_AUTO_INIT=n
CONFIG_NET_CONNECTION_MANAGER=y
#CONFIG_WIFI_NM_MAX_MANAGED_INTERFACES=2

CONFIG_NET_SHELL=y
CONFIG_NET_L2_ETHERNET_MGMT=y
CONFIG_NET_L2_WIFI_SHELL=y