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

Blackbox readout broken on multiple targets using VCP #1899

Closed
fishpepper opened this issue Dec 27, 2016 · 6 comments
Closed

Blackbox readout broken on multiple targets using VCP #1899

fishpepper opened this issue Dec 27, 2016 · 6 comments
Labels
BUG Bugs are excluded from automatically being marked as stale

Comments

@fishpepper
Copy link
Contributor

fishpepper commented Dec 27, 2016

I just found out downloading blackbox logs from TINYFISH does not work (it probably never worked since i wrote this target).
Blackbox erase and writing works.

When i click SAVE file to disk nothing happens.
SPI traces show 0x03 0x00 0x00 0x00 as command+address (= bf tries to read address 0x000000).
Then i see lots of data beeing read out, SCK, MOSI, MOSI, CS all look valid.
Approximately 1 second later the same command is repeated again and again with the same start address....
I need to investigate what happens... Any hints/ideas are welcome :)

flash_info shows (i use an M25P16 on this board):
`

flash_info

Flash sectors=32, sectorSize=65536, pagesPerSector=256, pageSize=256, totalSize=2097152, usedSize=149504
`

@DieHertz
Copy link
Member

Yeah, I noticed it on the latest master on my SPRF3 yesterday as well. CRC error and corrupt file at output.

@fishpepper
Copy link
Contributor Author

I think my problem is different. I do not get any output at all... The download hangs indefinitely. It is trying to read from address 0x000000 all the time in an endless loop :(

@fishpepper
Copy link
Contributor Author

I tested my spracingf3 with master build. downloading works fine, file is valid.
So my tinyfish problem is something else....

@fishpepper
Copy link
Contributor Author

ok, i found out that using a usb2serial converter on uart3 works. VCP does hang.
probably related to: #1642

@fishpepper
Copy link
Contributor Author

fishpepper commented Dec 27, 2016

vcp datflash readout was probably broken for a lot of targets...
seems to be fixed pull request #1904

@fishpepper fishpepper changed the title Blackbox readout broken on TINYFISH target Blackbox readout broken on multiple targets using VCP Dec 27, 2016
@martinbudden
Copy link
Contributor

Closing as fixed by PR #1904

@martinbudden martinbudden added the BUG Bugs are excluded from automatically being marked as stale label Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Bugs are excluded from automatically being marked as stale
Projects
None yet
Development

No branches or pull requests

3 participants