Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems

CFI flash test

Anu_Jayan
Beginner
1,482 Views

Hello,

I am working on custom board Cyclone 10GX FPGA. I am able to detect the CFI flash driver name in BSP editor of Eclipse NiosII EDS. Now I need to test the CFI flash. Can anyone share me the link of C source code for the same. Thanks in advance.

 

CFI_flash_driver_BSP-editor_2023-09-28.png

 

Regards,

Anu Jayan

0 Kudos
6 Replies
EBERLAZARE_I_Intel
1,420 Views

Hi,


Are you doing the boot copier or XIP from OCRAM?:

https://www.intel.com/content/www/us/en/docs/programmable/683689/current/processor-booting-from-cfi-flash.html


Anyway you can refer to the above, and check the programming part where it programs your board to see for e.g Hello world prints.


0 Kudos
Anu_Jayan
Beginner
1,403 Views

Hi,

Thanks for the information.

I need C code which can read device ID, do erase, write & read operations. This source code need to be flashed into onchip memory, to test the CFI flash. I have the .sof, .sopcinfo design files.

 

 

Regards,

Anu Jayan

0 Kudos
EBERLAZARE_I_Intel
1,357 Views

Hi,


I see, for your code applications, let me check again and get back to you.


0 Kudos
Anu_Jayan
Beginner
1,303 Views

Hi,

 

Waiting for your response.

0 Kudos
EBERLAZARE_I_Intel
1,277 Views

Hi,


We apologize we do not have the example design code to test these, but for flash you can look here:

https://www.intel.com/content/www/us/en/docs/programmable/683525/21-3/using-flash-devices.html

https://www.intel.com/content/www/us/en/docs/programmable/683525/21-3/simple-flash-access.html

https://www.intel.com/content/www/us/en/docs/programmable/683525/21-3/fine-grained-flash-access.html


It explains which API you can use for your own code for simple flash usage.


For system ID, it uses the SBT for Eclipse to check the system ID:

https://www.intel.com/content/www/us/en/docs/programmable/683525/21-3/nios-ii-13233.html


Are these info sufficient for you?


0 Kudos
Jeet14
Employee
1,215 Views

Hi,


I believe your inquiry has been answered. With that, I now transition this thread to community support. 

Thank you.


Best regards,

Tiwari


p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.



0 Kudos
Reply