DIYx flash bootloader



#4

Previously the only way to update the flash of the DIYx series of calculators Richard Ottosen and I have made required a special debugging interface. (Sort of like the HP programming cable, but more expensived due to having a microcontroller and other active electronics.)

It's long been on my to-do list, but I finally have a flash bootloader working for the DIY4x and DIY5. Currently it is able to install a new firmware image from a MicroSD card, but I expect to soon have it able to install from a host computer over USB also.

It's quite nice finally being to be able to do firmware updates without needing any special hardware.

Also, there's no fooling around with erase and reset buttons on a cable, or getting a blank display so you can't tell what's going on, and draining the coin cells rapidly.

Currently the bootloader takes around 44KB of the 1MB flash, which is much more than I expected, especially since the USB stack isn't even compiled in yet. From the linker map it is apparent that around 28KB of that is from the standard C library, which is linked in because I use printf(). I can replace that with a lightweight printf() replacement, and that should reduce it by 20KB or more, although I also need to add a bigger font for the LCD. My original objective was to have the bootloader fit in under 32KB of flash, but that might not be possible when including the USB stack. However, I think I'll be reasonably happy as long as it stays under 64KB, since that will still leave 960KB of flash for the calculator.

Edited: 9 Sept 2012, 6:40 p.m.


#5

Sounds like decent progress. It is a nice feeling to be able to easily reflash a device for the first time :-)

It also seems like you're close to target for the 32kb boot loader.


- Pauli

#6

Quote:
... there's no fooling around with erase and reset buttons on a cable, or getting a blank display so you can't tell what's going on, and draining the coin cells rapidly.

As written in the manual, that blank display phase can be annoying. Though it lost much of its horror since I know my calculator is well supplied by Harald's USB board :-)

Anyway, your flash bootloader is most welcome progress :-)


Possibly Related Threads…
Thread Author Replies Views Last Post
  DIY HP 30b WP 34s serial flash/programming cable Richard Wahl 2 2,568 12-04-2013, 11:14 AM
Last Post: Barry Mead
  PRIME: re-format the flash drive to recover the operating system Harold A Climer 2 1,745 11-06-2013, 12:22 AM
Last Post: Michael de Estrada
  Bad Flash in HP Prime Han 11 3,367 09-27-2013, 12:38 PM
Last Post: Han
  Flash Flood Warning: 9/16/2013 (One Week from HHC13) Eddie W. Shore 8 2,927 09-17-2013, 09:20 PM
Last Post: Craig Ruff
  FLASH? command Andrew Nikitin 1 1,238 06-18-2013, 01:02 AM
Last Post: Walter B
  [EXCLUSIVE FLASH] Infos about new HP Prime ! Mic 16 4,175 04-02-2013, 11:06 AM
Last Post: Frank Boehm (Germany)
  No luck getting flash disk to work in 95lx Harald 7 3,013 03-18-2013, 08:11 AM
Last Post: Harald
  [41CL] Repairing an image in Flash Monte Dalrymple 0 914 01-24-2013, 07:01 PM
Last Post: Monte Dalrymple
  DIYx flash bootloader Eric Smith 11 2,858 09-19-2012, 07:01 PM
Last Post: Eric Smith
  WP34s Flash Question rgray 18 5,786 06-19-2012, 03:20 AM
Last Post: Cristian Arezzini

Forum Jump: