Hi
If you link a complete project to start at a higher address (but still within FLASH) it will load to the FLASH but will only be started if code handling the reset is ALSO available. This code can simply jump to the start address of the shifted project - as long as it knows where this is;-).
Have you also loaded something to sort this out or is the reset location blank? If it is blank, no code will be able to start.
Moving to the "Bare Minimum" project. This is linked to 0x800 start address.
This is the addres which is called by the Bare-Minimum Boot Loader, which has to be loaded into FLASH at address 0x00000000 (actually it gets the start address of the application from 0x804 and then jumps to it. This makes it compatible with any software which is normally linked to 0x00000000 but simply shifted to 0x800 since the address 0x804 then contains what normally would be the reset vector). In addition, to be totally clean, it also loads the Stack pointer with the value at 0x800:
/* If the uTaskerBoot return (without interrupt) the normal code can run */
/* we load its SP and the PC and let it continue... */
move.l #0x00000800,a0
move.l (a0),sp
move.l #0x00000804,a0
move.l (a0),a0
jmp (a0)
Check that you have indeed loaded BOTH of the programs to FLASH as the board can only start up when both are present. How to do this with CodeWarrior is explained in the document:
http://www.utasker.com/docs/uTasker/BM-Booloader_for_M5223X.PDFIt is interesting because you can then either debug the boot loader or the application (but not both in C). Set a break at the lines above in the boot loader project and then ensure that the jump from boot to application is working correctly. The boot loader is used by quite a lot of people and so should be fully operational as delivered.
If you would like your application to reside elsewhere simply modify the lines above to correspond to the link address of your code. Note however that your code may not have fixed interrupts in FLASH since these will not be used - it must use a vector table of its own positioned at the start of SRAM - the uTasker demo project works this way and so can be used together with the boot loader. Based on the start address which you specify (0x36000) it is correct to modify the ORIGIN value for flash1 in the linker script file - your code can however not be greater than 40k in size to fit within the 256k FLASH memory. You will not actually need the section flashconfig but maybe set it to 0x36400 to avoid any linker issues, and flash2 can be set to 0x36420 with LENGTH = 0x0009BE0 (total 40k left at end of FLASH)
Good luck
regards
Mark