Search found 35 matches

by MartinP
Tue May 28, 2013 11:06 pm
Forum: General Support
Topic: C++ local stack allocated instance destructor
Replies: 5
Views: 5810

Re: C++ local stack allocated instance destructor

Some extra braces { ... } should do the job in c++

Code: Select all

msg_t thread_func(void *)
{
  {
    foo f(10);
  } // Here the destructor will be called....
  chThdExit(0);
}


Martin
by MartinP
Thu May 16, 2013 8:18 am
Forum: STM32 Support
Topic: STM32F3 and Gyroscope
Replies: 14
Views: 20796

Re: STM32F3 and Gyroscope

For the Stm32F3 Discovery You could take the attachment (download/file.php?id=354) in this post (viewtopic.php?f=3&t=1021&p=9621#p9621)as an example

regards

Martin
by MartinP
Wed May 15, 2013 2:23 pm
Forum: Development and Feedback
Topic: Few STM32F3-Discovery available for devs/contributors
Replies: 9
Views: 7855

Re: Few STM32F3-Discovery available for devs/contributors

Just three?

I already own some of them. one to work with and 2 as spare parts...
as the price is affordable it might be that many of us already have one ...

Martin
by MartinP
Fri Apr 12, 2013 6:50 pm
Forum: Development and Feedback
Topic: [DONE] I2C driver for STM32F0
Replies: 51
Views: 47785

Re: [DONE] I2C driver for STM32F0

Hi Goeck,
Did you fix the missing DMA vectors?
in STM32F0xx\stm32_dma.c
you need to change the following:
Line 112: CH_IRQ_HANDLER( DMA1_Ch1_IRQHandler ) --> CH_IRQ_HANDLER( Vector64 )
Line 130: CH_IRQ_HANDLER( DMA1_Ch2_3_IRQHandler ) --> CH_IRQ_HANDLER( Vector68 )
Line 159: CH_IRQ_HANDLER( DMA1 ...
by MartinP
Thu Apr 11, 2013 8:47 am
Forum: Development and Feedback
Topic: KEIL RVCT files for STM32F0xx, STM32F2xx and STM32F3xx
Replies: 1
Views: 2342

KEIL RVCT files for STM32F0xx, STM32F2xx and STM32F3xx

I have created the config files for the Keil MDK (derived from a diff comparison on the respective gcc versions)
The STM32F0xx and STM32F3xx iI used extensively during the i2c debugging and they worked fine
the STM32F2xx I could not test due to missing hardware.

hope these are useful also for you ...
by MartinP
Wed Apr 10, 2013 1:13 pm
Forum: Development and Feedback
Topic: [DONE] I2C driver for STM32F0
Replies: 51
Views: 47785

Re: [DONE] I2C driver for STM32F0

The missing Vectors for the stm32f0xx I already mentioned here: http://forum.chibios.org/phpbb/viewtopic.php?f=3&t=822&start=20#p9983

didn't follow up as I thougt it was fixed. Sorry for that.


Martin
by MartinP
Thu Apr 04, 2013 11:55 am
Forum: Development and Feedback
Topic: [DONE] I2C driver for STM32F0
Replies: 51
Views: 47785

Re: [TODO] I2C driver for STM32F0

Giovanni,

I've stripped out all changes from my side except the DMA related fixes ported from V1.
my tests with a stm32f3 discovery worked fine. The stm32f051 discovery I can test this evening but I feel confident.
I have attached the files and hope it will save some of your time ...

Martin
by MartinP
Thu Apr 04, 2013 9:09 am
Forum: Development and Feedback
Topic: [DONE] I2C driver for STM32F0
Replies: 51
Views: 47785

Re: [TODO] I2C driver for STM32F0

Ad ISR: I just noted that after a transmission some of the remaining IF statements became true and the driver ran into a timeout and the status became locked --> game Over
Of course this can be on my side somewhere as it might be possible that I did not merge all necessary changes you made (I do ...
by MartinP
Thu Apr 04, 2013 9:01 am
Forum: Development and Feedback
Topic: [DONE] I2C driver for STM32F0
Replies: 51
Views: 47785

Re: [TODO] I2C driver for STM32F0

Giovanni,

I do not know the exact reason, but when I took the driver some weeks ago it did not work (the Interrupt flags were not resetted and DMA issuesd), then I had a look at Version 1 where there were some DMA related changes by Barthess. When merging in those changes the driver worked stable ...
by MartinP
Thu Apr 04, 2013 1:59 am
Forum: Development and Feedback
Topic: [DONE] I2C driver for STM32F0
Replies: 51
Views: 47785

Re: [TODO] I2C driver for STM32F0

Giovanni,

I have a working driver attached (slightly modified) which works on stm32f0xx and stm32f30x , unfortunately I have no stm32f7x for testing
it took me some time to merge the latest changes as some preprocessor defines disappeared.
For the STM32F0xx the DMA IRQ mapping got lost . You have ...