Skip to content

EEPROM corruption when using Bluetooth stack #2756

@Props3D

Description

@Props3D

I've been exploring the EEPROM and Bluetooth examples. When running the EEPROM read example, compiled with TinyUSB and Bluetooth stack, I found that the EEPROM sector is somehow overwritten or corrupted by BTstack.

image

Here's the platformio.ini settings I used:

[env]
framework = arduino
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board_build.core = earlephilhower
board_build.filesystem_size = 1m
build_flags = -DUSE_TINYUSB
              -DPIO_FRAMEWORK_ARDUINO_ENABLE_BLUETOOTH

[env:debug]
board = rpipicow
build_type = debug
debug_tool = cmsis-dap
upload_protocol = cmsis-dap
build_flags = ${env.build_flags}
; Debug Port: Serial
              -DDEBUG_RP2040_PORT=Serial
; Debug Level: CORE
              -DDEBUG_RP2040_CORE
; Enable Exceptions
              -DPIO_FRAMEWORK_ARDUINO_ENABLE_EXCEPTIONS
; Enable Stack Protector
              -fstack-protector
; Enable RTTI
              -DPIO_FRAMEWORK_ARDUINO_ENABLE_RTTI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions