I'm using the Keil compiler and an AT91SAM7S512 and I'm having an issue. I am using a bootloader and I want to load application code into the second bank of the device. I have a few problems...
1. I can't read back the code above 0x140000 to verify that is is properly written. Below 256k, I would do something like the following:
Code:
UINT8 *ptr;
UINT32 address = 0x100000;
UINT32 i;
for (address = 0x100000; address < 0x140000; address++)
{
ptr = (UINT8*)address;
printf("%u ", *ptr);
}
Right now, all I get back is 0's.
2. Once I can verify that I've written the code and I want to jump to it from the bootloader, is it as simple as setting a void pointer to 0x140000 and jumping to it?