Search found 374 matches

by alex31
Sun Jan 28, 2024 10:34 am
Forum: Bug Reports
Topic: sdc erase handling of sdhc sdxc card
Replies: 0
Views: 348

sdc erase handling of sdhc sdxc card

Hi, sdcErase fails for high capacity SD card. from https://chlazza.nfshost.com/sdcardinfo.html, note 10 => 10. SDSC Card (CCS=0) uses byte unit address and SDHC and SDXC Cards (CCS=1) use block unit address (512 bytes unit). So the test in sdcErase seems inverted tested with if ((sdcp->cardmode &...
by alex31
Wed Jan 24, 2024 9:47 pm
Forum: Bug Reports
Topic: stm32f7 registry about programmable CRC
Replies: 0
Views: 382

stm32f7 registry about programmable CRC

Hello,

In os/hal/ports/STM32/STM32F7xx/stm32_registry.h, STM32_CRC_PROGRAMMABLE is defined to FALSE for
all sub families but F73x and F2x, but reference manual and CMSIS say that all F7XX have PROGRAMMABLE CRC.

Alexandre
by alex31
Tue Jan 02, 2024 11:43 am
Forum: User Projects
Topic: modern C++ job dispatcher
Replies: 0
Views: 953

modern C++ job dispatcher

Hello, not really a project, just small module to discuss the use of modern C++ in embedded world. What can modern C++ can do for us, embedded developers ? I am not a C++ expert, but I want to submit for educational and criticism purpose a module small enough to be readable in minutes, and big enoug...
by alex31
Sat Dec 23, 2023 9:11 am
Forum: Bug Reports
Topic: fifoObject internal bug Topic is solved
Replies: 6
Views: 3340

Re: fifoObject internal bug Topic is solved

beautiful, works flawlessly.

You have resolved a race condition with a patch that also make the code shorter, that's fine !
Alexandre
by alex31
Fri Dec 22, 2023 11:42 pm
Forum: Bug Reports
Topic: fifoObject internal bug Topic is solved
Replies: 6
Views: 3340

Re: fifoObject internal bug Topic is solved

That's a good question, I use GPTD5 and

Code: Select all

#define STM32_IRQ_TIM5_PRIORITY             7


So it seems that it's more that 2 so it should be OK

A.
by alex31
Fri Dec 22, 2023 5:39 pm
Forum: Bug Reports
Topic: fifoObject internal bug Topic is solved
Replies: 6
Views: 3340

fifoObject internal bug Topic is solved

using chibios 21.11.x with lasts updates I have occurrence of error using fifoObject api when I stress it a bit where internal assert fails in chGuardedPoolAllocI (called by chFifoTakeObjectI) : chDbgAssert(chSemGetCounterI(&gmp->sem) >= (cnt_t)0, // ** gdb show that gmp->sem = -1 ** "semap...
by alex31
Tue Nov 14, 2023 11:14 pm
Forum: Bug Reports
Topic: copy paste typo in SPIV3 (H7) driver. Topic is solved
Replies: 3
Views: 1994

Re: copy paste typo in SPIV3 (H7) driver. Topic is solved

Hi,
Any reason for using v1?


Don't know yet :-)
Have to ask other dev that made the choice, but Ardupilot and Paparazzi are using V1 for accessing invensense IMU at high rate
Will try to revert to v2 in Paparazzi to see if it breaks things or not.

Alexandre
by alex31
Wed Nov 01, 2023 9:12 am
Forum: Bug Reports
Topic: copy paste typo in SPIV3 (H7) driver. Topic is solved
Replies: 3
Views: 1994

Re: copy paste typo in SPIV3 (H7) driver. Topic is solved

Note that the problem is in the V1 driver, not in the more recent V2 driver.
A.
by alex31
Wed Nov 01, 2023 8:39 am
Forum: Bug Reports
Topic: copy paste typo in SPIV3 (H7) driver. Topic is solved
Replies: 3
Views: 1994

copy paste typo in SPIV3 (H7) driver. Topic is solved

Hello, On stm32H7, SPI is connected to BDMA, it's managed by the driver, but there is copy paste typo in a dbgAssert check, so the app run fine without assert, but fail when they are in use. Here is the patch for ChibiOS 21.11.x current. diff --git a/os/hal/ports/STM32/LLD/SPIv3/hal_spi_lld.c b/os/h...
by alex31
Thu Apr 20, 2023 9:28 am
Forum: ChibiOS/HAL
Topic: serial driver cpu load
Replies: 5
Views: 2123

Re: serial driver cpu load

Thanks to all for the replies, I will rework my library (frsky fport bidirectional telemetry handler, will post it in contrib when finished) as suggested, with a state machine managed by the ISR and only post to thread complete messages. This will have a beneficial side effect : separate the state m...

Go to advanced search