PetteriAimonen commented on pull request #3163:
URL: https://github.com/apache/incubator-nuttx/pull/3163#issuecomment-808032774


   @masayuki2009 I think this may be related to unaligned access to 
response_queue. This depends on optimization settings and struct layout, which 
is why it didn't occur in our configuration. If this is the cause, you should 
be seeing hardfault due to unaligned access.
   
   I'm working on a proper fix.
   
   In the meanwhile, can you try this to check: in `drivers/usbdev/rndis.c` 
change the order of variables `response_queue_bytes` and `response_queue` so 
that `response_queue` comes first:
   
   <pre>
     size_t response_queue_bytes;   /* Count of bytes waiting in 
response_queue. */
     uint8_t response_queue[RNDIS_RESP_QUEUE_LEN];
   </pre>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to