Skip to main content
rozehtiyan
Associate III
August 19, 2014
Question

Why remap?

Posted on August 19, 2014 at 14:43

Why remap?

#stm32f103-spi-remapping #rtfm
This topic has been closed for replies.

4 replies

Andrew Neil
Super User
August 19, 2014
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...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Tesla DeLorean
Guru
August 19, 2014
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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
rozehtiyan
Associate III
August 19, 2014
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?

Tesla DeLorean
Guru
August 19, 2014
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 (See Profile) Up vote any posts that you find helpful, it shows what's working..