Re: [libopencm3-devel] SPI problem on STM32F0 series.

2014-12-04 Thread Марко Краљевић
To be honest I wasn't even using usart_send(), and rather just using USART_TDR() directly... so it's a bigger problem than just usart_send()'s argument type, and seems to be related to the size of pointer to the usart's TDR register (which is just DR on the other STM32's I've dealt with. F0 seems t

Re: [libopencm3-devel] SPI problem on STM32F0 series.

2014-12-04 Thread Chuck McManis
I've added it as issue #371, usart_recv is also broken. Basically the f0 should be using usart_common_all.h for its prototypes (which would have caught this) rather than its own home grown versions. I'll try to figure out how I could test this on my nucleo board. Perhaps using a soft serial port on

Re: [libopencm3-devel] SPI problem on STM32F0 series.

2014-12-04 Thread Chuck McManis
For what ever reason on the f0 usart_send has the following prototype: void usart_send(uint32_t usart, uint8_t data); So you should get an error if you try to sent it a short (uint16) value in the data slot. The doxygen comment is incorrect (which says it takes a 16 bit data word). So my guess i

Re: [libopencm3-devel] SPI problem on STM32F0 series.

2014-12-04 Thread Марко Краљевић
Looks like the USART on F0 has the same problem, in 9 bit mode. data is a uint16_t. using this, as in usart_send(); USART_TDR(USART2) = data; doesn't send the 9th bit. Instead it sends the LSB *again*, for reasons I'm not sure of. i.e. send 0x100 -> transmits 0x000 (!) send 0x001 -> transmits

Re: [libopencm3-devel] logo idea

2014-12-04 Thread Piotr Esden-Tempski
Hi Karl, This looks great! Thanks for making it. I do not have an alternative to offer, and I think the circuit brain relationship to Cortex is good. Cheers, Piotr > On Dec 4, 2014, at 13:26, Karl P wrote: > > > So, there's been no logo for... well, ever. And I got a bit sick of the > gith

Re: [libopencm3-devel] logo idea

2014-12-04 Thread Kuldeep Singh Dhaka
Cool! On 12/05/2014 02:56 AM, Karl P wrote: > So, there's been no logo for... well, ever. And I got a bit sick of the > github > autogenerated icon (useful as they are) and hacked up something rather gross. > > But, then "brabo"[1] on IRC said he would speak to one of his colleagues about > it,

Re: [libopencm3-devel] logo idea

2014-12-04 Thread Hesky Fisher
Looks cool. On Thu, Dec 4, 2014 at 4:26 PM, Karl P wrote: > > So, there's been no logo for... well, ever. And I got a bit sick of the > github > autogenerated icon (useful as they are) and hacked up something rather gross. > > But, then "brabo"[1] on IRC said he would speak to one of his collea

[libopencm3-devel] logo idea

2014-12-04 Thread Karl P
So, there's been no logo for... well, ever. And I got a bit sick of the github autogenerated icon (useful as they are) and hacked up something rather gross. But, then "brabo"[1] on IRC said he would speak to one of his colleagues about it, and... https://dl.dropboxusercontent.com/u/1810685/li