Search found 12951 matches

by Giovanni
Wed Jan 26, 2011 8:48 am
Forum: General Support
Topic: STM32 sd Spurious Character
Replies: 10
Views: 7209

Re: STM32 sd Spurious Character

Ok, anyway 2.2.0 should be released during next weekend.

Probably it would be a good idea to add an "end of transmission" event to the buffered serial driver too.

Giovanni
by Giovanni
Tue Jan 25, 2011 9:22 pm
Forum: General Support
Topic: STM32 sd Spurious Character
Replies: 10
Views: 7209

Re: STM32 sd Spurious Character

I just remembered, the UART driver does have a callback for the physical transmission end, you may consider using that one instead of the buffered Serial driver, it also allows efficient DMA transfers.

Giovanni
by Giovanni
Tue Jan 25, 2011 8:57 pm
Forum: Development and Feedback
Topic: I2C implementation for STM32
Replies: 346
Views: 92090

Re: I2C implementation for STM32

You can propose changes to the API, but I have some requirements: - It must be consistent with the other drivers as style and organization. - It is required to work asynchronously with callbacks much like the SPI driver does. - It could also offer an optional "wait" variant of the I/O func...
by Giovanni
Tue Jan 25, 2011 7:38 pm
Forum: Development and Feedback
Topic: I2C implementation for STM32
Replies: 346
Views: 92090

Re: I2C implementation for STM32

by Giovanni
Tue Jan 25, 2011 7:16 pm
Forum: General Support
Topic: STM32 sd Spurious Character
Replies: 10
Views: 7209

Re: STM32 sd Spurious Character

Just specify TIME_INFINITE as timeout or use the macro sdWrite().

Note that this only ensures that the buffer has been emptied but the USART may still be transmitting the last frames, in the STM32 there can be up two frames buffered in HW.

Giovanni
by Giovanni
Tue Jan 25, 2011 6:32 pm
Forum: Development and Feedback
Topic: I2C implementation for STM32
Replies: 346
Views: 92090

Re: I2C implementation for STM32

Hi, I added you as developer, now you should have write access to the repository, I suggest you create an i2c_dev branch and work there. About the I2C driver, IRQ support is pretty much mandatory because callbacks, DMA support would be nice too on platforms that support it. Please keep in mind that ...
by Giovanni
Tue Jan 25, 2011 9:51 am
Forum: General Support
Topic: Hardware control for SPI
Replies: 2
Views: 2050

Re: Hardware control for SPI

The STM32 SPI implementation does not use the hardware NSS control, the slave select pin must be asserted and de-asserted using spiSelect() and spiUnselect(), automatic NSS could be implemented as a customization in the SPI driver. The purpose of the ChibiOS/RT HAL is not to support all the HW featu...
by Giovanni
Tue Jan 25, 2011 9:09 am
Forum: General Support
Topic: STM32 sd Spurious Character
Replies: 10
Views: 7209

Re: STM32 sd Spurious Character

Hi Brian, The solution from mculover works but it leaves the USART clock enabled and you would still get the spurious character the next time you do sdStop() and then sdStart() again. The problem is not in the Serial driver but in interaction between USART and AFIO/GPIO. Programming the TX pin as &q...
by Giovanni
Sun Jan 23, 2011 11:45 am
Forum: General Support
Topic: How to register
Replies: 0
Views: 19439

How to register

Because spam bots I had to enable Q/A on registration, you will have to answer a simple question while registering. This does not stop everything, suspect accounts are deleted without warning (links to unrelated business, loosely content-related stupid spambot posts, "sleeping accounts", r...
by Giovanni
Sat Jan 22, 2011 11:44 am
Forum: General Support
Topic: SDRead function
Replies: 3
Views: 2702

Re: SDRead function

Hi Saran, You can read how many bytes there are in the input queue by using the macro chQSpaceI(). Anyway, I think there is a better approach, you are using the charachter "\r" as delimiter, it would be better to read by lines rather that by number of bytes. You may create a function like ...

Go to advanced search