-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Auto-generated .inf driver file for Windows #101
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
Comments
The Windows CDC (serial device) .inf file is now created in the flash every time the filesystem is reset / recreated https://github.com/micropython/micropython/blob/master/stmhal/main.c#L291 |
Yes, it would not be possible to present the .inf file as a virtual file: when connected via USB MSD, the PC has complete control over the filesystem and reads it at the block level. There's just no way to fake the existence of a file. |
@lurch proposed/made changes regarding this. Can this be closed now? |
Files come from the following revision; ``` commit 537b0e9058e6a5b77f434f46f3a56849c82064bd Merge: 9c6f76f1 5c83c881 Author: enjoy-digital <florent@enjoy-digital.fr> Date: Tue Sep 18 08:19:09 2018 +0200 Merge pull request micropython#101 from cr1901/icestorm-migen-pull Icestorm Improvements ```
Files come from the following revision; ``` commit 537b0e9058e6a5b77f434f46f3a56849c82064bd Merge: 9c6f76f1 5c83c881 Author: enjoy-digital <florent@enjoy-digital.fr> Date: Tue Sep 18 08:19:09 2018 +0200 Merge pull request micropython#101 from cr1901/icestorm-migen-pull Icestorm Improvements ```
Make back/front_fb_data and back/front_fb not accept arguments
As (offtopic) discussed on issue #83, since the content of the flash memory is not directly showed to desktop computers but instead it is given by the microcontroller, it was talked about make the microcontroller to show a fake file entry that has the content of the .inf Windows driver for the USB-to-serial virtual device or a custom device crafted by the developer (for example, a developer would modify it so the board it's view by the computer as a joystick or a keyboard), being saved on a constant static string inside MicroPython source code. This way, the .inf file doesn't waste space on the filesystem nor fills it with application useless files, and also it warrats that can't be erased and it's always available each time you connect the board to a computer.
The text was updated successfully, but these errors were encountered: