Search found 49 matches
- Wed May 05, 2021 5:08 am
- Forum: Bug Reports
- Topic: context switch observed inside S-locked state Topic is solved
- Replies: 28
- Views: 9315
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...
- Mon May 03, 2021 11:49 pm
- Forum: Bug Reports
- Topic: context switch observed inside S-locked state Topic is solved
- Replies: 28
- Views: 9315
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 ...
- Mon May 03, 2021 6:33 pm
- Forum: Bug Reports
- Topic: context switch observed inside S-locked state Topic is solved
- Replies: 28
- Views: 9315
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 ...
- Thu Apr 29, 2021 5:57 am
- Forum: ChibiOS/HAL
- Topic: Three serial com ports with CDC drivers
- Replies: 2
- Views: 1834
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()....
- Thu Mar 25, 2021 12:59 am
- Forum: ChibiOS/HAL
- Topic: Using usb fullspeed on highspeed phy (stm32f723)
- Replies: 3
- Views: 2306
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
You are right, i did finally realize that after few hit and miss trials
Thanks,
AQ
- Sat Dec 19, 2020 5:18 pm
- Forum: Bug Reports
- Topic: Submitting a patch for integrated usb-phy on stm32f723
- Replies: 2
- Views: 1666
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
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
- Thu Dec 17, 2020 1:40 am
- Forum: Bug Reports
- Topic: Submitting a patch for integrated usb-phy on stm32f723
- Replies: 2
- Views: 1666
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...
- Tue Sep 29, 2020 2:23 pm
- Forum: ChibiOS/HAL
- Topic: Using usb fullspeed on highspeed phy (stm32f723)
- Replies: 3
- Views: 2306
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 ...
- Wed Aug 19, 2020 1:19 am
- Forum: ChibiOS/HAL
- Topic: Is there an error report for USB packet retransmits
- Replies: 3
- Views: 2070
Re: Is there an error report for USB packet retransmits
Thanks for the reply Giovanni, appreciate it. Pertaining to the same concern, let me ask another one. USB packets have a crc based on which packets are accepted or rejected. Once a packet is rejected, would you know if retransmission happens? and if it does, is it handled by usb stack firmware? We s...
- Thu Aug 13, 2020 1:13 am
- Forum: Development and Feedback
- Topic: Stack size question
- Replies: 15
- Views: 12507
Re: Stack size question
Each thread has its own separate stack, so you need to give each thread enough space. This is the most critical thing when doing multithreaded embedded programming. Automatic variables are allocated in the function stack frame so if you allocate 4KB inside a function then all threads calling that f...