Search found 272 matches

by faisal
Tue May 04, 2021 6:28 am
Forum: Bug Reports
Topic: context switch observed inside S-locked state Topic is solved
Replies: 26
Views: 1720

Re: context switch observed inside S-locked state Topic is solved

http://www.chibios.org/dokuwiki/doku.php?id=chibios:documentation:books:rt:kernel_system#critical_sections "Critical sections" in virtually every other OS means a specific thing (are you aware of any exceptions?). There is an expectation that atomicity of actions taken with the "criti...
by faisal
Tue May 04, 2021 12:27 am
Forum: Bug Reports
Topic: context switch observed inside S-locked state Topic is solved
Replies: 26
Views: 1720

Re: context switch observed inside S-locked state Topic is solved

This helps: Get the notion out of your head that the "Lock" ind ChSysLock() means that you are establishing a critical zone as you would in other RTOSes. It's not true that interrupts are completely disabled from your ChSysLock() invocation to your next ChSysUnlock() invocation. S-Class AP...
by faisal
Tue May 04, 2021 12:04 am
Forum: Bug Reports
Topic: context switch observed inside S-locked state Topic is solved
Replies: 26
Views: 1720

Re: context switch observed inside S-locked state Topic is solved

Hi Giovanni, Thanks for the input here. This does sound confusing. Specially when the documentation does not make it any clearer. Consider this example: Thread: ChSysLock() chThdSuspendTimeoutS() ChSysUnlock() It seems that the thread locks the system (no interrupts) and then goes to sleep. Even if...
by faisal
Sun May 02, 2021 5:25 am
Forum: Bug Reports
Topic: context switch observed inside S-locked state Topic is solved
Replies: 26
Views: 1720

Re: context switch observed inside S-locked state Topic is solved

So, given that - do you think the documentation needs to elaborate some more on what S-locked means? S-Locked. Kernel locked and regular interrupt sources disabled . Fast interrupt sources are enabled. S-Class and I-Class APIs are invokable in this state. So they are disabled until an S class API ca...
by faisal
Sun May 02, 2021 1:26 am
Forum: Bug Reports
Topic: context switch observed inside S-locked state Topic is solved
Replies: 26
Views: 1720

Re: context switch observed inside S-locked state Topic is solved

Also, the documentation says that interrupts are disabled in S locked state, but there is code like the following which works. So.are interrupts disabled or not? [I know they are not, I'm just trying to come up with a coherent understanding of the lock states .... And to reconcile language in the do...
by faisal
Sun May 02, 2021 12:46 am
Forum: Bug Reports
Topic: context switch observed inside S-locked state Topic is solved
Replies: 26
Views: 1720

Re: context switch observed inside S-locked state Topic is solved

Ok, I'm back to this slightly confused state with S class functions. So, if I want to implement a critical zone and manipulate a global variable , it seems that isn't possible to o guarantee in an S-lock state? So below a high priority thread is waiting to receive a fifo object. The low priority thr...
by faisal
Thu Apr 29, 2021 10:39 pm
Forum: Development and Feedback
Topic: Precision periodic timer using virtual timers
Replies: 24
Views: 1599

Re: Precision periodic timer using virtual timers

Oh, and one small request from me: please sync changes like these to github too. I know you prefer SVN over git, but I find extracting patches using svn or the OSDN webinterface much slower and more cumbersome than using git where they are all synced to your local system and are easily accessible. ...
by faisal
Sat Apr 24, 2021 12:01 pm
Forum: Development and Feedback
Topic: Precision periodic timer using virtual timers
Replies: 24
Views: 1599

Re: Precision periodic timer using virtual timers

Any update on this?
by faisal
Sun Apr 04, 2021 4:49 am
Forum: Bug Reports
Topic: QSPI erratum "fix" not applicable to stm32L496 Topic is solved
Replies: 4
Views: 328

Re: QSPI erratum "fix" not applicable to stm32L496 Topic is solved

The actual diff on my end is below. I was missing the dmaStreamClearInterrupt(wspip->dma) - which was added in the last month as a bug fix. However, that didn't fix the problem. I kept that, but removed the errata handling and added back the dmaStreamDisable from the previous revision. That seems to...
by faisal
Sun Apr 04, 2021 1:16 am
Forum: Bug Reports
Topic: QSPI erratum "fix" not applicable to stm32L496 Topic is solved
Replies: 4
Views: 328

Re: QSPI erratum "fix" not applicable to stm32L496 Topic is solved

I checked all the errata for the L4 series (https://www.st.com/en/microcontrollers-microprocessors/stm32l4-series.html#documentation). There are 12 errata published for the different devices in the series. Below is the applicable patch targeting those devices that have the "Extra data written i...

Go to advanced search