Search found 8 matches

by gnif
Wed Aug 31, 2016 6:43 pm
Forum: General Support
Topic: Read timeout BaseSequentialStream
Replies: 8
Views: 7322

Re: Read timeout BaseSequentialStream

I just came across this thread while looking for clarification as to whether the BaseSequentialStream functions read and write should be blocking. The docs (in version 3 too) make it sound like it's non-blocking (and that put/get are blocking) but in the case of the serial driver over usb the read ...
by gnif
Wed Aug 24, 2016 3:21 pm
Forum: STM32 Support
Topic: Debugging unhandled exception.
Replies: 13
Views: 17501

Re: Debugging unhandled exception.

BRILLIANT! Thank you very much!, This should be in ChibiOS by default.
by gnif
Wed Nov 25, 2015 12:05 pm
Forum: STM32 Support
Topic: SPI API Bug
Replies: 3
Views: 2677

Re: SPI API Bug

Hrmm, ok, but personally I would have added a simple check for zero size, and return quietly if it is, just like all other IO type methods in most other APIs and languages, ie

Code: Select all

fwrite(buffer, 0, 0, fp) == 0
by gnif
Wed Nov 25, 2015 8:57 am
Forum: STM32 Support
Topic: SPI API Bug
Replies: 3
Views: 2677

SPI API Bug

This is just a bug report with ChibiOS 3.

If spiSend is called with a zero size buffer, the dma transfer is configured, and stared, but will never issue an IRQ due to the zero size, and as such the thread will never unsuspend.
by gnif
Sat Nov 14, 2015 4:40 pm
Forum: General Support
Topic: CAN - Don't get RXMSG
Replies: 12
Views: 12084

Re: CAN - Don't get RXMSG

You can remap to PB8 & PB9 with the following

Code: Select all

AFIO->MAPR |= AFIO_MAPR_CAN_REMAP_REMAP2;
by gnif
Sat Nov 14, 2015 6:00 am
Forum: STM32 Support
Topic: [SOLVED] CANBUS Issues.
Replies: 1
Views: 2908

Re: CANBUS Issues.

I found the issue, it was indeed the baud rate...

The calculation is actually

Code: Select all

STM32_PCLK1  / ((BRP + 1) * (SJW + (TS1 + 1) + (TS2 + 1)) = bps


So the correct values for 500kbps would be:

Code: Select all

BRP = 5
SWJ = 1
TS1 = 5
TS2 = 4
by gnif
Sat Nov 14, 2015 4:10 am
Forum: STM32 Support
Topic: [SOLVED] CANBUS Issues.
Replies: 1
Views: 2908

[SOLVED] CANBUS Issues.

Hi All,

I am attempting to connect to my vehicles can bus using a STM32F103RET6 via a MCP2551. I have a DSO attached to RX on the MCP2551 and I can verify that I am getting nice clean data from the ECU (See attached DSO screenshot), and I have verified that the RX bit is flipping on the CAN status ...
by gnif
Wed Jan 08, 2014 12:34 am
Forum: STM32 Support
Topic: ADC Sample Rate
Replies: 1
Views: 2782

ADC Sample Rate

Hi,

I have started to use ChibiOS and find its design is excellent. Yesterday started to try to write some code to use the ADC. I wish to sample analogue audio at a specific sample rate, 48 to 96khz would be nice. The problem is that I do not know or understand how to configure the ADC to run at ...