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

the HID interface failed when use stream_open()/stream_write()/stream_close() in develop branch #890

Closed
wjzhang opened this issue Nov 4, 2021 · 4 comments

Comments

@wjzhang
Copy link

wjzhang commented Nov 4, 2021

Hi:
I now merge our old DapLink(It's working fine. version DAPLINK_VERSION=253) code to Develop branch(it support ARM GCC toolchain).
But when use dapjs to flash the target, it'll random failed at some HID packages.
the HID write data send(checked it write done). then read, No response from HID interface.

Do anyone test the this develop branch with dapjs (compile by GCC, last commit is: f5fb4b9)?

@wjzhang
Copy link
Author

wjzhang commented Nov 4, 2021

Sorry. it caused by main_task() stack overflow.

@wjzhang wjzhang closed this as completed Nov 4, 2021
@mathias-arm
Copy link
Collaborator

Hi @wjzhang, can you tell us which HIC you are using and if you are flashing .bin or .hex files? How much did you increase the stack size?

@wjzhang
Copy link
Author

wjzhang commented Nov 4, 2021 via email

@mathias-arm
Copy link
Collaborator

LPC11U35 and .hex were my guesses: the HIC does not have a lot of RAM free, .hex file handling require a few tens of bytes more than .bin and flashing through WebUSB is the use-case with the deepest stack I know of.
With #884, 512 bytes will be freed up, if more stack is needed.

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