2011/6/30 Sergio Campamá <sergiocamp...@gmail.com>:
> Hello,

Hi,

> As an example, this code
>
> void (*button_callback_1)() = NULL; //button callback is 0 by default
>
> void button_process_interrupt(uint8_t button)
> {
>    switch(button)
>    {
>        case BUTTON_1:
>            if (button_callback_1 != NULL) button_callback_1();
>            break;
>    }
> }
>
> void button_interrupt(uint8_t button)
> {
>    task_add(&button_process_interrupt, TASK_PRIORITY_LOW, button);
> }
>
> void button_register_callback_1(void (*callback)())
> {
>    button_callback_1 = callback;
> }
>
> generates the following errors:
>
> obj_z1/button.obj: In function `button_process_interrupt':
> button.c:(.text+0x8): warning: internal error: unsupported relocation error
> obj_z1/button.obj: In function `button_register_callback_1':
> button.c:(.text+0x48): warning: internal error: unsupported relocation error
>
> What could be happening? I didn't want to file a bug report until being sure
> this is a bug.

isn't that logic error in C code?

The CPU has FLASH running a program code, also it may run a code from
the RAM. The FLASH is readonly, RAM is not. Where C program and linker
know that specific of the platform?

> Thanks for any help I can get. Best regards,

-- 
sed 'sed && sh + olecom = love'  <<  ''
-o--=O`C
 #oo'L O
<___=E M

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to