Search found 385 matches
- Thu Apr 20, 2023 9:28 am
- Forum: ChibiOS/HAL
- Topic: serial driver cpu load
- Replies: 5
- Views: 2293
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...
- Wed Apr 19, 2023 4:21 pm
- Forum: ChibiOS/HAL
- Topic: serial driver cpu load
- Replies: 5
- Views: 2293
Re: serial driver cpu load
That number looks way too high anyway, are you confident it is an accurate measurement? I use the same shell thread command since a long time, and the numbers looks realistic, thread that does nearly nothing are close to 0%, only readBytes thread, which for the test does only a sdGet without using ...
- Wed Apr 19, 2023 2:14 pm
- Forum: ChibiOS/HAL
- Topic: serial driver cpu load
- Replies: 5
- Views: 2293
serial driver cpu load
Hello, using 21.11.3, I am surprised by the cpu load of using sdGet function : ° stm32F4 @ 168Mhz ° uart : 115200 bauds, 2400 bytes/ second on the line ° all _DBG_ stuff set to FALSE to minimise cpu load overhead ° STATISTIC enabled to measure cpu load I have a thread which only call sdGet(TIME_INFI...
- Mon Feb 06, 2023 4:11 pm
- Forum: STM32 Support
- Topic: [not chibios] stm32cube bug how to get help from ST?
- Replies: 4
- Views: 1304
Re: [not chibios] stm32cube bug how to get help from ST?
Hello,
have you tried dfu-util ? :dfu-util
works well for USB-DFU, packaged in ubuntu repository : apt install dfu-util
exemple to flash every STM32 with eeprom @0x8000000 :
Alexandre
have you tried dfu-util ? :dfu-util
works well for USB-DFU, packaged in ubuntu repository : apt install dfu-util
exemple to flash every STM32 with eeprom @0x8000000 :
Code: Select all
dfu-util -d 0483:df11 -c 1 -i 0 -a 0 -s 0x08000000:leave -D firmware.bin
Alexandre
- Mon Oct 17, 2022 3:13 pm
- Forum: STM32 Support
- Topic: SMT32G474- i2cAcquireBus not getting Mutex when built with -O0 compiler option Topic is solved
- Replies: 25
- Views: 4906
Re: SMT32G474- i2cAcquireBus not getting Mutex when built with -O0 compiler option Topic is solved
I am wondering whether it may be possible to use std::mutex to secure access to the shared library code. Are there any reasons that the std::mutex would not work within a chibios project? Hello, yes, there is a good reason : std::mutex use the underlying layer of the operating system, pthread for l...
- Thu Jun 09, 2022 4:00 pm
- Forum: ChibiOS/HAL
- Topic: [STM32] SPI master 3 wires (bidimode)
- Replies: 4
- Views: 2585
Re: [STM32] SPI master 3 wires (bidimode)
Hi Giovanni, In 3 wires mode, exchange is not relevant, what you can do is send or receive since there is only one data line. Speaking of the current driver, one reason actual dma send / dma receive function does not work in 3 wires mode is the fact that even for only sending or receiving, two dma c...
- Thu Jun 09, 2022 3:28 pm
- Forum: ChibiOS/HAL
- Topic: [STM32] SPI master 3 wires (bidimode)
- Replies: 4
- Views: 2585
Re: [STM32] SPI master 3 wires (bidimode)
Since I have not a lot data to transmit, ended writing low level polled function to send and receive one frame. /** * @brief send one frame using a polled wait. * @details This synchronous function send one frame using a polled * synchronization method. This function is useful when in 3 wires mode *...
- Thu Jun 09, 2022 10:01 am
- Forum: ChibiOS/HAL
- Topic: [STM32] SPI master 3 wires (bidimode)
- Replies: 4
- Views: 2585
[STM32] SPI master 3 wires (bidimode)
Hello, Does anyone had any success in using spi 3 wires, managing SPI_CR1_BIDIMODE and SPI_CR1_BIDIOE ? What I have tried is to have 2 spiConfig structure, one for reading, one for writing, both with SPI_CR1_BIDIMODE, the writing one having SPI_CR1_BIDIOE in addition. When I want to send, I do spiSt...
- Thu May 19, 2022 8:45 am
- Forum: Development and Feedback
- Topic: [INFO] ARM GCC 11.2
- Replies: 4
- Views: 4349
Re: [INFO] ARM GCC 11.2
Hello,
I have uploaded a new version where gdb don't need libiconv as a shared library, it's statically linked instead to avoid dependency.
The link in the original post should bring to the new version.
A.
I have uploaded a new version where gdb don't need libiconv as a shared library, it's statically linked instead to avoid dependency.
The link in the original post should bring to the new version.
A.
- Thu May 12, 2022 10:27 am
- Forum: Development and Feedback
- Topic: [INFO] ARM GCC 11.2
- Replies: 4
- Views: 4349
Re: [INFO] ARM GCC 11.2
Hello, For the bleeding edger I have compiled brand new arm-none-eabi-gcc 12.1, with newlib 4.2 and gdb 12.1 (patched) It should work on ubuntu (or ubuntu derived) 20.04 or later. On some benchmark, I have seen 5% gain in speed compiled with -Ofast compare to gcc11 (probably due to LTO optimisation)...