Talk:SW2-303: Difference between revisions
Jump to navigation
Jump to search
m (→chip erase cmd) |
|||
Line 95: | Line 95: | ||
=== chip erase cmd === | === chip erase cmd === | ||
<pre> | |||
01 01 20 df 03 = chip erase | 01 01 20 df 03 = chip erase | ||
Line 101: | Line 101: | ||
02 01 10 ef 03 = protection error | 02 01 10 ef 03 = protection error | ||
</pre> |
Revision as of 17:00, 18 September 2018
µPD78F11BB
1 wire uart comms
uart protocol for flash programming
01 - soh = start of heading(command sending to chip) 02 - stx = start of text/start transmission(marker for start of reply from chip) 03 - etx = end of text/end transmission(marker for end of reply from chip/end of command data sent to chip)
format of messaging
<stx/soh><length><command/error><data><checksum><etx>
checksum
Command frame: LEN + COM + all of command information
Data frame: LEN + all of data
get version cmd
01 01 c5 3a 03 = get version c5 02 01 06 f9 03 = ack response 02 06 00 00 00 01 00 00 f9 03 = 00 00 00 01 00 00 device version:0.00 firmware version: 1.00 DV1: Integer of device version (fixed to 00H) DV2: First decimal place of device version (fixed to 00H) DV3: Second decimal place of device version (fixed to 00H) FV1: Integer of firmware version FV2: First decimal place of firmware version FV3: Second decimal place of firmware version
verify? 0x14 cmd
01 01 14 eb 03 = 14 verify flash? 02 01 10 ef 03 = 10 protection error
blank block check cmd
01 08 32 00 00 00 0b ff ff 00 bd 03 = blank block check SAH, SAM, SAL: Block blank check start address (start address of any block) SAH: Start address, high (bits 23 to 16) SAM: Start address, middle (bits 15 to 8) SAL: Start address, low (bits 7 to 0) EAH, EAM, EAL: Block blank check end address (last address of any block) EAH: End address, high (bits 23 to 16) EAM: End address, middle (bits 15 to 8) EAL: End address, low (bits 7 to 0) D01: 00H: When performing a block blank check for a single block 01H: When performing a blank check for the complete area before erasing the chip start address:0x000000 end address:0x0bffff d01:00 = single block reply 02 01 1b e4 03 0x1b = 1BH MRG11 error Internal verify error or blank check error during data write
chip erase cmd
01 01 20 df 03 = chip erase reply 02 01 10 ef 03 = protection error