We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
Iam working on a luminary micro based cortex M3 processor. Iam not using any RTOS. Iam trying to use system timer tick (luminary software based) packet transmitter code.
The code works on stepping using debugger but goes to interrupt when run (which is just going to the same place). Because of this i couldnt test my code at all.
Please help me understand why this problem is happening and how to solve it.
Thanks, vivek
hi Vivek
Would u give me your contact details so that we may be in touch to solve our problem regarding Luminary. By the way which controller you are using now?
how do you solve the problem? My include headers are
#include <stdio.h> #include <string.h> #include <math.h> #include <malloc.h> #include <stdlib.h> #include <time.h>
#include "limits.h" #include "driverlib/loc_time.h"
#include "inc/hw_ints.h" #include "inc/hw_memmap.h" #include "inc/hw_nvic.h" #include "inc/hw_types.h" #include "driverlib/ethernet.h" #include "driverlib/flash.h" #include "driverlib/gpio.h" #include "driverlib/uart.h" #include "driverlib/interrupt.h" #include "driverlib/sysctl.h" #include "driverlib/systick.h" #include "utils/lwiplib.h" #include "utils/uartstdio.h" #include "utils/ustdlib.h"
What is the code of SysTickIntEnable(); function? When ever I just disable the SysTickIntEnable(); my program comes out from the Interrupt Default Handler but I couldn't able to get the proper result from my program. Despite providing the delays LCD display scrolls randomly. Is there any other thing to be added with or need to modify? Suggest me please.
Hi, You must have some *.s file (say startup_lm3s.s). You could modify the start up file similar to this.
EXTERN Systick_handler ... ... ...
DCD <some_handler1> DCD <some_handler2> DCD Systick_handler
and you can declare Systick_handler in some other file.
void Systick_handler (void){ <dummy function> }
sysTick is a periodic interrupt generated using a peripheral timer.
replace IntDefaultHandler to Systick_handler or any other handler in appropriate place.
If it is not directed to default handler and you handle it yourself, then you avoid this problem.
Hope this helps.
Best Regards, -vivek
I am also have the problem with SysTickIntEnable(); When I disable this function I am able to run my program but it gives a continuous scrolling display (I am using LCD display) despite providing delays. To handle SysTickIntEnable(); properly what should I do? When I am doing any changes in IntDefaulHandler it gives me error in compilation time.