Search found 7 matches

by deeznutz
Thu Jan 22, 2015 9:04 pm
Forum: STM32 Support
Topic: STM32F107 DAC on chibios 2.6.4
Replies: 12
Views: 7849

Re: STM32F107 DAC on chibios 2.6.4

Ok, thank you, I will do that... I also tried the 3.0 branch without success... Sure that the example "should" work?

Cheers

Nils
by deeznutz
Wed Jan 21, 2015 4:33 pm
Forum: STM32 Support
Topic: STM32F107 DAC on chibios 2.6.4
Replies: 12
Views: 7849

Re: STM32F107 DAC on chibios 2.6.4

Ok, a step further... DAC works with dacConvert(&DACD1,dac_value);

@Mobifab: Do you have an example for a simple sinewave -or whatever- DMA application? Tried this http://forum.chibios.org/phpbb/viewtopic.php?f=16&t=2274&sid=922760ebe0bec88e6f3bf751c592bbfa#p18358 one without ...
by deeznutz
Wed Jan 21, 2015 3:30 pm
Forum: STM32 Support
Topic: STM32F107 DAC on chibios 2.6.4
Replies: 12
Views: 7849

Re: STM32F107 DAC on chibios 2.6.4

Thanks for your comments. Error "undefined reference to `_stm32_dma_streams'" dissapeared after enabling SPI as Mobyfab recommended. I think I have messed up something else... I will try to restart from scratch and see if I can get it running...
by deeznutz
Wed Jan 21, 2015 3:18 pm
Forum: STM32 Support
Topic: STM32F107 DAC on chibios 2.6.4
Replies: 12
Views: 7849

Re: STM32F107 DAC on chibios 2.6.4

Hmm, strange, the error changed... not sure what I have changed in the meantime...

Linking build/ch.elf
`chThdExit' referenced in section `.text._port_thread_start.4322' of C:\Users\OSSENB~1.FB1\AppData\Local\Temp\cc8fCAza.ltrans0.ltrans.o: defined in discarded section `.text' of build/obj ...
by deeznutz
Wed Jan 21, 2015 2:37 pm
Forum: STM32 Support
Topic: STM32F107 DAC on chibios 2.6.4
Replies: 12
Views: 7849

Re: STM32F107 DAC on chibios 2.6.4

Hi,

I get the following error when linking:

Linking build/ch.elf
build/obj/dac_lld.o: In function `dac_lld_init':
C:\ChibiStudio\workspace26\STM32F4xx-DAC-Test/../../ChibiOS-Drivers/stm32/dac_lld.c:138: undefined reference to `_stm32_dma_streams'

Any ideas?

Thanks!

Nils
by deeznutz
Tue Jan 20, 2015 8:38 pm
Forum: STM32 Support
Topic: DAC error for STM32F4 discovery
Replies: 13
Views: 12065

Re: DAC error for STM32F4 discovery

Ok, I will check that tomorow... Thanks!

Nils
by deeznutz
Tue Jan 20, 2015 6:35 pm
Forum: STM32 Support
Topic: DAC error for STM32F4 discovery
Replies: 13
Views: 12065

Re: DAC error for STM32F4 discovery

Hi,

first of all thanks for that great os!

I have some problems to get the DAC thing to work... as a starting point I used the example posted by c2issy. After eliminating a couple of warnings (mainly redeclaration) I got stuck when linking the projekt with the following errors:


main.c:98:3 ...