Author Topic: Firmware update via USB mass storage  (Read 13039 times)

0 Members and 1 Guest are viewing this topic.

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16276
  • Country: za
Re: Firmware update via USB mass storage
« Reply #25 on: November 27, 2016, 06:02:43 pm »
Well, for that application simply having a small ( easy these days) microcontroller, with a built in SPI interface, that you plug into a normally sealed socket, which then gives you power and a JTAG interface which then loads the new firmware onto the chip. 3 leds on the plug in card, power, busy and then a bicolour led for pass/fail result of programming, so you know to unplug and try again, or that the device is failed and needs replacement. You can then have some security as the target can have protect bits set which are erased with the bulk erase command, then write the new firmware, read back to verify checksum then set lock bits on it afterwards so you can only run the code on the device.

Small low cost micro ( possibly even a LCD display, but 3 lights is easier to use) with some EEprom for storing number of attempts, versions before and after and probably the built in serial numbers ( stored on the built in EEprom of the target so it is not erased with the flash) of the updated devices, so you can get a report of the updates you have done after completion.

Bespoke for sure, but can be fitted into a small package, perhaps with a built in power bank to power up the target if needed to program it with main power off.
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26892
  • Country: nl
    • NCT Developments
Re: Firmware update via USB mass storage
« Reply #26 on: November 27, 2016, 06:15:09 pm »
The first thing I disable on a production device is the JTAG interface to prevent (deter) copying the firmware. Secondly a JTAG interface is notoriously susceptible to interference which makes it a very bad choice for anything else than R&D use.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf