Skip to content

Ux_Device_CDC_ACM example Hardfault on high loadΒ #49

@HiFiPhile

Description

@HiFiPhile

Describe the set-up

SDK Version: f0f0631
Board: NUCLEO-U5A5ZJ-Q
Compiler: IAR 9.50.1

Describe the bug (skip if none)

I'm a TinyUSB project maintainer, my planning was to compare the CDC throughput performance between usbx with a modified Ux_Device_CDC_ACM echo example.

But even without modification Ux_Device_CDC_ACM runs into hardfault on high load, tx_byte_pool_buffer overflowed and destroy all variables around. If I increase TX_APP_MEM_POOL_SIZE from 1k to 8k it crashes little later.

With attached serial testing script, crash happens about after 10 OUT transfers:

image

How to reproduce the bug (skip if none)

  1. Compile Ux_Device_CDC_ACM project.
  2. Use attached script, eg. ser_test.py COM4

ser_test.py.txt

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinginternal bug trackerIssue confirmed and logged into the internal bug tracking systemprojectsProjects-related (demos, applications, examples) issue or pull-request.usbUniversal Serial Bus

Type

No type

Projects

Status

In progress

Relationships

None yet

Development

No branches or pull requests

Issue actions