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++
12748 Discussions

No support for CFI algorithm 1793 on 16 bit flash

Altera_Forum
Honored Contributor II
2,765 Views

hi, 

When i program the sst39vf160 nor flash in NiosIDE , a problem happend:No CFI Table found at address .... i search the help doc and serch internet ,i find that the override file is needed,so i use nios2-flashprogrammer --debug --base=0 and the consol prints the flash 's CFI table ,and reprogram flash by the arg( override file), and it told me that "CFI erase region definitions don't match device size" below is my override file: 

 

[FLASH-00BF-235B] 

CFI[0x10] = 0x0051 

CFI[0x11] = 0x0052 

CFI[0x12] = 0x0059 

CFI[0x13] = 0x0001 

CFI[0x14] = 0x0007 

CFI[0x15] = 0x0000 

CFI[0x16] = 0x0000 

CFI[0x17] = 0x0000 

CFI[0x18] = 0x0000 

CFI[0x19] = 0x0000 

CFI[0x1a] = 0x0000 

CFI[0x1b] = 0x0027 

CFI[0x1c] = 0x0036 

CFI[0x1d] = 0x0000 

CFI[0x1e] = 0x0000 

CFI[0x1f] = 0x0003 

 

CFI[0x20] = 0x0000 

CFI[0x21] = 0x0004 

CFI[0x22] = 0x0005 

CFI[0x23] = 0x0001 

CFI[0x24] = 0x0000 

CFI[0x25] = 0x0001 

CFI[0x26] = 0x0001 

CFI[0x27] = 0x0016 

CFI[0x28] = 0x0001 

CFI[0x29] = 0x0000 

CFI[0x2a] = 0x0000 

CFI[0x2b] = 0x0000 

CFI[0x2c] = 0x0002# CFI[0x2c] = 0x0001 

CFI[0x2d] = 0x00ff 

CFI[0x2e] = 0x0003 

CFI[0x2f] = 0x0010 

 

CFI[0x30] = 0x0000 

CFI[0x31] = 0x003f 

CFI[0x32] = 0x0000 

CFI[0x33] = 0x0000 

CFI[0x34] = 0x0001#  

CFI[0x35] = 0x00ff 

CFI[0x36] = 0x00ff 

CFI[0x37] = 0x00ff 

CFI[0x38] = 0x00ff 

CFI[0x39] = 0x00ff 

CFI[0x3a] = 0x00ff 

CFI[0x3b] = 0x0007 

CFI[0x3c] = 0x0002 

CFI[0x3d] = 0x0011 

CFI[0x3e] = 0x00ff 

CFI[0x3f] = 0x00ff 

CFI[0x40] = 0x00ff 

CFI[0x41] = 0x00ff 

CFI[0x42] = 0x00ff 

CFI[0x43] = 0x00ff
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
1,729 Views

all reported values are 8 bit the upper 8 bit are always 00 

 

check if you flash is in 8 bit mode 

next check if you use 16bit mode that nios adr 0 is not connected as adr bit 0 it is always 0 in 16 bit accesses 

nios a1 should go to flash a0, but some manufacures like spansion label adr bit 0 as a-1 if it is a 16 bit device with 8bit mode. 

 

regards 

 

michael
0 Kudos
Altera_Forum
Honored Contributor II
1,729 Views

<div class='quotetop'>QUOTE (MSchmitt @ Aug 8 2009, 04:31 PM) <{post_snapback}> (index.php?act=findpost&pid=23463)</div> 

--- Quote Start ---  

all reported values are 8 bit the upper 8 bit are always 00 

 

check if you flash is in 8 bit mode 

next check if you use 16bit mode that nios adr 0 is not connected as adr bit 0 it is always 0 in 16 bit accesses 

nios a1 should go to flash a0, but some manufacures like spansion label adr bit 0 as a-1 if it is a 16 bit device with 8bit mode. 

 

regards 

 

michael[/b] 

--- Quote End ---  

 

 

 

thanks &#39;MSchmitt&#39; , i have cheched my board and the flash is working under 16bit mode. nios A1 is connected to flash a0,sst39vf3201 dosent have a-1 pin, a0 is addressed a byte! perhaps i discriped it not deeply , i provide the nios2-flashprogrammer --debug --base=0 : 

 

 

Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00 

Resetting and pausing target processor: OK 

Found CFI table in 16 bit mode 

Raw CFI query table read from device: 

0: BF 00 5B 23 01 00 FF FF 01 00 FF FF FF FF FE 00 ..[#............ 

10: FF FF FF FF 18 00 04 00 FF FF FF FF FF FF FF FF ................ 

20: 51 00 52 00 59 00 01 00 07 00 00 00 00 00 00 00 Q.R.Y........... 

30: 00 00 00 00 00 00 27 00 36 00 00 00 00 00 03 00 ......&#39;.6....... 

40: 00 00 04 00 05 00 01 00 00 00 01 00 01 00 16 00 ................ 

CFI query table read from device: 

10: 51 52 59 01 07 00 00 00 00 00 00 27 36 00 00 03 QRY........&#39;6... 

20: 00 04 05 01 00 01 01 16 01 00 00 00 02 FF 03 10 ................ 

30: 00 3F 00 00 01 FF FF FF FF FF FF 07 02 11 FF FF .?.............. 

40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ 

50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ 

60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ 

70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF ................ 

CFI extended table not present in device 

Read autoselect code 00BF-235B (in 16 bit mode) 

No CFI override data for [FLASH-00BF-235B] 

CFI erase region definitions don&#39;t match device size 

Leaving target processor paused 

 

 

 

0 Kudos
Altera_Forum
Honored Contributor II
1,729 Views

i am sorry about my forgetting the version of nios ide. niosII ver9.0

0 Kudos
Altera_Forum
Honored Contributor II
1,729 Views

That's a bug, it can't be use in 16-Bit mode for program the Flash. We can use 8-bit mode, that's ok.

0 Kudos
Reply