-
Notifications
You must be signed in to change notification settings - Fork 211
Description
Bug description
I'm facing an issue that I really can't figure out or solve with my ESP32-C6 board.
Currently, I'm using a GY-BNO055 sensor connected to the board to retrieve acceleration, magnetometer, and gyroscope data. The I2C communication and data reading code works perfectly until I try to print the values.
More precisely:
When I print the converted value of just one data type (for example, acceleration), it works fine. Here's the console output in that case:
I (23) boot: ESP-IDF v5.4.1-426-g3ad36321ea 2nd stage bootloader
I (24) boot: compile time Apr 29 2025 15:14:17
I (24) boot: chip revision: v0.1
I (25) boot: efuse block revision: v0.2
I (28) boot.esp32c6: SPI Speed : 80MHz
I (32) boot.esp32c6: SPI Mode : DIO
I (36) boot.esp32c6: SPI Flash Size : 4MB
I (40) boot: Enabling RNG early entropy source...
I (44) boot: Partition Table:
I (47) boot: ## Label Usage Type ST Offset Length
I (53) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (60) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (66) boot: 2 factory factory app 00 00 00010000 003f0000
I (73) boot: End of partition table
I (76) esp_image: segment 0: paddr=00010020 vaddr=42050020 size=2b1e8h (176616) map
I (116) esp_image: segment 1: paddr=0003b210 vaddr=40800000 size=04e08h ( 19976) load
I (121) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=4ffcch (327628) map
I (182) esp_image: segment 3: paddr=0008fff4 vaddr=40804e08 size=05854h ( 22612) load
I (188) esp_image: segment 4: paddr=00095850 vaddr=4080a660 size=01c2ch ( 7212) load
I (192) boot: Loaded app from partition at offset 0x10000
I (193) boot: Disabling RNG early entropy source...
However, as soon as I try to print a second value (for example, both acceleration and magnetometer), the error occurs immediately and I get this instead:
I (24) boot: ESP-IDF v5.4.1-426-g3ad36321ea 2nd stage bootloader
I (24) boot: compile time Apr 29 2025 15:14:17
I (25) boot: chip revision: v0.1
I (25) boot: efuse block revision: v0.2
I (29) boot.esp32c6: SPI Speed : 80MHz
I (33) boot.esp32c6: SPI Mode : DIO
I (37) boot.esp32c6: SPI Flash Size : 4MB
I (40) boot: Enabling RNG early entropy source...
I (45) boot: Partition Table:
I (47) boot: ## Label Usage Type ST Offset Length
I (54) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (60) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (67) boot: 2 factory factory app 00 00 00010000 003f0000
I (73) boot: End of partition table
E (77) esp_image: Segment 0 load address 0x42058020, doesn't match data 0x00010020
E (84) boot: Factory app partition is not bootable
E (88) boot: No bootable app partitions in the partition table
You can see this behavior in lines 66 and 71 of my code (currently commented).
If anyone has an idea or has experienced something similar, I'd really appreciate any advice or suggestions.
You can check the full code here: https://github.com/hugogithub9/error_esp32c6.git
Thanks in advance!
- Would you like to work on a fix? [y/n]y
To Reproduce
Clone the repo linked above and build/run on an ESP32-C6 board connected to GY-BNO055 sensor.
The issue occurs when trying to print two types of converted sensor data.
Expected behavior
Printing multiple sensor data values should work without causing a crash or bootloader error.