View previous topic :: View next topic |
Author |
Message |
Nick Guest
|
When I put a function call in the #int_ext, out of rom? |
Posted: Wed Aug 04, 2004 9:28 am |
|
|
When I put a function call in #int_ext I get an out of rom error. The function I'm calling reads the eeprom and reads the rtc clock. Any know what I'm doing wrong? I can do a printf function call.
Nick |
|
|
garyzheng
Joined: 22 Jul 2004 Posts: 25
|
give out some part of code for #int_ext:) |
Posted: Wed Aug 04, 2004 9:38 am |
|
|
give out some part of code for #int_ext:) |
|
|
Nick Guest
|
|
Posted: Wed Aug 04, 2004 9:45 am |
|
|
the actually code is not on this computer, but if its needed I can post it.
basically this is it
Code: |
#int_ext
void detect_rb_change()
{
checkTimers();
}
|
|
|
|
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
|
|
Posted: Wed Aug 04, 2004 10:07 am |
|
|
If your application is not timing critical I would simply set a bit, in the interrupt service routine, that would enable the function to be called in the main body. |
|
|
Nick Guest
|
|
Posted: Wed Aug 04, 2004 10:09 am |
|
|
great idea! Thanks bud! |
|
|
valemike Guest
|
|
Posted: Wed Aug 04, 2004 11:16 am |
|
|
How much remaining space in ROM did you have if you don't call that particular function in the ISR?
-Mike |
|
|
|