Search found 41 matches

by sabdulqadir
Thu May 06, 2021 1:02 am
Forum: Bug Reports
Topic: context switch observed inside S-locked state Topic is solved
Replies: 26
Views: 1720

Re: context switch observed inside S-locked state Topic is solved

Coming back to the topic, m,y confusion stems from the fact that chThdSuspendS() would unlock the system when it reschedules. This is not apparent nor mentioned anywhere in the documentation (I may have missed something though), do we agree to that? S functions DO NOT unlock the system but DO perfo...
by sabdulqadir
Wed May 05, 2021 5:09 am
Forum: ChibiOS/HAL
Topic: Three serial com ports with CDC drivers
Replies: 2
Views: 133

Re: Three serial com ports with CDC drivers

Ok, got it to work, at least partially. No change in descriptors was needed so far.
Thanks for the help,
AQ
by sabdulqadir
Wed May 05, 2021 5:08 am
Forum: Bug Reports
Topic: context switch observed inside S-locked state Topic is solved
Replies: 26
Views: 1720

Re: context switch observed inside S-locked state Topic is solved

... If it is unlike other RTOSes, well, I am glad to hear that :D , probably this is also why it is running circles around other "typical RTOSes". Giovanni Way to go Faisal, you made Giovanni's day today ;) Coming back to the topic, m,y confusion stems from the fact that chThdSuspendS() w...
by sabdulqadir
Mon May 03, 2021 11:49 pm
Forum: Bug Reports
Topic: context switch observed inside S-locked state Topic is solved
Replies: 26
Views: 1720

Re: context switch observed inside S-locked state Topic is solved

Hi Giovanni, Thanks for the input here. This does sound confusing. Specially when the documentation does not make it any clearer. Consider this example: Thread: ChSysLock() chThdSuspendTimeoutS() ChSysUnlock() It seems that the thread locks the system (no interrupts) and then goes to sleep. Even if ...
by sabdulqadir
Mon May 03, 2021 6:33 pm
Forum: Bug Reports
Topic: context switch observed inside S-locked state Topic is solved
Replies: 26
Views: 1720

Re: context switch observed inside S-locked state Topic is solved

I-class functions never perform a context switch, s-class can do that. ... The ambiguity is that chSchRescheduleS() could not be required depending on which I-class functions you are using, it does not hurt anyway. In general, those I-class functions that can wakeup other threads require the final ...
by sabdulqadir
Thu Apr 29, 2021 5:57 am
Forum: ChibiOS/HAL
Topic: Three serial com ports with CDC drivers
Replies: 2
Views: 133

Three serial com ports with CDC drivers

Hi, I was successful in getting three virtual com ports to work on my target stm32f723. I had to give up speed to do that though (because of double memcpy that comes with serial usb). Now I am trying to mix and match, where out of three, I want two to use serial usb while one uses raw usbTransmit()....
by sabdulqadir
Thu Mar 25, 2021 12:59 am
Forum: ChibiOS/HAL
Topic: Using usb fullspeed on highspeed phy (stm32f723)
Replies: 3
Views: 586

Re: Using usb fullspeed on highspeed phy (stm32f723)

Thanks mck for the help and taking time to reply.
You are right, i did finally realize that after few hit and miss trials :)
Thanks,
AQ
by sabdulqadir
Sat Dec 19, 2020 5:18 pm
Forum: Bug Reports
Topic: Submitting a patch for integrated usb-phy on stm32f723
Replies: 2
Views: 367

Re: Submitting a patch for integrated usb-phy on stm32f723

Hi,
Had to do a small correction to the above patch.

Line 940 in os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c changes,
from:
otgp->GCCFG = 0x00800000;
to:
otgp->GCCFG = GCCFG_PHYHSEN;

Sorry about that fellows.

Thanks,
AQ
by sabdulqadir
Thu Dec 17, 2020 1:40 am
Forum: Bug Reports
Topic: Submitting a patch for integrated usb-phy on stm32f723
Replies: 2
Views: 367

Submitting a patch for integrated usb-phy on stm32f723

Hi, Attached is the patch which I use to make the current code work with stm32f723ze target. This target has internal USB-HS-PHY and support is not available in chibiOS. Included in the patch - Board files included for stm32f723e_discovery board - USB-CDC demo updated to support stm32f723e_discovery...
by sabdulqadir
Tue Sep 29, 2020 2:23 pm
Forum: ChibiOS/HAL
Topic: Using usb fullspeed on highspeed phy (stm32f723)
Replies: 3
Views: 586

Using usb fullspeed on highspeed phy (stm32f723)

Hi guys, On stm32f723, I am using otg_hs controller with internal hs-phy. My application enumerates as a CDC class device (virtual com port). I am able to do highspeed transfers using chnWrite(). Recently there was a case where we need to slow the physical interface down. So I changed otg_dcfg_dspd ...

Go to advanced search