Hello again Giovanni!
I checked, debugged etc. my code.
USB_REQ_GET_DESCRIPTOR requests USB_DESCRIPTOR_DEVICE_QUALIFIER; I added handling for that.
The following is from default_handler (hal_usb.c):
.
.
case (uint32_t)USB_RTYPE_RECIPIENT_DEVICE | ((uint32_t)USB_REQ_GET_DESCRIPTOR ...
Search found 15 matches
- Fri Aug 26, 2022 3:23 pm
- Forum: ChibiOS/HAL
- Topic: USB stall error
- Replies: 12
- Views: 37256
- Fri Aug 26, 2022 12:49 pm
- Forum: ChibiOS/HAL
- Topic: USB stall error
- Replies: 12
- Views: 37256
Re: USB stall error
Hello again Giovanni!
Do you mean especially (USB) device descriptor or configuration one or what?
BR
Viljami
Giovanni wrote:Hi,
Is it possible your descriptor is wrong somehow? it happens after the host retrieves it.
Giovanni
Do you mean especially (USB) device descriptor or configuration one or what?
BR
Viljami
- Thu Aug 25, 2022 1:56 pm
- Forum: ChibiOS/HAL
- Topic: USB stall error
- Replies: 12
- Views: 37256
Re: USB stall error
Hello again Giovanni!
As I mentioned in the previous mail
I noticed that bool requestsHook(USBDriver *usbp) receives
* USB_REQ_SET_ADDRESS
* USB_REQ_SET_CONFIGURATION
* USB_REQ_GET_DESCRIPTOR
were the only messages what I catched by debugging; I did not see any my own USB messages in bool ...
As I mentioned in the previous mail
I noticed that bool requestsHook(USBDriver *usbp) receives
* USB_REQ_SET_ADDRESS
* USB_REQ_SET_CONFIGURATION
* USB_REQ_GET_DESCRIPTOR
were the only messages what I catched by debugging; I did not see any my own USB messages in bool ...
- Thu Aug 25, 2022 12:09 pm
- Forum: ChibiOS/HAL
- Topic: USB stall error
- Replies: 12
- Views: 37256
Re: USB stall error
Hello again!
I want tell more about this stall error.
I have a ChibiOS based system which applies my own defined messages. I apply bulk transfer in my system. My system is capable to handle (receive and transmit) the first my own defined USB message but second one fails because of the stall error ...
I want tell more about this stall error.
I have a ChibiOS based system which applies my own defined messages. I apply bulk transfer in my system. My system is capable to handle (receive and transmit) the first my own defined USB message but second one fails because of the stall error ...
- Fri Aug 19, 2022 11:08 am
- Forum: General Support
- Topic: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free
- Replies: 11
- Views: 15072
Re: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free
Hello Giovanni!
I made the following changes (the following is from ChibiOS 21.11.2 free /os/rt/include/chrestrictions.h, lines 57 - 61):
/* System tick limited to 1000hz.*/
#if CH_CFG_ST_FREQUENCY > 1000
// #undef CH_CFG_ST_FREQUENCY
// define CH_CFG_ST_FREQUENCY 1000
#endif
The previous ...
I made the following changes (the following is from ChibiOS 21.11.2 free /os/rt/include/chrestrictions.h, lines 57 - 61):
/* System tick limited to 1000hz.*/
#if CH_CFG_ST_FREQUENCY > 1000
// #undef CH_CFG_ST_FREQUENCY
// define CH_CFG_ST_FREQUENCY 1000
#endif
The previous ...
- Thu Aug 18, 2022 1:58 pm
- Forum: General Support
- Topic: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free
- Replies: 11
- Views: 15072
Re: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free
Hello again!
Yes, I downloaded ChibiOS 21.11.2 free . Unfortunately I met the same kind of problems (my application did not start etc.) with ChibiOS 21.11.2 free what I met with ChibiOS 21.11.1 free .
ChibiOS 21.11.2 free generated the following:
text data bss dec hex
13348 0 131072 144420 ...
Yes, I downloaded ChibiOS 21.11.2 free . Unfortunately I met the same kind of problems (my application did not start etc.) with ChibiOS 21.11.2 free what I met with ChibiOS 21.11.1 free .
ChibiOS 21.11.2 free generated the following:
text data bss dec hex
13348 0 131072 144420 ...
- Mon Jul 25, 2022 10:09 am
- Forum: General Support
- Topic: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free
- Replies: 11
- Views: 15072
Re: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free
Hi,
So it is:
CH_CFG_ST_FREQUENCY set to 1000 that prevents your application from working. Is there anything in your application that requires 10000? Post your mcuconf.h, it could be that 1000 cannot be obtained because your other settings.
Anyway, I will make CH_CFG_ST_FREQUENCY unconstrained ...
So it is:
CH_CFG_ST_FREQUENCY set to 1000 that prevents your application from working. Is there anything in your application that requires 10000? Post your mcuconf.h, it could be that 1000 cannot be obtained because your other settings.
Anyway, I will make CH_CFG_ST_FREQUENCY unconstrained ...
- Wed Jun 22, 2022 1:26 pm
- Forum: General Support
- Topic: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free
- Replies: 11
- Views: 15072
Re: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free
Hello again Giovanni!
My parameters&values are
#define CH_CFG_ST_FREQUENCY 10000
#define CH_DBG_STATISTICS FALSE
#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_ALL
Chibios versions 21.11.1 and 21.11.2 started (with my parameters&values) but 21.11.1 free did not.
I tried the following parameters ...
My parameters&values are
#define CH_CFG_ST_FREQUENCY 10000
#define CH_DBG_STATISTICS FALSE
#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_ALL
Chibios versions 21.11.1 and 21.11.2 started (with my parameters&values) but 21.11.1 free did not.
I tried the following parameters ...
- Wed Jun 22, 2022 11:23 am
- Forum: General Support
- Topic: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free
- Replies: 11
- Views: 15072
Re: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free
Hello again Giovanni!
I tried the following parameters&values but no success:
#define CH_CFG_ST_FREQUENCY 1000
#define CH_DBG_STATISTICS FALSE
#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED
Do you have a version 21.11.2 free somewhere?
Best regards
Viljami
I tried the following parameters&values but no success:
#define CH_CFG_ST_FREQUENCY 1000
#define CH_DBG_STATISTICS FALSE
#define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED
Do you have a version 21.11.2 free somewhere?
Best regards
Viljami
- Tue Jun 21, 2022 4:55 pm
- Forum: General Support
- Topic: Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free
- Replies: 11
- Views: 15072
Differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free
Hello folks!
Are there differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free versions?
The settings&configs were exactly the same for the previous ones but data size was 0 for ChibiOS 21.11.1 free .
ChibiOS 21.11.1 free based application did not start, a lsusb command did not see USB addr ...
Are there differences between ChibiOS 21.11.1 and ChibiOS 21.11.1 free versions?
The settings&configs were exactly the same for the previous ones but data size was 0 for ChibiOS 21.11.1 free .
ChibiOS 21.11.1 free based application did not start, a lsusb command did not see USB addr ...