Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12409 Discussions

cfi using nios 2 flash programmer

praveenkumar
Beginner
417 Views

hi,

please  reply .

i am using micromn p33 65nm  parallel nor flash cfi compliant(part num RC28F256p33TFE) .

In qsys i added tristate controller and tri state conduit bridge .

 in program 

By giving cfi read command through (IOWRand IORD) and reading particular addresees  0x10 ,0x11,0x12

its giving ox10 -51(Q),(0x11-0x5100),(0x12-0x59).

for 10 and 12 addresses it is showing correct query  but for ox11 it showing  wrong instead of 52 it is showing again 51.

 

and also in nios 2 flashprogrammer   it is showing no cfi table at address.

i dont understand whats going wrong .please help me .

please reply for my query

0 Kudos
6 Replies
praveenkumar
Beginner
400 Views

also when programming the current flash file from nios2flash programmer GUI

its showing error code 8

 

praveenkumar
Beginner
396 Views

also from command line  i tried both the flash file and override file  .

it shows error both like unable to open the file

what could be the exact reason .

anybody please look into this issue

 

EricMunYew_C_Intel
Moderator
345 Views

Can you check and refer to the attached.

praveenkumar
Beginner
339 Views

eah its the same way  i designed  in the qsys  and also   while  i writing to  flash  by following the datasheet procedure   .

ox4089  if i am writing this  16 bit  data in some 0x0 location

and while i am reading the location  0x0 its showing 0x89 and 0x1 location  its showing 0x40.

its showing lsb in 0x0 location and MSb in 0x1 location.

through code its reading  some cfi table locations according to datasheet.

so i think i correctley designed in qsys. and none of the above problems are solved .

 

and another question i converting .sof file to pof and i added cfi flash programmed through quartus programmer and it is stored in flash and application is running on power on. in same way if i convert the sof file to hex format and receive through uart and i will erase the flash and write the data in hex format manually through c code . will it run on power on condition

 

thaks for reply.

EricMunYew_C_Intel
Moderator
317 Views

Have you tried to program your flash using Quartus Programmer and PFL.

You can refer to below for PFL IP:

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/ug/ug_pfl.pdf


praveenkumar
Beginner
312 Views

yeah that's working fine .

but i  dont want that ,i converted sof file to .flash file and write it in ox20000  onwards  by receiving the data in .flash file through uart but it is not booting on power on .

do we need to write other than  converted sof file to boot up on power on .

do i need to convert pof file to hex file and write that data from 0x20000 onwards  but pof file  is having other data than .sof file do we need convert pof file and write to flash i want to know that data  .

or any other suggestions . actually in all pdfs its mentioned we have to write from 0x20000 onwards

 

Reply