SPI Remap in def file

General discussion on mikroPascal PRO for ARM.
Post Reply
Author
Message
kentar
Posts: 78
Joined: 29 Oct 2010 07:54

SPI Remap in def file

#1 Post by kentar » 18 Nov 2021 12:39

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 ?

Thomas.Pahl@t-online.de
Posts: 158
Joined: 24 May 2008 15:55
Location: Germany

Re: SPI Remap in def file

#2 Post by Thomas.Pahl@t-online.de » 18 Nov 2021 20:10

error

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: SPI Remap in def file

#3 Post by filip » 19 Nov 2021 09:36

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.

kentar
Posts: 78
Joined: 29 Oct 2010 07:54

Re: SPI Remap in def file

#4 Post by kentar » 19 Nov 2021 17:54

Ok ,Thanks Filip

Post Reply

Return to “mikroPascal PRO for ARM General”