- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I am working on a project with the 5LP, where I need to semi-frequently change the "settings" on an application via PC => USB => 5LP.
These setting are simply pure numerical integer data. The hardware can completely reset to receive the new settings if necessary.
I've experimented with a bootloader/bootloadable system, where the bootloadable runs the whole application with whichever data settings built into it. However this feels kinda clunky, rebuilding and programing the whole application for just some settings changed.
I was wondering what other USB setups might work better?
Thanks for any advice!
ngohara
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
we enhanced the bootloader to allow a simple xml editing that is stored in flash/eeprom/extflash. the bootloader and app parse the xml for some simple parameter tuning (i.e. ip address, netmask, hostname, ....)
-Ed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How is this setup?
Use a second bootloadble that just writes to memory?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
we have a modified bootloader that includes some additional commands: readXML, writeXML, console ....
the actual bootloader then contains the code to save the XML to a storage. we usually have a small external flash that is used for other things. we reserve a block for the boot XML. you could modify to save to internal flash, external eeprom, external flash etc.
then we have a standalone bootloader program (j1UBL) that handles the extra commands and has buttons to edit the XML. The program then reads the XML from the psoc, allows editing, and writes it back to the psoc which then, in our design, saves it to the external flash.
-Ed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ngohara,
the standard way would be to upload new settings to PSoC (as a buffer or each value individually) using UART or USBUART and save it in EEPROM for further use:
odissey1