Shop OBEX P1 Docs P2 Docs Learn Events
Working on Bootloader Code... How do I get the start of the variable stack area? — Parallax Forums

Working on Bootloader Code... How do I get the start of the variable stack area?

KyeKye Posts: 2,200
edited 2010-12-29 01:16 in Propeller 1
Hey all,

I'm working on my SD3.0 FATEngine's bootloader code and I've managed to get the boot time down well below a second. Not sure exactly how fast it is... but it's instant to a human now.

Anyway, I've encounted a problem with BIN files that can't be fixed robustly unless I know the size of the BIN file in bytes from its BIN image.

Since BIN files are pretty much everything until the VAR space/area I just need to find the value in the BIN file that points to the start of the VAR space.

(The problem is that I need to zero everything after the BIN file's data. It's not true that all the bytes after a file's data in the sectors that make up a file are zeroed...)

Is there an any answer to this?

Comments

  • kuronekokuroneko Posts: 3,623
    edited 2010-12-28 19:20
    Kye wrote: »
    Since BIN files are pretty much everything until the VAR space/area I just need to find the value in the BIN file that points to the start of the VAR space.

    word[4]
  • KyeKye Posts: 2,200
    edited 2010-12-28 20:14
    Thanks!

    Was reading http://www.cliff.biffle.org/software/propeller/binary-format.html. But it was confusing!

    EDIT: It works great now!
  • Dr_AculaDr_Acula Posts: 5,484
    edited 2010-12-29 01:16
    I'm looking forward to using this. The bootloader code in the Kyedos I am using is a little out of date - and it seems like 5 seconds or more. Under a second is going to be great.

    Keep up the good work!
Sign In or Register to comment.