Search found 451 matches

by mobyfab
Thu Apr 13, 2017 1:36 pm
Forum: User Projects
Topic: my Engine Control Module
Replies: 39
Views: 18091

Re: my Engine Control Module

Giovanni wrote:LOL, now you can start over with RT 4 ;)

Giovanni


You're making my life difficult. :D
Now that we use git submodules it should be a lot easier, also we are using the stable branches so it's not there yet.
by mobyfab
Fri Apr 07, 2017 11:27 am
Forum: STM32 Support
Topic: ChibiOS crashes when my firmware is not at beginning of flash memory
Replies: 32
Views: 6539

Re: ChibiOS crashes when my firmware is not at beginning of flash memory

Just be careful to rewrite the vectors table after you erase the page, or use another one.

You can also change the linker script to handle updating it but you will loose the data you stored after each update.

There's no perfect solution here. ;)
by mobyfab
Thu Mar 30, 2017 5:30 pm
Forum: STM32 Support
Topic: ChibiOS crashes when my firmware is not at beginning of flash memory
Replies: 32
Views: 6539

Re: ChibiOS crashes when my firmware is not at beginning of flash memory

So flash sector 0 can never contain pure data? That's annoying. You need to have a vectors table at address zero containing at least the reset address and the MSP initial value. Sorry but I know very little about vectors table, how would I do that? It depends on the boot pins, but most of the times...
by mobyfab
Fri Mar 24, 2017 10:49 am
Forum: Bug Reports
Topic: EXTI lines number on STM32F303x8 Topic is solved
Replies: 6
Views: 1685

Re: EXTI lines number on STM32F303x8 Topic is solved

Did you have time to implement the fix?

Thanks
by mobyfab
Sun Feb 19, 2017 4:07 pm
Forum: User Projects
Topic: WinUsb driver less
Replies: 0
Views: 748

WinUsb driver less

Hi, I managed to get a driver less IAD device working on one of my projects, so I though I should share the config as it's really convenient. Basically I use and IAD (composite) device with 2 CDC interface, but the second one is declared as custom (bInterfaceClass set to 0) so that windows does not ...
by mobyfab
Mon Feb 13, 2017 4:10 pm
Forum: Bug Reports
Topic: EXTI lines number on STM32F303x8 Topic is solved
Replies: 6
Views: 1685

EXTI lines number on STM32F303x8 Topic is solved

Hi, It seems like number of EXTI lines in the registry for STM32F303x8 is incorrect. EXTI line 33 is connected to Comparator 7 output (STM32F303xB/C/D/E, STM32F358xC and STM32F398xE devices) GCC Error: Compiling stm32_dma.c ../ChibiOS/os/hal/ports/STM32/STM32F3xx/hal_ext_lld_isr.c: In function 'ext_...
by mobyfab
Wed Feb 08, 2017 11:56 am
Forum: STM32 Support
Topic: External ADC & DMA
Replies: 37
Views: 7555

Re: External ADC & DMA

by mobyfab
Fri Jan 20, 2017 3:07 pm
Forum: STM32 Support
Topic: External ADC & DMA
Replies: 37
Views: 7555

Re: External ADC & DMA

Indeed, I missed that.

You need to have them on a single port, or you need more DMA channels (one per port), and some logic to get the proper result. (which defies the use of DMA...)
by mobyfab
Fri Jan 20, 2017 12:01 pm
Forum: STM32 Support
Topic: External ADC & DMA
Replies: 37
Views: 7555

Re: External ADC & DMA

Something like that (untested) #define STM32_TIM_CR2_CCDS (1U << 3) static GPTConfig gptcfg = { 200000, /* timer clock.*/ NULL /* Timer callback.*/ }; int main(void) { uint16_t buffer[] = {0x000C,0x000C,0x000C}; halInit(); chSysInit(); gptStart(&GPTD2, &gptcfg); GPTD2.tim->CR2 |= STM32_TIM_C...
by mobyfab
Fri Jan 20, 2017 11:43 am
Forum: STM32 Support
Topic: External ADC & DMA
Replies: 37
Views: 7555

Re: External ADC & DMA

First you need to check which DMA has access to GPIO, then you have to configure it: channel/stream, source (gpio register), destination (memory), trigger (can be software or a timer), data width (16bit). This is pretty much what you need, except the direction has to be reversed: http://www.chibios....

Go to advanced search