Hi,
Under certain circumstances ibqReadTimeout fails when called with a TIME_INFINITE interval.
On line 368 in hal_buffers.c the deadline gets calculated regardless if it's used later. If the size of systime_t and interval_t are different this triggers a chDbgCheck in chTimeAddX.
Recommendation ...
Search found 10 matches
- Thu Jul 12, 2018 9:09 am
- Forum: Bug Reports
- Topic: Deadline calculation in ibqReadTimeout and obqWriteTimeout
- Replies: 2
- Views: 2756
- Mon May 14, 2018 3:03 pm
- Forum: STM32 Support
- Topic: STM32F1x: SV#8 error in systick ISR
- Replies: 7
- Views: 5134
Re: STM32F1x: SV#8 error in systick ISR
Hi,
I'm using 16bit system time, because the chip only has 16bit timers.
It is my intuition that when the system time type and the interval type are different there are some strange corner cases which might fail (int overflow maybe?). But I have no hard evidence yet.
best regards,
greb
I'm using 16bit system time, because the chip only has 16bit timers.
It is my intuition that when the system time type and the interval type are different there are some strange corner cases which might fail (int overflow maybe?). But I have no hard evidence yet.
best regards,
greb
- Fri May 11, 2018 5:45 pm
- Forum: STM32 Support
- Topic: STM32F1x: SV#8 error in systick ISR
- Replies: 7
- Views: 5134
Re: STM32F1x: SV#8 error in systick ISR
Hi,
I found out where the problem was, but not exactly why. By reducing the CH_CFG_INTERVALS_SIZE from 32 to 16 bit the problem disappered. The reason why I did it was to circumvent a failing debug-assert in chTimeAddX when the interval was set to TIME_INFINITE. This solved not only my other ...
I found out where the problem was, but not exactly why. By reducing the CH_CFG_INTERVALS_SIZE from 32 to 16 bit the problem disappered. The reason why I did it was to circumvent a failing debug-assert in chTimeAddX when the interval was set to TIME_INFINITE. This solved not only my other ...
- Thu May 10, 2018 3:09 pm
- Forum: STM32 Support
- Topic: STM32F1x: SV#8 error in systick ISR
- Replies: 7
- Views: 5134
Re: STM32F1x: SV#8 error in systick ISR
Hi,
Thanks for the reply. According to the mcuconfig.h the IRQ priorities seem to look fine (e.g. STM32_ST_IRQ_PRIORITY=8).
I looked into the HAL ST code of ChibiOS and I didn't find any major changes between 16.x and 18.x. I'm somewhat perplexed. The HW runs 16.x without a problem.
best regards ...
Thanks for the reply. According to the mcuconfig.h the IRQ priorities seem to look fine (e.g. STM32_ST_IRQ_PRIORITY=8).
I looked into the HAL ST code of ChibiOS and I didn't find any major changes between 16.x and 18.x. I'm somewhat perplexed. The HW runs 16.x without a problem.
best regards ...
- Thu May 10, 2018 2:13 pm
- Forum: STM32 Support
- Topic: STM32F1x: SV#8 error in systick ISR
- Replies: 7
- Views: 5134
STM32F1x: SV#8 error in systick ISR
Hi,
I'm in the process to port one of my projects from ChibiOS 16.x to 18.x. I've enabled the debugging runtime-checks to hunt down possible bugs in my code base. Unfortunatly, whenever a thread sleeps it triggers SV#8 in the systick timer ISR.
Changing the timer or its IRQ priority doesn't help ...
I'm in the process to port one of my projects from ChibiOS 16.x to 18.x. I've enabled the debugging runtime-checks to hunt down possible bugs in my code base. Unfortunatly, whenever a thread sleeps it triggers SV#8 in the systick timer ISR.
Changing the timer or its IRQ priority doesn't help ...
- Thu Apr 12, 2018 4:18 pm
- Forum: Bug Reports
- Topic: Macro expansion bug in HAL SPI driver
- Replies: 1
- Views: 2772
Macro expansion bug in HAL SPI driver
Hi,
I've found a macro expansion bug in the SPI driver while porting my application to ChibiOS 18.2.x. While using spiSelectI I got the following compiler error:
/disk/greb/src/ChibiOS/os/hal/include/hal_spi.h:160:20: error: invalid type argument of '->' (have 'SPIDriver {aka ...
I've found a macro expansion bug in the SPI driver while porting my application to ChibiOS 18.2.x. While using spiSelectI I got the following compiler error:
/disk/greb/src/ChibiOS/os/hal/include/hal_spi.h:160:20: error: invalid type argument of '->' (have 'SPIDriver {aka ...
- Thu Nov 02, 2017 5:35 pm
- Forum: STM32 Support
- Topic: Flash wait state on STM32F103
- Replies: 1
- Views: 2851
Flash wait state on STM32F103
Hi,
I'm currently debugging a strange instruction fetch problem that occurs on some F103 chips. I'm running the SYSCLK at 48 MHz. According to reference manual (chapter 3.3.3) I should use a wait state of 0x1, but instead FLASH->ACR has a wait state of 0x0. After some digging around in the HAL ...
I'm currently debugging a strange instruction fetch problem that occurs on some F103 chips. I'm running the SYSCLK at 48 MHz. According to reference manual (chapter 3.3.3) I should use a wait state of 0x1, but instead FLASH->ACR has a wait state of 0x0. After some digging around in the HAL ...
- Thu Feb 09, 2017 4:39 pm
- Forum: Bug Reports
- Topic: [PATCH] LSE bypass on STM32F1xx
- Replies: 1
- Views: 3252
[PATCH] LSE bypass on STM32F1xx
Hi,
I noticed that there is no HAL support to enable the LSE bypass for STM32F1xx. It works the same as in some other STM32 chips (i.e. setting the LSEBYP bit in the backup domain control register). Other ports (e.g. STM32F0xx) support it by using the STM32_LSE_BYPASS macro. But not STM32F1xx.
I ...
I noticed that there is no HAL support to enable the LSE bypass for STM32F1xx. It works the same as in some other STM32 chips (i.e. setting the LSEBYP bit in the backup domain control register). Other ports (e.g. STM32F0xx) support it by using the STM32_LSE_BYPASS macro. But not STM32F1xx.
I ...
- Tue Apr 05, 2016 2:02 pm
- Forum: STM32 Support
- Topic: PAL_LINE on STM32F1xx
- Replies: 3
- Views: 2953
Re: PAL_LINE on STM32F1xx
Thank you for your answer. But I think there's a misunderstanding. The problem isn't that the macros are missing, because they're clearly there. And I'm using them already for other boards.
It is the missing definition for the type stm32_gpio_t in os/hal/ports/STM32/LLD/GPIOv1/pal_lld.h which is ...
It is the missing definition for the type stm32_gpio_t in os/hal/ports/STM32/LLD/GPIOv1/pal_lld.h which is ...
- Tue Apr 05, 2016 1:06 pm
- Forum: STM32 Support
- Topic: PAL_LINE on STM32F1xx
- Replies: 3
- Views: 2953
PAL_LINE on STM32F1xx
I've tried to use PAL_LINE and associated macros on a STM32F103. Compiling fails due to stm32_gpio_t's definition is missing from GPIOv1's pal_lld.h
On devices which use GPIOv2 (e.g. STM32L152) it works without problems.
I'm using git branch stable_16.1.x
What are some possible solutions to enable ...
On devices which use GPIOv2 (e.g. STM32L152) it works without problems.
I'm using git branch stable_16.1.x
What are some possible solutions to enable ...