Bootloader - erase flash memory
From: Thomas Baier (thomas_at_tho-bai.de)
Date: 11/16/04
- Next message: Paul E. Bennett: "Re: RS485, multidrop protocol"
- Previous message: SDL: "Re: Sistema antimanomissione e Cancellazione Eeprom"
- Next in thread: CBarn24050: "Re: Bootloader - erase flash memory"
- Reply: CBarn24050: "Re: Bootloader - erase flash memory"
- Reply: Joe Hagen: "Re: Bootloader - erase flash memory"
- Reply: jetmarc: "Re: Bootloader - erase flash memory"
- Reply: Gerhard Hempl: "Re: Bootloader - erase flash memory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 16 Nov 2004 21:38:00 +0100
Hi there,
I've got a C164CI and I have to write a bootloader in assembly to load my
Hex-Files into the Flash memory. I've got a 32-Byte primary loop that loads
another loop, refered to as secondary loop, which should load the main prog
and write it into the flash memory. Everything seems to work fine, as I've
inserted some LED controll codes, and the code seems to work, but when I've
finshed sending the Hex-File and reseted the microcontroller it starts the
prog that was (and obviously still is) in memory before.
My secondary loop only temporarly stores the data in a register and then
directly writes it into the flash starting on 00h.
I've got the disassembled code of an existing bootloader and there I found
that it is deleting the flash memory before it writes the data to it. But I
could not really find out how that works. The dissasembled code uses
instructions like
MEMMOV 0XAAAA, #0xAAAA, R3
but I havn't found out what this instruction does and the assembler I use
(Reads166 - Rigel Cooperation) doesn't even know it. So could anybody tell
me what MEMMOV does? (google didn't help :'-( )
Or/And
how you can erase the flash with assembly code?
What exactly is the principle of erasing memory? Is it to set every bit to
zero or exactly does that mean?
Thanks for your help
Thomas
- Next message: Paul E. Bennett: "Re: RS485, multidrop protocol"
- Previous message: SDL: "Re: Sistema antimanomissione e Cancellazione Eeprom"
- Next in thread: CBarn24050: "Re: Bootloader - erase flash memory"
- Reply: CBarn24050: "Re: Bootloader - erase flash memory"
- Reply: Joe Hagen: "Re: Bootloader - erase flash memory"
- Reply: jetmarc: "Re: Bootloader - erase flash memory"
- Reply: Gerhard Hempl: "Re: Bootloader - erase flash memory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|