Skip to main content
Bill Lewis
Associate III
August 7, 2013
Question

Problem with example USB code and RTC

  • August 7, 2013
  • 4 replies
  • 1108 views
Posted on August 07, 2013 at 20:47

usb_bsp.c, V1.0.0, 19-September-2011 in USB_OTG_BSP_Init() makes this call:

  

RCC_APB1PeriphResetCmd(RCC_APB1Periph_PWR, ENABLE);

That goofs up prior configuration I had done to the RTC.

Is that a bug in the library?

Bill

    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    August 7, 2013
    Posted on August 07, 2013 at 21:37

    Is that a bug in the library?

     

    Probably, there are a couple of instances where ClockCmd was mixed up with ResetCmd, that have been reported from time to time.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Bill Lewis
    Associate III
    August 7, 2013
    Posted on August 07, 2013 at 23:43

    Is it worth trying to report such bugs?

    I find those examples and libraries are loaded with typos and misleading comments.

    Tesla DeLorean
    Guru
    August 7, 2013
    Posted on August 08, 2013 at 00:12

    Here's as good a place to report them as any. If you have a list, you can post it, then ''Contact Moderator'' on the thread. There are definitely groups within ST that scan the forum, and that seems up from recent times. I try to keep a mental note of the problems reported.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Amel NASRI
    ST Technical Moderator
    September 12, 2013
    Posted on September 12, 2013 at 14:25

    Hi William,

    Thanks for highlighting this issue.

    I agree with Clive1: this is a good place to report any typos or others you face. So don't hesitate to do it here throw forum threads if you want. We will take them into consideration as soon as possible ;)

    -Mayla-

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.