Hello,
I've a short question: Is it possible to write one command to an external flash device in the init file (option for target > debug > initialization file)???
Something like that:
#define M16(adr) (*((volatile unsigned short *) (adr))) FUNC FlashDevice(void) { M16(base_adr + 0x0555) = 0xAA; } //... FlashDevice();
best regards Stefan
serial/parallel?
Oh I'm sorry... it's a parallel flash device with the baseadr 0x10000000 16bit databus.
is there a solution to write such an command in the init file?
_WWORD(base_adr + 0x0555, 0xAA);
Predefined debug functions: http://www.keil.com/support/man/docs/uv3/uv3_df_predeffunct.htm
You may also want to look at:
http://www.keil.com/support/docs/3059.htm
Jon