Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Kit d'evalution FPGA et STM32

Status
Not open for further replies.
As far as I understand it M0 and M1 are the configuration pins on your fpga. So read the above again, while keeping in mind that M1=PD means 'pulldown M1 aka M1=0' and M1=PU means 'pullup M1 aka M1=1'.

Put another way, no you cannot do this from impact. M0 and M1 are hardware pins so you will probably have to change some jumper settings. At the very least follow the M0/M1 in your schematics to see how they are connected.

i attach the schematic and i see that there are two jumper in the board View attachment Xynergy Schematics 200110905.pdf
 

from schematics it is clear than in order to use the flash you need to :

1. COJP200 is in "on"
2. set this 2 i/o pins from the st controller :
------------------------------------------
SLAVE_SER_OE => "1" for SPI FLASH
FLASH_OE => "0" for SPI FLASH

since they didn't put any hw option to control SPI FLASH,SPI FLASH you must initilise the ST to assert this signals.
 

from schematics it is clear than in order to use the flash you need to :

1. COJP200 is in "on"
2. set this 2 i/o pins from the st controller :
------------------------------------------
SLAVE_SER_OE => "1" for SPI FLASH
FLASH_OE => "0" for SPI FLASH

since they didn't put any hw option to control SPI FLASH,SPI FLASH you must initilise the ST to assert this signals.

if i understand that i must
1) initialise in the MCU st controlloer the two pins of FLASH_OE and slave_SER_OE : FLASH_OE == 0 and slave_SER_OE == 1 and i load my project in STM
2) after that i load the project in SPI to activate my FPGA ?
 

if i understand that i must
1) initialise in the MCU st controlloer the two pins of FLASH_OE and slave_SER_OE : FLASH_OE == 0 and slave_SER_OE == 1 and i load my project in STM
2) after that i load the project in SPI to activate my FPGA ?

ye, check D202 led lights.
if not i would advise you to connect a push button to your fpga "PROG" pin.
so you will need to solder it to a pushbutton.

this will enable you to confugre fpga without the ST interveening.
 

ye, check D202 led lights.
if not i would advise you to connect a push button to your fpga "PROG" pin.
so you will need to solder it to a pushbutton.

this will enable you to confugre fpga without the ST interveening.

now i'm trying do somthing but it seem does not work :
i forced the switch JP200 to 0 and i charge the FPGA that work but once i charge the SPI the program is failed
in the other hand , i want to try to flasg the program in FPGA without interventing STM after that i flash the stm project to communicate each other

so how i activate the pin in FPGA prog ?
i'm asking if add this pin in my VHDL programme like this :
input FPGA_done = '1'


for the other method of STM i have to initiate my SPI in my project which i work in not in other project before ? that's it ?
 

jp200 should be "on" i don't konow what's the label on the pcb but i guss it will show '1' and not '0'.
if the led "DONE" lights it's fpga load is ok.
----------------------------------------------
basically your SPI flash should be read automatically on start - up by the fpga. so you don't have to use "PROG"
----------------------------------------------
seperating the ST is as i told you

SLAVE_SER_OE => "1" for SPI FLASH
FLASH_OE => "0" for SPI FLASH
INIT should be decaqlared as input - so you don't drive it.
-----------------------------------------------------
after you do all this settings. you can control "PROG" to configure FPGA manually from SPI flash.
so you can connect this signal to a push button , you can try to solder a wire from IC201/3 to Test button SW200.
 

jp200 should be "on" i don't konow what's the label on the pcb but i guss it will show '1' and not '0'.
if the led "DONE" lights it's fpga load is ok.
----------------------------------------------
basically your SPI flash should be read automatically on start - up by the fpga. so you don't have to use "PROG"
----------------------------------------------
seperating the ST is as i told you

SLAVE_SER_OE => "1" for SPI FLASH
FLASH_OE => "0" for SPI FLASH
INIT should be decaqlared as input - so you don't drive it.
-----------------------------------------------------
after you do all this settings. you can control "PROG" to configure FPGA manually from SPI flash.
so you can connect this signal to a push button , you can try to solder a wire from IC201/3 to Test button SW200.

ok y're right ,
So i made a little code to intiate the sflash like this after that i will add my project or my test firstly of led , could you see why there are some warnings
Code:
 int main(void)
{
SPI_InitTypeDef   SPI_InitStructure;
GPIO_InitTypeDef GPIO_InitStruct;
 
  

	sFLASH_Init();

	 /* GPIOH  */
  RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOH | RCC_AHB1Periph_GPIOF, ENABLE);
  
  
  GPIO_InitStruct.GPIO_Pin   = GPIO_Pin_3;
  GPIO_InitStruct.GPIO_Mode  = GPIO_Mode_AF;
  GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;
  GPIO_InitStruct.GPIO_Speed = GPIO_Speed_50MHz;
  GPIO_InitStruct.GPIO_PuPd  = GPIO_PuPd_NOPULL;
  GPIO_Init(GPIOH, &GPIO_InitStruct);

   /* GPIOF  */
  GPIO_InitStruct.GPIO_Pin   = GPIO_Pin_11;
  GPIO_InitStruct.GPIO_Mode  = GPIO_Mode_AF;
  GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;
  GPIO_InitStruct.GPIO_Speed = GPIO_Speed_50MHz;
  GPIO_InitStruct.GPIO_PuPd  = GPIO_PuPd_NOPULL;
  GPIO_Init(GPIOF, &GPIO_InitStruct);


  GPIO_PinAFConfig(GPIOH,GPIO_Pin_3, GPIO_AF_SPI2);
  GPIO_PinAFConfig(GPIOF,GPIO_Pin_11, GPIO_AF_SPI2)	 ;
	  // Slave_SER_OE
	GPIOH->BSRRH = GPIO_Pin_3 ;
	GPIOF->BSRRL = GPIO_Pin_11 ;
   }
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top