Hello,
there's an option in keil uvision under "options for target >> utilities" which is called init file.
Is it possible to write an short code, where I'm able to set one pin to gnd bevor I upload some code by jtag?
Is there a code example for such things?
best wishes daniel
I know who I can set one pin of my controller to a 0 or 1 - the only thing I don't know is how I have to implement this code into the init file.
e.g. for my atmel controller:
AT91C_BASE_PIOB->PIO_SODR |= AT91C_PIO_PB15;
AT91C_BASE_PIOB->PIO_CODR |= AT91C_PIO_PB15;
that's the code to set one pin of my controller to 0 or 1.
my init file at the moment:
// Switching from Slow Clock to Main Oscillator for faster Download _WDWORD(0xFFFFFC20, 0x00000601); // PMC_MOR: Enable Main Oscillator _sleep_(10); // Wait for stable Main Oscillator
How do I have to write this code in the init file?
best regards daniel