Forum : ARM
Original Post
Post Information | Post |
---|---|
August 4, 2010 - 11:52pm
|
Problem: void USART1_IRQHandler(void) |
Forum : ARM
Post Information | Post |
---|---|
August 4, 2010 - 11:52pm
|
Problem: void USART1_IRQHandler(void) |
I'm going to state my understanding of the situation to make sure I've interpreted your post correctly. If you build the code with "extern Command();" as shown below, the code builds fine and Command will not be called. If you build the code with "Command();" (extern removed), then you get a flash-full error.
Have you checked the .map file to make sure that the code for Command exists with the extern? Have you checked the .map file for other clues about flash use?
Is Command called from any other location?
"If you build the code with "extern Command();" as shown below, the code builds fine and Command will not be called."
Yes.
"If you build the code with "Command();" (extern removed), then you get a flash-full error."
No, i mean if i setup the project to "no optimize in proprties window, then i get a flash full error.
The initial problem was that function command was compiled without any errors but it was not executed during debugging steps. In an previous topic, i read that some problems during debugging while optimization is activ could still happen.
The problem is now solved in an different way, i copied the interrupt function to main program and everything works fine for now.
But it should also work under using the external file.