Skip to content
Discussion options

You must be logged in to vote

Oh, damn it. You can waste hours and days troubleshooting, and then suddenly find the error in just a few attempts. The error was as follows. When reconfiguring DMA0 via DMA1, I determined the address as follows:
self.input_buffer_addr = uctypes.addressof(array.array('L',[uctypes.addressof(self.input_buffer)]))

However, it should be correct as follows:
self.input_buffer_addr = array.array('L',[uctypes.addressof(self.input_buffer)])

This ‘minor’ error caused the crashes. The code has now been running for around 30 minutes and has already written over 360 files without any errors or crashes.

And what have I learned from this? Don't just copy examples that work for other people. Why the inco…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JackCode0011
Comment options

@JackCode0011
Comment options

Answer selected by JackCode0011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants