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

[question] Is it possible to read a range from device memory using this libraryu #6

Open
MikeGHAtCOM opened this issue Jul 29, 2024 · 1 comment

Comments

@MikeGHAtCOM
Copy link

I see that the Device class has access to Upload function, which should enable (once connected) uploading of memory from the device to the PC.

I'm unclear what the block number needs to be - I can grab the sector out of the string descriptor, but can't map that in my head to the block number.

Looking at the memory in stm32cubeprogrammer when USB connected I can see the memory, so the upload function in the firmware looks to be wired up ok.

@benedekkupper
Copy link
Member

The protocol supports it, but this library doesn't implement it yet. IIUC you are interested in the STM32 specific protocol extension? They had an open source C++ client way back, before the whole STM32Cube era, I used that as a reference. Check how the download works for the STM32 extension part, I guess you'll need to send a command to set the address first, then manage the block number just like in the case of download. The other option is that you capture the USB packets with wireshark during stm32cubeprogrammer operation, and interpret the data.

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