Page 1 of 1

SPI Remap in def file

Posted: 18 Nov 2021 12:39
by kentar
Hello .
I use Mikroe MCUCard with STM32F407vgt6 MCU in my application.
In this card I use this structure for my SPI1 module

Code: Select all

_GPIO_MODULE_SPI1_PA56_PB5 : Module_Struct = (
          (__SPI1_SCK_PA5, __SPI1_MISO_PA6, __SPI1_MOSI_Pb5, 0xFFFFFFFF),
          (__SPI_CONFIG, __SPI_CONFIG, __SPI_CONFIG, 0xFFFFFFFF)
        );
Unfortunately I cannot find above MCU card anymore .
I am going to buy Mikroe MCU cards with STM32F207VGT6 to use in my application.
When I try to compile compiler does not recognize above SPI structure
Looking at __Lib_GPIO_32F2xx_Defs.mpas file there is not this structure .
If i add this structure to __Lib_GPIO_32F2xx_Defs.mpas my program is compiled successfully.
Are there any other changes in definition file I should do ?
And in general if I want to remmap a SPI module , or I2C module this is the right method ?

Re: SPI Remap in def file

Posted: 18 Nov 2021 20:10
by Thomas.Pahl@t-online.de
error

Re: SPI Remap in def file

Posted: 19 Nov 2021 09:36
by filip
Hi,

If the desired structure is not present in the GPIO Defs file, please add it manually there using one of the predefined structure as a starting point.

Regards,
Filip.

Re: SPI Remap in def file

Posted: 19 Nov 2021 17:54
by kentar
Ok ,Thanks Filip