On 17-09-2009 at 22:01, Anonymous wrote:
I am using the STM32F103RB controller (in the LQFP64 package of course). Now my particular application requires both CAN and USB controllers to be used together. Is it possible?
I finished the CAN part first and all worked well. Now when I enable the USB part (as in the virtual COM port demo) it all goes crashing down, my laptop does not detect the hardware, even worse the controller goes into hardfault!!! I had no clue untill a few minute ago when I simply denied clock to the CAN controller, USB started working. Does it mean that I should forget about getting them to work together? Or am I making some stupid mistake whlie initialising them, like something in the NVIC initialisation?
Please help... I leave my life in your hands!!!
Since I no longer use USB and CAN together, a workaround I thought about is to start with CAN, when the work is done, set a flag in a register (that can survive a software reset) and in my main function, I will check if this flag is set or not. If yes, I will go ahead with initializing USB. Is there a register that suits the description ?(I mean something that can survive a software reset).
On 18-09-2009 at 08:54, Anonymous wrote:
Thank you for the information. I just got the bad news from a development board maker in their data book (on the third page itself.. hehehe)
thank you once again for your time
Retrieving data ...