Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12589 Discussions

cfi using nios 2 flash programmer

praveenkumar
Beginner
854 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
837 Views

also when programming the current flash file from nios2flash programmer GUI

its showing error code 8

 

0 Kudos
praveenkumar
Beginner
833 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

 

0 Kudos
EricMunYew_C_Intel
Moderator
782 Views

Can you check and refer to the attached.

0 Kudos
praveenkumar
Beginner
776 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.

0 Kudos
EricMunYew_C_Intel
Moderator
754 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


0 Kudos
praveenkumar
Beginner
749 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

 

0 Kudos
Reply