Hello everyone,
I'm running a small project on the Atmel Sam3u MCU with embOS
the project runs a simple task: blinking LED task which is working.
now, i try to catch button interrupt, perform some action, and then resume the task operation.
the problem is, that before the button is pressed the LED Task is running, when the button is pressed
the system enters the interrupt handler performs the actions and exits the handler but for some reason doesn't return to task.
* if i stop the run operation after the interrupt, the system stops in some line inside the interrupt handler.
* if i put a breakpoint inside the interrupt handler and after the breakpoint is reached i resume the operation (press Run again) the system works fine and the LED task runs again.
* the project is compiled using IAR workbench in Embedded C++ mode.
I've added the main.c and the bsp.c files.
I can't really understand where this bug comes from,
any help from you guys would be most appreciated,
Thanks in advance,
ARMKid
I'm running a small project on the Atmel Sam3u MCU with embOS
the project runs a simple task: blinking LED task which is working.
now, i try to catch button interrupt, perform some action, and then resume the task operation.
the problem is, that before the button is pressed the LED Task is running, when the button is pressed
the system enters the interrupt handler performs the actions and exits the handler but for some reason doesn't return to task.
* if i stop the run operation after the interrupt, the system stops in some line inside the interrupt handler.
* if i put a breakpoint inside the interrupt handler and after the breakpoint is reached i resume the operation (press Run again) the system works fine and the LED task runs again.
* the project is compiled using IAR workbench in Embedded C++ mode.
I've added the main.c and the bsp.c files.
I can't really understand where this bug comes from,
any help from you guys would be most appreciated,
Thanks in advance,
ARMKid