Hi all,
I want to place a function in the bootload sector of my ATmega32, where I will do some writings to a flash table. How will I get the compiler to place the function and just this one function at 0x7000 ?
I have tried
//Declaration
void (*table_write) (float flash *table_ptr, float value2 )=0x7000;
//Defenition
void table_write(float flash *table_ptr, float value2)
{//Function body
}I have also tried various usage of #asm(".org 0x7000"), but this always seem to cause problems when compiling.
What is the right approach ? I need to have the function placed at 0x7000 since I cannot use the "spm" instruction in the app. area of the flash :(
I use the Codevision Compiler from HPinfotech.
Best Regards
Morten Jørgensen