Search found 42 matches

by piers
Sat Feb 13, 2021 11:10 am
Forum: Bug Reports
Topic: STM32H7 ADCv4 dual mode DMA issue
Replies: 5
Views: 2553

Re: STM32H7 ADCv4 dual mode DMA issue

I've tried the dual ADC mode a bit more, and found out that sometimes it does trigger correctly, sometimes not. In the current firmware it triggers correctly, the DMA is called when both samples are in the CDR register. Then after a couple of minutes it changes and the DMA is called when only the AD...
by piers
Fri Feb 05, 2021 5:42 pm
Forum: STM32 Support
Topic: ChibiOS-Contrib USB_MSD testhal example crashes Topic is solved
Replies: 5
Views: 2963

Re: ChibiOS-Contrib USB_MSD testhal example crashes Topic is solved

Ok, it is fixed in ChibiOS-Contrib now, I reimplemented the msd_request_hook function, though the default reaction without custom request handler seems valid also. Stalling on get_max_lun at least. The Bulk-Only Mass Storage Reset is not commonly used apparently, so I'm not sure about that.
by piers
Wed Feb 03, 2021 10:04 am
Forum: STM32 Support
Topic: ChibiOS-Contrib USB_MSD testhal example crashes Topic is solved
Replies: 5
Views: 2963

Re: ChibiOS-Contrib USB_MSD testhal example crashes Topic is solved

Ah, I see. The problem probably is in msd_request_hook then. If I comment that out is usbcfg.c it doesn't crash, I'll look into that further. lsusb still gives errors for the device qualifier and debug qualifier. I'm not sure if that can be a problem, but it seems nice to not have errors. Any ideas ...
by piers
Tue Feb 02, 2021 5:22 pm
Forum: STM32 Support
Topic: ChibiOS-Contrib USB_MSD testhal example crashes Topic is solved
Replies: 5
Views: 2963

Re: ChibiOS-Contrib USB_MSD testhal example crashes Topic is solved

Thanks for your quick answer. To me it seems that the EP0 code is all handled in ChibiOS, in hal_usb.c. So I don't understand how the MSD code (which uses EP1) could cause an EP0 related crash? Any ideas?
by piers
Tue Feb 02, 2021 4:42 pm
Forum: STM32 Support
Topic: ChibiOS-Contrib USB_MSD testhal example crashes Topic is solved
Replies: 5
Views: 2963

ChibiOS-Contrib USB_MSD testhal example crashes Topic is solved

I'm building a (open source) bootloader using the USB MSD mass storage device driver from ChibiOS-Contrib. However the MSD driver crashes when connecting to a MacOS or Windows machine. This happens both in the STM32F4 and the STM32H7 example (ChibiOS-Contrib/testhal/STM32/STM32F4xx/USB_MSD and Chibi...
by piers
Thu Sep 17, 2020 12:18 pm
Forum: General Support
Topic: I2C Bus Scanner
Replies: 6
Views: 3617

Re: I2C Bus Scanner

Tabulous, did you find a solution for scanning the I2C bus? I'm trying something similar, and I also think an I2C scanner would be a nice ChibiOS I2C example project.
by piers
Tue Sep 15, 2020 4:36 pm
Forum: Bug Reports
Topic: Nucleo H743ZI board has wrong pin for LED 2
Replies: 4
Views: 2437

Re: Nucleo H743ZI board has wrong pin for LED 2

Ok, good. I went through the schematics to see if there are other changes, but it looks like the rest is the same.

I forgot to change the board name, so here's a new version attached.
by piers
Tue Sep 15, 2020 1:30 pm
Forum: Bug Reports
Topic: Nucleo H743ZI board has wrong pin for LED 2
Replies: 4
Views: 2437

Nucleo H743ZI board has wrong pin for LED 2

In the Nucleo H743ZI board files LED2 is at PB7, and is named BLUE, while my board has LED2 on PE1 and is yellow. I have the NUCLEO-H743 ZI2 board (with the Rev-V chip), so not sure if the original ZI Nucleo board with the Rev-Y chip has a blue led on PB7, or there is a mistake in the board files. S...
by piers
Wed Aug 05, 2020 10:08 am
Forum: Bug Reports
Topic: STM32H7 ADCv4 dual mode DMA issue
Replies: 5
Views: 2553

Re: STM32H7 ADCv4 dual mode DMA issue

Is it possible to have the (single) DMA be triggered by the slave ADC? Good idea. I did a quick test by using dmaSetRequestSource(adcp->data.dma, STM32_DMAMUX1_ADC2); in hal_adc_lld.c, but it didn't immediately work. DMA didn't seem to trigger. I'll have another look when I've got more time.
by piers
Wed Jul 29, 2020 11:29 am
Forum: Bug Reports
Topic: STM32H7 ADCv4 patches Topic is solved
Replies: 32
Views: 14223

Re: STM32H7 ADCv4 patches Topic is solved

Great.

Note that for the BDMA of ADC3 the samples buffer needs to be in ram4. Probably that's not immediately clear for everybody.

Go to advanced search