Thank you Richard. I did not know that Nohau compiles check sum automatically. I assumed that I had to do it. Regards, Skulchak. --- In lpc2100@yahoogroups.com, "Richard" <richas@y...> wrote: > Skulchak, > The valid code "signature" at 0x14 is merely the two's complement > of the sum of the vector table. That way when the checksum for the > whole vector table is 0x00 for valid flash code. This is checked by > the bootloader automatically. In your case the signature at 0x14 is > generated autmatically by the Nohau debugger. You don't need to worry > about it. > In Seehau, under Config/Emulator/Misc Setup, make sure the "remap > after reset" and "Flash written as RAM....." are unchecked to run from > flash. You will also have to use/modify your IAR linker file to link > the code to flash. > > Hope this helps. > > Richard > > > --- In lpc2100@yahoogroups.com, "skulchak" <skulchak@y...> wrote: > > Hello group, > > > > I am trying to come up with a simple power up sequence > > for my application using IAR. So that I could just FLASH > > application into the part, and run it from RESET. I am > > using NOHAU J-TAG loader. > > > > I just read in the manual "Criterion for the valid user > > code". I am not sure if there is a mechanism in IAR or > > any other existing compiler for LPC2100 to create a valid > > checksum block around interrupt vectors. I could write > > a utility to update target binary file and insert a > > proper checksum there, or write vectors in assembly and use > > jumps to the fixed secondary jump-table to keep values in > > the interrupt area constant, hence, predictable for the local > > checksum. > > > > I just can't believe that things need to be that complex to > > power up an embedded processor and pass control to main(). > > > > I would highly appreciate any suggestions how to create > > a FLASH-based power up sequence. > > > > Regards, > > > > Skulchak.
Message
Re: Power up sequence
2003-12-04 by skulchak
Attachments
- No local attachments were found for this message.