URL: <http://savannah.nongnu.org/bugs/?28921>
Summary: pointer to function > 128k flash Project: AVR C Runtime Library Submitted by: steffen_g Submitted on: Mi 17 Feb 2010 12:40:21 GMT Category: None Severity: 3 - Normal Priority: 5 - Normal Item Group: None Status: None Percent Complete: 0% Assigned to: None Open/Closed: Open Discussion Lock: Any Release: Unknown Fixed Release: None _______________________________________________________ Details: Pointer to function works not correct with flash > 128k. A pointer to a function is 16 bit. This is not enough in AVR's with more than 128k flash. this is a part of the listfile (*.lss) 00020440 <vSend_Debug_Data>: */ //***************************************************************************** void vSend_Debug_Data (void) { ... ... u8Add_Time_Task (vSend_Debug_Data, TIME_DEBUG_DATA); 204c0: 80 e0 ldi r24, 0x00 ; 0 204c2: 90 e0 ldi r25, 0x00 ; 0 204c4: 6a ef ldi r22, 0xFA ; 250 204c6: 70 e0 ldi r23, 0x00 ; 0 204c8: 0e 94 6e ec call 0x1d8dc ; 0x1d8dc <u8Add_Time_Task> } greetings Steffen Graap _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?28921> _______________________________________________ Nachricht geschickt von/durch Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev