Search found 25 matches

by plyatov
Fri Apr 06, 2018 6:47 pm
Forum: Small Change Requests
Topic: SPI Slave Driver
Replies: 29
Views: 5687

Re: SPI Slave Driver

It is likely a configuration issue You should use only SPIx_NSS line as Chip Select. And it must be configured into Alternate mode to behave as NSS pin of corresponding SPI module. Typically this is made in the board.h file. This spiStartSendI() will send a byte to the SPI buffer via DMA. It will n...
by plyatov
Sat Mar 10, 2018 9:10 am
Forum: Small Change Requests
Topic: SPI Slave Driver
Replies: 29
Views: 5687

Re: SPI Slave Driver

I'm not sure which chibi spi methods I should call to handle a transaction of data from the salve to the master. Here is example of how to use my SPI slave patch in ChibiOS applications. Example communicates with SPI master by means of tl_start_receive() and tl_start_send(). Additionally, assert_ds...
by plyatov
Fri Dec 01, 2017 2:00 pm
Forum: Development and Feedback
Topic: Debugging improvements.
Replies: 26
Views: 7663

Re: Debugging improvements.

Hello! I have made some improvements in the exceptionvectors.c It allow to display a backtrace in the GDB if DEBUG_BACKTRACE defined. Additionally, HardFault_Handler() improved to show local variables by "i loc" even if optimization is enabled at Makefile. /* * If a serious error occurs, o...
by plyatov
Wed May 31, 2017 2:07 pm
Forum: Small Change Requests
Topic: SPI Slave Driver
Replies: 29
Views: 5687

Re: SPI Slave Driver

Thanks for you attention Giovanni!
by plyatov
Wed May 31, 2017 1:59 pm
Forum: Small Change Requests
Topic: SPI Slave Driver
Replies: 29
Views: 5687

Re: SPI Slave Driver

Hello! I have made very simple support for SPI slave. See attached archive with patches. It is already used for a while and it for sure will be useful for others. Irrespective to all talks above, I does not see any issues in its operation. Better to have such implementation then do not have it at all.
by plyatov
Wed Sep 14, 2016 1:16 pm
Forum: STM32 Support
Topic: SPI data lost at low frequency of bus
Replies: 4
Views: 847

Re: SPI data lost at low frequency of bus

Dear Giovanni,

thank you very much!

I completely forget about lifetime of such variables and even does not pay attention to this fact.

Now everything works as expected.

Best wishes.
--
Igor
by plyatov
Wed Sep 14, 2016 11:04 am
Forum: STM32 Support
Topic: SPI data lost at low frequency of bus
Replies: 4
Views: 847

Re: SPI data lost at low frequency of bus

Could you try spiSend() without callback? it returns when the transfer is over. Yes, Giovanni of course spiSend() works fine and does not distort data at any bitrate, but it is synchronous. I need to use asynchronous functions and understand why they does not work as expected or what is wrong made ...
by plyatov
Wed Sep 14, 2016 8:47 am
Forum: STM32 Support
Topic: SPI data lost at low frequency of bus
Replies: 4
Views: 847

SPI data lost at low frequency of bus

Hello everybody! Please suggest how to understand what is going on and how to resolve issue. I use STM32F4xx platform (STM32F427VI at 180 MHz), ChibiOS_16.1.5 and have issue with SPI data integrity at low bitrates. Configuration and handling of SPI is following: SPIDriver *spi_drv_dac8562 = &SPI...
by plyatov
Mon Feb 01, 2016 4:42 pm
Forum: STM32 Support
Topic: 32-bit ICU
Replies: 0
Views: 583

32-bit ICU

Dear all, in the ChibiOS_16.1.2, I have found a bug at icu_lld.c. If we use 32-bit timers like TIM2 or TIM5, then they are not able to measure long pulses. The ARR register overflows too early. So, here is a small patch which resolve this issue. --- a/ChibiOS_16.1.2/os/hal/ports/STM32/LLD/TIMv1/icu_...
by plyatov
Mon Feb 09, 2015 8:17 am
Forum: ChibiStudio
Topic: Error: ChibiOS/RT registry check failed, double linked...
Replies: 8
Views: 2230

Re: Error: ChibiOS/RT registry check failed, double linked..

Giovanni, thank you for support!

--
Igor

Go to advanced search