Hi there,
My attempt to find such a suggestion failed, so here it is with all it's details:
As we have more than enough memory on the MSD for a selection of binaries, I soon missed a way to take control over the flashing process.
Here's a possibly not too unfamiliar situation:
While debugging, you find some weird behavior in your recent code. To compare code revisions, you start flashing different binaries and comparing or measuring your mbed's output.
Possibly more interesting situation:
Your mbed surroundings require you to disconnect it from the PC to run. To speed things up, you write different versions of a function and intend to run one after another.
The reason why we really need this:
Oh, I'm sure you'll find one...
In both these cases it would be really useful if some sort of flash.cfg (or whatever) on the MSD would provide ways of selecting one binary of many based on filename, or even create a 'playlist' which would load the next binary on the list at the push of the reset button (or even a USB-COM command/magic code). To make things even more comfortable, the magic chip could print the filename on it's USB-COM if defined in flash.cfg.
Here's a suggestion, what this file could look like:
# Flash control
#flash_this = MakeMeRich_LPC1768.bin
flash_this = LookMaImAnArduino_LPC1768.bin
flash_playlist_enable = false
# Playlist control
load_next_on_reset = false
playlist_COM_control = true
playlist_next = "some string"
playlist_prev = "some other string"
#playlist_next = 0xBAADBABE
#playlist_prev = 0xC001BABE
playlist_return_filename = false
file1 = MakeMeRich_LPC1768.bin
file2 = NVICtest_LPC1768.bin
file3 = NVICtest_debug_LPC1768.bin
file4 = NVIC_WTF_print_every_register_to_UART_LPC1768.bin
file5 = NVIC_thisShouldWork_LPC1768.bin
file6 = DeadLock_LPC1768.bin
file7 = PinTest_LPC1768.bin
file8 = Relaxing_RGB_Fader_LPC1768.bin
I am aware that this asks for a magic chip firmware upgrade. It may or may not be possible/easy to upgrade. To know for sure, one needs to know the Magic Chip and it's security configuration.
I guess that's it for now...
Luke
Hi there, My attempt to find such a suggestion failed, so here it is with all it's details:
As we have more than enough memory on the MSD for a selection of binaries, I soon missed a way to take control over the flashing process.
Here's a possibly not too unfamiliar situation: While debugging, you find some weird behavior in your recent code. To compare code revisions, you start flashing different binaries and comparing or measuring your mbed's output.
Possibly more interesting situation: Your mbed surroundings require you to disconnect it from the PC to run. To speed things up, you write different versions of a function and intend to run one after another.
The reason why we really need this: Oh, I'm sure you'll find one...
In both these cases it would be really useful if some sort of flash.cfg (or whatever) on the MSD would provide ways of selecting one binary of many based on filename, or even create a 'playlist' which would load the next binary on the list at the push of the reset button (or even a USB-COM command/magic code). To make things even more comfortable, the magic chip could print the filename on it's USB-COM if defined in flash.cfg.
Here's a suggestion, what this file could look like:
I am aware that this asks for a magic chip firmware upgrade. It may or may not be possible/easy to upgrade. To know for sure, one needs to know the Magic Chip and it's security configuration.
I guess that's it for now...
Luke