March 14th, 2013, 5:58
typedef struct 32ByteBlockBiosHeader
{
byte ID; //[Byte 00] Header ID 0x5A it's called "kernel loader"...it loads and unpacks all the others...being executed by the MCU's bootstrap?
byte type; //[Byte 01]?? 1,3 compressed?
short decomp_sizeH; //[Bytes 02:03] higher 16bit of the decompressed size ??
int block_Size; //Directory Size + 1 checksum byte
int block_size; //Directory Size without checksum byte
int block_start; //The offset in this file where dir starts
int block_addr; //Mem addr Where the MCU's Bootstarp or the "kernel loader" (0x5a = first block-not compressed) loads and unpack the data
int entry_point; //The EP for this directosy. Gets called if needs exec. if this is -1 won't be executed;
byte UNK4[4]; //01 0A 00 00
short decomp_sizeL; //lower 16bit of the decompressed size
byte pad;
byte CKS; //checksum is calculated over all buffer but the crc byte
}32ByteBlockBiosHeader; March 14th, 2013, 9:29
March 14th, 2013, 12:19
Spildit wrote:Very nice and great research !
Will be following this thread with great interest !
Did you fond the points to short on your pcb for the boot loader to enter x-modem mode or it does that by itself if the ROM have a crc error ?
Apart of figuring out where to connect the rx/tx to the com port you need to figure out how to enter on that modem mode...
March 15th, 2013, 8:49
March 17th, 2013, 9:05
March 26th, 2013, 6:04
The injected data is sent as 128bytes packet with prefix consisting of a simple 3-byte header containing a <SOH> command character (0x01), a "block number" from 0-255, and the "inverse" block number-255 minus the block number
March 26th, 2013, 6:33
March 26th, 2013, 7:04
If you write the rom image to MCU's ram this doesn't mean that it will be written to the ROM chip.
March 26th, 2013, 7:59
March 26th, 2013, 8:24
If internal flash it's bad..then the bootstrap enters in "terminal" mode. also...
March 26th, 2013, 8:49
March 26th, 2013, 9:09
the terminal doesn't wait for the ROM image! again...it waits for some code
or we need some kind of code block to be downloaded
March 26th, 2013, 9:17
migann wrote:So, we need some thing like SystemL.dll
March 26th, 2013, 9:35
March 26th, 2013, 10:12
March 26th, 2013, 10:16
March 26th, 2013, 21:35
louis wrote:migann wrote:So, we need some thing like SystemL.dll
call it "loader". in that case it contains the code for writing the flash. and I have strong feelings that it's MCU dependent.
May 17th, 2013, 17:07
September 18th, 2013, 22:21
Powered by phpBB © phpBB Group.