Comments (10)
maybe related to this issue: #102
from daplink.
Hi @teetak01, thanks for reporting this. If you could attach logs of this occurring it would be very helpful. Wireshark + USBpcap should allow you to capture this. Also, what do you mean by RESET? Is this a re-enumeration, a msd endpoint reset comment, a Virtual Box reset or something else?
You mention that the device stops communicating. This is only the mass storage drive right? You should still be able to debug over USB with pyOCD and you should be able to see serial data over the serial port. Can you confirm this?
Finally, Virtual Box has some known USB issues. I haven't seen any with mass storage yet, but they are fairly common with the CMSIS-DAP protocol, as Virtual Box will sometimes drop HID packets. A dropped SCSI packet might explain this assert.
from daplink.
could this be related to https://github.com/mbedmicro/CMSIS-DAP/issues/93?
from daplink.
I have only seen dropped packets when using virtual box, so if they aren't using virtual box then https://github.com/mbedmicro/CMSIS-DAP/issues/93 is probably unrelated.
from daplink.
I think teemu did use raspberry with debian,,
from daplink.
No, this was on virtual box. @jupe is thinking about another possibly related issue we have been having on raspberry environment. You can seen some logs from that issue here: http://jira.arm.com/browse/IOTSYST-1146 . (K64F gets stuck in infinite? loop resending number of traces).
@c1728p9 I have to see if I can somehow reproduce this more reliably to get some logs. So far I have seen it a few times, but it may well be also something Virtual Box is causing. But also I do not remember seeing this issue before on Virtualized Ubuntu 14.04, so may also be some Ubuntu-Virtual Box issue.
The latest fail occured while I was running a testcase on K64F with CLI-testing suite. The device was in middle of sending significant amount of traces via serial port and suddenly CLI stopped receiving any data from serial port and the mass storage drive popped open as the ASSERT.TXT file appeared there. The CLI automatically sends a reset to the device when it proceeded to the next testcase and the testcases continued to execute normally from that.
from daplink.
I was now getting that fail few times in a row while re-flashing K64F. After using another K64F for a while, the first one also started to work a bit better (for now). Maybe I have a faulty hardware?
from daplink.
Hi @teetak01, I think it is unlikely to be faulty hardware. The best way to get to the root of this issue would be to capture some USB logs to determine if the assert is from dropped USB packets.
from daplink.
I was able to reproduce this locally and found this assert is incorrectly triggering if a valid mass storage command arrives at the right time. This should be fixed by #219 which updates the assert criteria.
from daplink.
Ah, good to know, forgot about this completely. Thanks @c1728p9
from daplink.
Related Issues (20)
- Not able to build in windows gcc environment HOT 4
- GNU Arm Embedded Toolchain is deprecated HOT 4
- Building on Mac with latest homebrew-managed `gcc-arm-embedded` fails HOT 2
- uart.c constant comparison issues
- Support for newer versions of GNU Arm Embedded Toolchain
- Address of local variable buffer is assigned to a non-local variable
- PIO0_14 as JTAG TDO
- DAPLink doesn't work with IAR EWARM 8.3? HOT 2
- Unsigned int comparison to 0
- "EraseChip" doesn't seem quite right
- DAPLink worked in IAR,but not work in KEIL MDK. HOT 1
- build error not have version_git.h HOT 2
- Why is it that after I dragged and burned the daplink firmware in bootloader mode, it succeeded, but when I disconnected and reconnected, it changed to bootloader mode. HOT 1
- The latest version of Keil5 always prompts "swd/jtag communication failure" when using DAPLink
- Intermittent issues with i2c interface and interrupt line on microbit v2.21 HOT 4
- Support for probe interface level translation HOT 1
- Some questions about "MSD Commands"
- [miro:bit] [0258] PWR led turns sometimes off when device is powered by battery on reset button press HOT 3
- CPU Can't stop HOT 1
- Clarification on flash blobs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daplink.