Skip to content

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

Closed
piranna opened this issue Jan 6, 2014 · 3 comments
Closed

Auto-generated .inf driver file for Windows #101

piranna opened this issue Jan 6, 2014 · 3 comments
Labels
enhancement Feature requests, new feature implementations

Comments

@piranna
Copy link

piranna commented Jan 6, 2014

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.

@lurch
Copy link
Contributor

lurch commented Apr 11, 2014

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
However it actually creates a file in flash, rather than presenting a 'virtual' file, because I guess doing the latter would require ugly hacks to the fatfs driver.

@dpgeorge
Copy link
Member

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.

@pfalcon
Copy link
Contributor

pfalcon commented Apr 26, 2014

@lurch proposed/made changes regarding this. Can this be closed now?

mithro added a commit to mithro/micropython that referenced this issue Oct 3, 2018
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
```
mithro added a commit to fupy/micropython that referenced this issue Aug 8, 2019
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
```
TinyCircuits added a commit to TinyCircuits/micropython that referenced this issue Jan 30, 2025
Make back/front_fb_data and back/front_fb not accept arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests, new feature implementations
Projects
None yet
Development

No branches or pull requests

4 participants