Skip to content

mbed LPC17xx USB device not working #13203

@vvkaggarwal12

Description

@vvkaggarwal12

Description of defect

I am working on mbed LPC1768 board.
I build the code for USBSerial Example code for this board.
After flashing the code i am getting below error on UART Serial:

Error␣Status:␣0x80FF0144␣Code:␣324␣Module:␣255
Error␣Message:␣Assertion␣failed:␣status␣==␣osOK
Location:␣0x4295
File:␣.\mbed-os\rtos\source\ThisThread.cpp+225
Error␣Value:␣0x0
Current␣Thread:␣main␣Id:␣0x100014B4␣Entry:␣0x5679␣StackSize:␣0x1000␣StackMem:␣0x10001D98␣SP:␣0x10002CC4␣

And USB is not enumerating on the host side.
After investigating, in file targets/TARGET_NXP/USBHAL_LPC17xx.cpp, line 414, ThisThread::sleep_for is causing this issue.
When i replaced that line of code with wait_us it works.

Target(s) affected by this defect ?

NXP LPC17xx

Toolchain(s) (name and version) displaying this defect ?

arm gcc v9

What version of Mbed-os are you using (tag or sha) ?

mbed-os-6.1.0 - a6207ca

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

build using command line python 3.7.5

How is this defect reproduced ?

Build the code for any USB device example and flash the bin file to LPC17xx target.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions