We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
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