OK. I have to add that I forgot to recompile the whole library using build_libs.mcp after making changes to the user_config.h. This solves at lest the compact flash card recognition.
However the application terminates after doing some operations so that I cannot put it to use. This is what hyperterminal produces:
MQX Flash Test Program
Beginning read/write tests
Flash device flashx: opened
Flash Device Identity: 0x00000013, 0x00000004, 0x0000006d
The BASE_ADDRESS: 0xf000
Number of sectors: 4
The WIDTH: 32
There are 4 sectors in Block 1
Block 1 Sector Size: 4096 (0x1000)
Total size of the Flash device is: 16384 (0x4000)
Erasing entire chip (this will take a while)
Testing with 2048 (0x800) byte buffer, block 0, sector 9216 (0x2400)
Seek to sector and modify (may take a while)
Compare OK
Testing with 4096 (0x1000) byte buffer, block 0, sector 9216 (0x2400)
Seek to sector and modify (may take a while)
Compare OK
Testing with 4096 (0x1000) byte buffer, block 0, sector 12288 (0x3000)
Testing _io_ioctl erase_sector: 12288 (0x3000)
Seek to sector and modify (may take a while)
Compare OK
Testing with 4096 (0x1000) byte buffer, block 0, sector 12288 (0x3000)
Testing _io_ioctl erase_sector: 12288 (0x3000)
Seek to sector and modify (may take a while)
Compare OK
Testing with 2048 (0x800) byte buffer, block 0, sector 10240 (0x2800)
Seek to sector and modify (may take a while)
Compare OK
Flash closed.
Flash device flashx: opened
Sector cache disabled.
Testing with 41 (0x29) byte buffer, block 0, sector 10240 (0x2800)
Compare OK
Write 41 bytes to to same place without cache
Compare OK
Sector cache enabled.
Testing with 41 byte buffer, write to address 0x29
Compare OK
Sector cache disabled.
Testing with 41 byte buffer, write to address 0x29
*** This test should end with error ***
Failed to write flash, size returned:-1 expected 41
TEC:0x0 FERROR:0xA03
Is this built into the project?