Topic : STM32F205 bit fields not being decoded

Forum : ARM

Original Post
Post Information Post
September 20, 2011 - 9:47am
Guest

I'm trying to debug some code I ported from an STM32F1 series processor to an STM32F2 series processor. Looking at the peripheral registers is usually a very useful way to figure out if the configuration routine has done what I expect. Unfortunately, the bit fields aren't being decoded on the new series. Individual fields appear to be listed, but they aren't associated with a specific range of bits in the register.

Here's a screenshot of the behavior:
http://i.imgur.com/3jB0l.png

Not that it's terribly relevant, but I'm trying to debug why in my ported code one of the DAC channels works and the other doesn't.

Thanks!
-Sasha

Replies
Post Information Post
+1
0
-1
September 20, 2011 - 10:10am
Raisonance Support Team

Hi,

Indeed this decoding has not been done for the STM32F2 yet. We are planning to do it in a future release, but I cannot tell you exactly when. For now you have to look at the complete register.

For porting code from the F1 to the F2 series, you must replace the lib from ST by the latest version and use the correct defines/options. Is this what you did? Using the F1 lib on a F2 device will probably not work.

Best Regards,

Vincent

+1
0
-1
September 20, 2011 - 5:48pm
Guest

Ah, good to know that's just a processor support issue and not something to do with the IDE or Rkit-ARM itself.

I've replaced the library and followed the advice of the migration doc from ST and my code is mostly working, but there are a few migration issues which I think fell through the cracks of the official doc.

Thanks for the quick response!

Cheers,
Sasha