I'm using the FRDM-K32L3A6 board. I'm downloading a secure binary (.sb) file using this command:
blhost -p COM5 receive-sb-file my_app.sb
Here is the command file I use when creating the .sb file:
sources {
myImage = "my_app.bin";
}
section (0)
{
erase 0x0000..0x70000;
load myImage > 0;
reset;
}
The first two commands 'erase' and 'load' work. But when 'reset' is reached, the ROM bootloader returns this status: kStatusRomLdrUnexpectedCommand. What does this error mean? The only documenation I could find say it means "The command tag in the SB file is unexpected" which tells me nothing more than what the error code already shows.
If I remove the 'reset' there is no error.
NOTE: I know I can reset using blhost, but for reasons I don't want to go into here (too long) I would prefer to do it using the secure binary command file.