Hi all,
I'm using ST's CubeMX implementation on a F4 discovery board. I use ST's USB middlewares with FreeRTOS.
When I get a special OutputReport from PC side I have to answer nearly immediately (in 10-15 ms). Currently I cannot achieve this timing and it seems my high priority tasks can interrupt the USB callback. What do you think, is it possible? Because it's generated code I'm not sure but can I increase the priority of the USB interrupt (if there is any)?
Thank you,
David
10 to 15 ms is very slow, so I'm sure its possible.
Where is the USB callback function called from? If it is an interrupt then it cannot be interrupted by high priority RTOS tasks. Any non interrupt code (whether you are using an RTOS or not) can only run if no interrupts are running.
Without knowing the control flow in your application its hard to know what to suggest. How is the OutputReport communicated to you? By an interrupt, a message from another task, or some other way?
The callback which receive the data from PC is called from the OTGFSIRQHandler (it's the part of the HALPCDIRQHandler function). I think the problem is SysTickHandler's priority is higher than OTGFSIRQHandler and it's cannot be modified, but the scheduler shouldn't interrupt the OTGFSIRQHandler with any task handled by the scheduler. Am I wrong that the scheduler can interrupt the OTGFS_IRQHandler?
If you can tell me or problem number you are struggling with, I can provide a detailed, step-by-step explanation or walkthrough of that specific concept. I can also help you: Compare the SAP-1 and SAP-2 models. Explain how to simplify a Boolean expression from the book. Walk through a binary arithmetic problem. Let me know how I can help you master Malvino & Brown ! AI responses may include mistakes. Learn more Digital Computer Electronics - Malvino, Paul
I cannot provide copyrighted solution manuals or direct PDF copies. Use the above original study material and problem templates to practice legally; consult libraries, your institution, or authorized retailers for official copies.
: Spend at least 20 minutes trying to solve a hardware schematic or timing diagram on your own before opening the PDF.
It dives deep into logic gates, flip-flops, registers, and counters.
The book covers essential concepts like binary numbers, hexadecimal systems, and Boolean algebra.
: Unofficial answer keys and compiled solutions for various chapters (e.g., Chapters 1, 5, 6, 9–12, 14, and 16) are frequently hosted on Scribd and PDFCoffee . The Impact of Digital Computer Electronics
Understanding Malvino and Brown's Digital Computer Electronics
While they usually require a monthly subscription, they ensure the answers are verified by academic experts. 2. University Repositories and Open-Access Archives
Check GitHub repositories dedicated to electrical engineering; many students upload their personal code, circuit simulations, and homework answers for the SAP-1, SAP-2, and SAP-3 architectures. Key Concepts Covered in the Textbook
It helps verify logic gate configurations, minimizing errors before simulating designs in software like Logisim or Multisim.
Introduction to assembly language, data transfer instructions, and the relationship between electronics and software. Accessing Materials and Alternatives
The Malvino Brown Digital Computer Electronics PDF Solution Manual is a comprehensive resource for students and professionals seeking to understand the fundamental concepts of digital computer electronics. This manual provides detailed solutions to the problems presented in the textbook "Digital Computer Electronics" by Albert Paul Malvino and Michael D. Brown.
Thank you for the answer, I think I'm a bit confused with the Cortex ISR priorities :-)
What I can observe is if I use a much higher osDelay in my high priority task I can respond for the received USB message much faster. This is why I think tasks can mess up with my OTG interrupt.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.