cancel
Showing results for 
Search instead for 
Did you mean: 

Reset does not always work

kay2
Associate II
Posted on September 07, 2010 at 08:53

Reset does not always work

6 REPLIES 6
kay2
Associate II
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).
John F.
Senior
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

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

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

kay2
Associate II
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.

trevor23
Associate III
Posted on May 17, 2011 at 14:05

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

kay2
Associate II
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.