Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HardFault when enabling usb_dump() #15

Open
dturner opened this issue Sep 8, 2017 · 1 comment
Open

HardFault when enabling usb_dump() #15

dturner opened this issue Sep 8, 2017 · 1 comment

Comments

@dturner
Copy link

dturner commented Sep 8, 2017

When I uncomment the following line in main.c:

usb_dump()

I get the following output over UART:

====== Freescale Freedom FRDM-KL25Z
Built: Sep  8 2017 23:15:55

Reset code: 0x00 0x04
Heap:  0x20000028 to 0x20001000 (4056 bytes used)
Stack: 0x20002fe7 to 0x20003000 (25 bytes used)
8167 bytes free
monitor> 
Inp** HARD FAULT **
  pc=0xe00
  msp=0x20002fb8
  psp=0xffff7f7c`

The LED then blinks RED slowly on and off.

@payne92
Copy link
Owner

payne92 commented Sep 9, 2017

Thanks for your note. usb_dump() is commented out because the USB code is unfinished, unstable and a work in progress. From the comments in usb.c:

// *******************************************************
//  TODO:  INCOMPLETE, work in progress
// *******************************************************

I wish it was further along, but the USB hardware is poorly documented by Freescale, aspects are undocumented, and getting stable USB code requires a lot more work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants