Thanks Giovanni.I will do as you mentioned.
@mobyfab, Thanks. I am still using V2.6.1 but the driver you pointed out is for V3.0
Shall I shift to V3.0?
Search found 10 matches
- Wed Oct 29, 2014 11:52 am
- Forum: STM32 Support
- Topic: InputCapture Interrupts
- Replies: 5
- Views: 2917
- Wed Oct 29, 2014 6:15 am
- Forum: STM32 Support
- Topic: InputCapture Interrupts
- Replies: 5
- Views: 2917
InputCapture Interrupts
Dear Giovanni,
I need to use four input capture module for Timer2, the hardware is developed like that.
Currently chibios input capture interrupts support 2 channels for a timer but I have to use four.
So I used STM32 standard library interrupts for input capture alone.
Now I get hardfault error ...
I need to use four input capture module for Timer2, the hardware is developed like that.
Currently chibios input capture interrupts support 2 channels for a timer but I have to use four.
So I used STM32 standard library interrupts for input capture alone.
Now I get hardfault error ...
- Wed Oct 22, 2014 2:44 pm
- Forum: STM32 Support
- Topic: Disabling Unhandled exception
- Replies: 12
- Views: 5920
Re: Disabling Unhandled exception
All the ISR are defined by me.Im not using any os functions there.Im using STM standard library functions for interrupt generation.
- Wed Oct 22, 2014 1:53 pm
- Forum: STM32 Support
- Topic: Disabling Unhandled exception
- Replies: 12
- Views: 5920
Re: Disabling Unhandled exception
Im using ST link debugger.It doesnt have traceability option.
One thing I found is if any exception happens from any ISR, everything freezes.Is there any way to enable the interrupts after an exception happens? For me it is happpening from ISR not from thread.
One thing I found is if any exception happens from any ISR, everything freezes.Is there any way to enable the interrupts after an exception happens? For me it is happpening from ISR not from thread.
- Wed Oct 22, 2014 1:23 pm
- Forum: STM32 Support
- Topic: Disabling Unhandled exception
- Replies: 12
- Views: 5920
Re: Disabling Unhandled exception
Actually Im getting SV#10 not SV#4
Is there any document explaining how to trace stack?
Is there any document explaining how to trace stack?
- Wed Oct 22, 2014 12:59 pm
- Forum: STM32 Support
- Topic: Disabling Unhandled exception
- Replies: 12
- Views: 5920
Re: Disabling Unhandled exception
int main(void) {
Initialize_OS(); //Initialze ChibiOS related functions
Initialize_Threads(); //Initializing thread
while (1) {
}
}
void Initialize_Threads(void) {
static WORKING_AREA(Task1, 2624);
Thread_Id = chThdCreateStatic(Task1, sizeof(Task1), NORMALPRIO, Thread, NULL);
}
msg_t ...
Initialize_OS(); //Initialze ChibiOS related functions
Initialize_Threads(); //Initializing thread
while (1) {
}
}
void Initialize_Threads(void) {
static WORKING_AREA(Task1, 2624);
Thread_Id = chThdCreateStatic(Task1, sizeof(Task1), NORMALPRIO, Thread, NULL);
}
msg_t ...
- Wed Oct 22, 2014 12:54 pm
- Forum: STM32 Support
- Topic: Disabling Unhandled exception
- Replies: 12
- Views: 5920
Re: Disabling Unhandled exception
It was there.But I commented everything.Still the same result.
- Wed Oct 22, 2014 12:19 pm
- Forum: STM32 Support
- Topic: Disabling Unhandled exception
- Replies: 12
- Views: 5920
Re: Disabling Unhandled exception
int main()
{
static WORKING_AREA(Task1, 2624);
Thread_Id = chThdCreateStatic(Task1, sizeof(Task1), NORMALPRIO, Thread, NULL);
while(1);
}
msg_t Thread(void *arg)
{
while (TRUE) {
chThdYield();
}
}
This piece of code is giving error as misplaced I-class function.
What could be the reason?
{
static WORKING_AREA(Task1, 2624);
Thread_Id = chThdCreateStatic(Task1, sizeof(Task1), NORMALPRIO, Thread, NULL);
while(1);
}
msg_t Thread(void *arg)
{
while (TRUE) {
chThdYield();
}
}
This piece of code is giving error as misplaced I-class function.
What could be the reason?
- Wed Oct 22, 2014 11:51 am
- Forum: STM32 Support
- Topic: Disabling Unhandled exception
- Replies: 12
- Views: 5920
Re: Disabling Unhandled exception
hi,
Thanks for your reply.I enabled all debug options and I'm getting SV#4, misplaced chSysLock().I didnt find an answer why this error is happening because im using only chThdYield() function call in four threads.Im not using chSysLock() anywhere in my application.
Thanks for your reply.I enabled all debug options and I'm getting SV#4, misplaced chSysLock().I didnt find an answer why this error is happening because im using only chThdYield() function call in four threads.Im not using chSysLock() anywhere in my application.
- Wed Oct 22, 2014 5:31 am
- Forum: STM32 Support
- Topic: Disabling Unhandled exception
- Replies: 12
- Views: 5920
Disabling Unhandled exception
hi,
I have a doubt regarding unhandled exception.My code works perfectly for around 13 hours.After that unhandled exception is triggered.As a fix for this I disable the unhandled exception.If exception comes code goes to nvicEnableVector() function in nvic.c and all my code gets freezed.How can i ...
I have a doubt regarding unhandled exception.My code works perfectly for around 13 hours.After that unhandled exception is triggered.As a fix for this I disable the unhandled exception.If exception comes code goes to nvicEnableVector() function in nvic.c and all my code gets freezed.How can i ...