Skip to content

Commit

Permalink
Merge branch 'bflb-v1.4-branch' into bouffalo_sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-hh committed Feb 15, 2025
2 parents f114123 + 404f7e8 commit 095ef6a
Show file tree
Hide file tree
Showing 10 changed files with 1,057 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -345,3 +345,8 @@
path = third_party/re2/src
url = https://github.com/google/re2.git
platforms = linux,darwin
[submodule "third_party/bouffalolab/bouffalo_sdk"]
path = third_party/bouffalolab/bouffalo_sdk
url = git@github.com:bouffalolab/bouffalo_sdk_private.git
branch = master
platforms = bouffalo_sdk
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ extern "C" void vAssertCalled(void)

portABORT();

while (true)
;
while (true) ;
}

extern "C" void user_vAssertCalled(void) __attribute__((weak, alias("vAssertCalled")));
Expand Down
1 change: 1 addition & 0 deletions scripts/build/build/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ def BuildBouffalolabTarget():
target.AppendModifier('mot', use_matter_openthread=True).OnlyIfRe('-(thread)')
target.AppendModifier('memmonitor', enable_heap_monitoring=True)
target.AppendModifier('coredump', enable_debug_coredump=True)
target.AppendModifier('pbuf-pool', enable_lwip_pbuf_ram=False).OnlyIfRe('-(bl602dk)')

return target

Expand Down
4 changes: 4 additions & 0 deletions scripts/build/builders/bouffalolab.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def __init__(self,
enable_littlefs: bool = False,
enable_pds: bool = False,
enable_debug_coredump: bool = False,
enable_lwip_pbuf_ram: bool = True
):

if 'BL602' == module_type:
Expand Down Expand Up @@ -250,6 +251,9 @@ def __init__(self,

self.argsOpt.append(f"chip_generate_link_map_file=true")

if enable_lwip_pbuf_ram:
self.argsOpt.append(f"enable_lwip_pbuf_ram=true")

try:
self.argsOpt.append('bouffalolab_sdk_root="%s"' % os.environ['BOUFFALOLAB_SDK_ROOT'])
except KeyError as err:
Expand Down
2 changes: 1 addition & 1 deletion scripts/checkout_submodules.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
'ameba',
'android',
'asr',
'bl602',
'bouffalolab',
'cc13xx_26xx',
'cc32xx',
Expand All @@ -51,6 +50,7 @@
'genio',
'openiotsdk',
'silabs_docker',
'bouffalo_sdk'
])

Module = namedtuple('Module', 'name path platforms recursive')
Expand Down
1 change: 1 addition & 0 deletions scripts/flashing/bouffalolab_firmware_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import shutil
import subprocess
import sys
import toml

import coloredlogs
import firmware_utils
Expand Down
2 changes: 2 additions & 0 deletions src/system/SystemPacketBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ class DLL_EXPORT PacketBuffer : private pbuf
return kMaxSizeWithoutReserve;
#elif CHIP_SYSTEM_PACKETBUFFER_FROM_CHIP_HEAP
return this->alloc_size;
#elif CHIP_SYSTEM_CONFIG_PACKETBUFFER_LWIP_PBUF_RAM
return LWIP_MEM_ALIGN_SIZE(memp_sizes[this->pool]) - kStructureSize;
#elif CHIP_SYSTEM_PACKETBUFFER_FROM_LWIP_CUSTOM_POOL
// Temporary workaround for custom pbufs by assuming size to be PBUF_POOL_BUFSIZE
if (this->flags & PBUF_FLAG_IS_CUSTOM)
Expand Down
1 change: 1 addition & 0 deletions third_party/bouffalolab/bouffalo_sdk
Submodule bouffalo_sdk added at 42f58b
Empty file.
Loading

0 comments on commit 095ef6a

Please sign in to comment.