Working on Bootloader Code... How do I get the start of the variable stack area?
Kye
Posts: 2,200
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?
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
word[4]
Was reading http://www.cliff.biffle.org/software/propeller/binary-format.html. But it was confusing!
EDIT: It works great now!
Keep up the good work!