Can't program flash in 32bit mode

We have two Net+50 eval boards which we are using to develop our software, using Raven and CodeLab. One of the boards is giving problems when trying to write to the FLASH in 32 bit mode, the other operates fine. One problem board I can put the Flash into 16 bit mode (using the jumpers and switches) and I can successfully program code into the Flash which will then execute. I’m using the OCDDemon flash utility that came with our CodeLab debugger. If I then put the board into 32 bit mode, OCDDemon fails immediately when trying to program the flash. From what I can tell it’s as though the Flash chip connected to bits 16-31 isn’t being accessed properly. After programing the flash in 16 bit mode and then view ing the contents I see the data bytes as I expect. For example if I program 0x00…0x07 into the first 8 bytes of flash and then view them I see 0x02000000: 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 If I then put this board into 32 bit mode and view the flash I see the following 0x02000000: 0x00 0x01 0x00 0x01 0x02 0x03 0x02 0x03 That is the lower 16 bits are replicated in the upper 23 bits. What I would expect to see is either 0xff in the upper bits if the 2nd flash chip was blank, or arbitrary values if it had been programmed with some code. Has anybody else seen this problem ? and can anyone offer any advise or solutions ? Remember this only happens on one out of two boards, so I’m kinda discounting setup problems and leaning more towards a board fault. TIA Darran

Here is the complete picture. There are two modes of operation that is 16 bit and 32 bit. If we are talking about the dev board which I believe we are that one has 4 flash chips installed each of which is 1M. As it is for 16 bit mode you can download an image size up to 2M provided that both flash banks are on - FBank1 and FBank2. Going forward if you would Jumper P27/28/29 Pin 2-3 and SW 3.8 (CS00)=OFF; SW4.1 (CS01)ON you end up in 32 bit mode then all 4 chips are used which adds up to 4M total. Now the key point in here before downloading an image is to set the flask banks to 2 in bspconf.h file - to be located at :
etos\h\bspconf.h #define BSP_FLASH_BANKS 2 Following this rebuild the bsp and then rebuild the naftpapp and then load the image.

Thanks for your reply but I think I have a different eval board, ours only has two AMD flash chips each one is 512Kbytes x 16 bits. Also I’m not using any of the Net+OS software, so the advice to modify the files doesn’t really help me. regards Darran