zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.96k stars 6.67k forks source link

SensorTile.box PRO I2C node disables USB output #81791

Open rmarcus1tul opened 5 days ago

rmarcus1tul commented 5 days ago

Test Conditions Hardware

Software

Background Using the default configuration for the SensorTile.box PRO with its associated sensors-on-board demo, no USB device is detected. I'm testing on Ubuntu but also confirmed USB virtual COM is disabled when attempting on Windows.

I traced this to some conflict between the USB driver and the I2C sensors. Adding an overlay file with the 3 sensors on I2C1 disabled re-enables USB:

&{/soc/i2c@40005400/lps22df@5d} {
    status = "disabled";
};

&{/soc/i2c@40005400/lis2mdl@1e} {
    status = "disabled";
};

&{/soc/i2c@40005400/stts22h@38} {
    status = "disabled";
};

No errors or warnings are flagged when building and there is no indication of a conflict. I tried to get UART output using a JLink Base with VCOM enabled, and following the instructions in the README, but I could not get an output even on a functional build with the I2C sensors disabled. I then attempted to get outputs over RTT but CONFIG_USE_SEGGER_RTT=y produces compilation errors.

github-actions[bot] commented 5 days ago

Hi @rmarcus1tul! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙