Giter Club home page Giter Club logo

Comments (6)

HiFiPhile avatar HiFiPhile commented on August 25, 2024

Please use stock (stm32u575-nucleo) example for testing, your setup has many external factors.

from tinyusb.

DavidSayada avatar DavidSayada commented on August 25, 2024

Hi @HiFiPhile , thank you for your answer. I don't have such a board. Are there some logs I can add in the stack that may help you?

from tinyusb.

HiFiPhile avatar HiFiPhile commented on August 25, 2024

Stock BSP only use few peripherals so most custom board should be compatible.
https://github.com/hathach/tinyusb/blob/master/hw/bsp/stm32u5/boards/stm32u575nucleo/board.h

Try increase freertos stack size, at the end tusb reinitialized itself probably after crash reset.

from tinyusb.

DavidSayada avatar DavidSayada commented on August 25, 2024

Are you talking about using the hooks implemented in freertos_hook.c? If this is the case, when you say "increase freertos stack size", are you talking about the IDLE task?

from tinyusb.

DavidSayada avatar DavidSayada commented on August 25, 2024

The USB Bus reset is not due to a crash, but because the GINTSTS_USBRST bit is set in the DWC2 gintsts register.
For some reason the Host decides systematically to reset the USB bus after the enumeration is done.

from tinyusb.

HiFiPhile avatar HiFiPhile commented on August 25, 2024

increase freertos stack size", are you talking about the IDLE task?

Not the idle task, but USB task where TUSB is running.

The USB Bus reset is not due to a crash

I'm talking about

USBD init on controller 0, Highspeed = 0
sizeof(usbd_device_t) = 45
sizeof(dcd_event_t) = 12
sizeof(tu_fifo_t) = 12
sizeof(tu_edpt_stream_t) = 24
``
which came only from `tusb_init()` which should only be called once in MCU init. So you are facing a crashing issue or usage fault 
as they are printed twice.

Close as it's not a TUSB issue.

from tinyusb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.