Hi,
I was wondering what the best way is to disable interrupts when using ChiBios. I have a colleague that is trying to do a few things, and has had troubles.
This is for the STM32F2xx family of processors...
1. How do you disable ALL interrupts?
2. How do you disable only certain interrupts?
3 ...
Search found 8 matches
- Mon Jan 17, 2011 2:59 pm
- Forum: General Support
- Topic: Interrupts - How to disable them??
- Replies: 1
- Views: 5251
- Mon Jan 17, 2011 2:52 pm
- Forum: General Support
- Topic: STM32 Issues
- Replies: 13
- Views: 19528
Re: STM32 Issues
Sorry about the slow response but I wanted to do some testing before I was sure of my results.
As it turns out, we believe we had an issue with version 2.0.4 because we were using the PendSV interrupt vector. So we may have been compiling it incorrectly.
When we moved to 2.0.8 we had issues where ...
As it turns out, we believe we had an issue with version 2.0.4 because we were using the PendSV interrupt vector. So we may have been compiling it incorrectly.
When we moved to 2.0.8 we had issues where ...
- Tue Jan 04, 2011 8:43 pm
- Forum: General Support
- Topic: STM32 Issues
- Replies: 13
- Views: 19528
Re: STM32 Issues
Giovanni wrote:BTW, are you using the ChibiOS/RT startup files? if not make sure that the processor is in process/privileged mode before initializing the OS.
We are not using your startup code, so which file should I be looking at to setup the process/privileged mode?
- Tue Jan 04, 2011 7:57 pm
- Forum: General Support
- Topic: STM32 Issues
- Replies: 13
- Views: 19528
Re: STM32 Issues
Sure, you must write interrupt handler using the OS macros as shown in this article: m
The macros take care of the rescheduling after the handler execution.
In ChibiOS/RT there are 2 abstract classes of IRQ: regular and fast.
Regular interrupt cannot preempt the kernel because have a priority ...
- Tue Jan 04, 2011 6:09 pm
- Forum: General Support
- Topic: STM32 Issues
- Replies: 13
- Views: 19528
Re: STM32 Issues
I should mention that we have relocated the interrupt vector table into RAM. This seems to function fine with our code, but perhaps this is causing an issue with ChiBios?
Are you using the OS macros for interrupt handlers??
Can you give an example of the OS macros for interrupt handlers?
About ...
Are you using the OS macros for interrupt handlers??
Can you give an example of the OS macros for interrupt handlers?
About ...
- Tue Jan 04, 2011 4:44 pm
- Forum: General Support
- Topic: STM32 Issues
- Replies: 13
- Views: 19528
Re: STM32 Issues
The thread states are not directly controlled by the application. Something like what you are describing happened to another developer a couple of months ago while developing an ADC driver, the ready list got corrupted.
The problem was caused by an interrupt handler that didn't reset the IRQ source ...
The problem was caused by an interrupt handler that didn't reset the IRQ source ...
- Thu Dec 23, 2010 10:38 pm
- Forum: General Support
- Topic: STM32 Issues
- Replies: 13
- Views: 19528
Re: STM32 Issues
Giovanni,
I did some more debugging and looking at the trace, one thread has exited (main), one thread is in the ready state and three threads are sleeping. There isn't any threads running. And that is what we have noticed. It is always sitting in the idle_thread.
What method is used to get the ...
I did some more debugging and looking at the trace, one thread has exited (main), one thread is in the ready state and three threads are sleeping. There isn't any threads running. And that is what we have noticed. It is always sitting in the idle_thread.
What method is used to get the ...
- Wed Dec 22, 2010 9:22 pm
- Forum: General Support
- Topic: STM32 Issues
- Replies: 13
- Views: 19528
STM32 Issues
Hi,
I have been running a version of ChiBios 2.0.4 (Kernel no HAL) on the STM32F207 processor (has the CortexM3 Core). It is very new, and not released. After some driver developement I started to experiance some crashes, which resulted in the svcall interrupt vector. I have upgraded the kernel of ...
I have been running a version of ChiBios 2.0.4 (Kernel no HAL) on the STM32F207 processor (has the CortexM3 Core). It is very new, and not released. After some driver developement I started to experiance some crashes, which resulted in the svcall interrupt vector. I have upgraded the kernel of ...