Skip to main content
kay2
Associate II
September 7, 2010
Question

Reset does not always work

  • September 7, 2010
  • 6 replies
  • 1174 views
Posted on September 07, 2010 at 08:53

Reset does not always work

    This topic has been closed for replies.

    6 replies

    John F.
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 14:05

    See -

    https://my.st.com/public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/ARM CortexM3 STM32/STM32 Software Reset&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000626BE2B829C32145B9EB5739142DC17E&currentviews=361

    kay2
    kay2Author
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 14:05

    It does not help me.

    __DSB(); is not possible because of thumbs mode and arm mode is not supported by my compiler (keil).
    trevor23
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 14:05

    I don't see how this is a hardware bug??

    kay2
    kay2Author
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 14:05

    It is not possible.

    main.c(152): error:  #1113: Inline assembler not permitted when generating Thumb code

    and when i want to use

    #pragma arm

    main.c(151): error:  #1114-D: this feature not supported on target architecture/processor

    It is not possible to use dsb.

    This is really a ***** hardware bug of the STM32.

    domen23
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 14:05

    Then do the Keil equivalent for inline assembly for ''dsb'' instruction.

    kay2
    kay2Author
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 14:05

    I think the uC should make a reset as described in the reference manual, and not only sometimes.

    maybe st solved the silicone bug in their libary with the use of the ''dsb'', but i cannot use it.