cancel
Showing results for 
Search instead for 
Did you mean: 

Why remap?

rozehtiyan
Associate II
Posted on August 19, 2014 at 14:43

Why remap?

#stm32f103-spi-remapping #rtfm
4 REPLIES 4
Andrew Neil
Evangelist III
Posted on August 19, 2014 at 16:12

It's just a way to let you choose a different set of pins for the peripheral functions - for the convenience of your PCB design and/or to avoid conflicts with other peripheral functions.

Look at the chip datasheet for details...

Posted on August 19, 2014 at 16:18

Or more specifically the Reference Manual

0690X00000602wQQAQ.jpg

Although the pins you are using shouldn't need remapping, and you failed to enable the AFIO peripheral clock to permit the remap to work.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
rozehtiyan
Associate II
Posted on August 19, 2014 at 19:19

Thanks guys,

Then my guss was correct about remap. but I still don't know why he/she has used remap?

Posted on August 19, 2014 at 20:34

but I still don't know why he/she has used remap?

I have no idea where you lifted the code from either, people tend to post code here they have problems with, or are a random hodge-podge of cut-n-paste from other similar examples, basically throwing mud at a wall hoping some will stick?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..