Open anklimov opened 1 year ago
Do you mean a file for configuring the bootloader (same options as in btldr_config.h)?
No, I mean configuration data for firmware. JSON configuration file, for example. (If file with pre-defined name placed to “mass storage”- just store it to configured flash region.)
In more complicated cases, “configuration file” listed permanently in fat16 root directory and allow reading and writing operations
Пн, 17 апр. 2023 г. в 21:40, tusker-tools @.***>:
Do you mean a file for configuring the bootloader (same options as in btldr_config.h)?
— Reply to this email directly, view it on GitHub https://github.com/sfyip/STM32F103_MSD_BOOTLOADER/issues/17#issuecomment-1511896000, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFME4GJ5YK32ZDYEC6BU6XTXBWFDRANCNFSM6AAAAAAW6WTBTI . You are receiving this because you authored the thread.Message ID: @.***>
-- WBR Andrey Klimov
Ok, I think now I'm getting an idea. So you want to configure some parameters of the firmware (which resides in a dedicated configuration flash section) using a JSON file which will be uploaded to the mass storage?
Yes, exactly.
Пн, 17 апр. 2023 г. в 23:18, tusker-tools @.***>:
Ok, I think now I'm getting an idea. So you want to configure some parameters of the firmware (which resides in a dedicated configuration flash section) using a JSON file which will be uploaded to the mass storage?
— Reply to this email directly, view it on GitHub https://github.com/sfyip/STM32F103_MSD_BOOTLOADER/issues/17#issuecomment-1512025131, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFME4GK76PY7X62ARX6ODL3XBWQQ7ANCNFSM6AAAAAAW6WTBTI . You are receiving this because you authored the thread.Message ID: @.***>
-- WBR Andrey Klimov
Nice idea! This would require the following steps:
Would be a nice improvement if you (or an other volunteer) could develop this.
Generally, not necsessary to deal with JSON from bootloader - It was noted just for example. Parsing data may performed by appropriate application. There are many parsers is availble. And not only JSON config is usefull here, Another example - gzipped file(s) for web backend. So the best way to have an array, like this, configired in some *.h file (shareble with main application)
config.json |0x80002000| 0x2000 index.html.gz |0x80004000| 0x4000 ... Regarding contribution - I'm not shure that have necsessary skills now, to do it. Currently, i've stuck with just testing original bootloader on my STMF103RBT MPU (I've compiled it by Keili 5 (with ARM compiller v6) , uploaded by STM32CubeProgrammer via UART but not get USB mass storage after reboot. Unfortunatelly, I didnt find any guidelines and/or instructions how to build it and upload in right way
It might be very useful to have ability to place/edit some configuration data as file (config.json for example or any other pre-defined name ) Is it possible to do some like this?