AnsweredAssumed Answered

Flashx device problem on MQX 3.5 and MCF52259

Question asked by Aleksandr Sobkovych on Feb 18, 2010
Latest reply on Mar 11, 2010 by Carl Norman

Hi,

We have updated from MQX 3.4 to MQX 3.5 and got a problem - FlashX device doesn't work.

We used M52259DEMO board and example from "...\Freescale MQX 3.5\mqx\examples\flashx" with Code Warrior 7.2.

On MQX 3.4 (Code Warrior 7.1.2) everything was fine (my code and the example).

Here the example output:

 

MQX Flash Test Program
Beginning read/write tests
Flash device flashx: opened
Flash Device Identity: 0x00000013, 0x00000004, 0x0000006d
The BASE_ADDRESS: 0x13000
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)
FLASH_IOCTL_ERASE_CHIP failed.

 

And here my "user_config.h":

------------------------------------------------

/* mandatory CPU identification */
#define MQX_CPU                 PSP_CPU_MCF52259

/*
** BSP settings - for defaults see mqx\source\bsp\<board_name>\<board_name>.h
*/
#define BSPCFG_ENABLE_TTYB       0
#define BSPCFG_ENABLE_ITTYB      0
#define BSPCFG_ENABLE_I2C0       0
#define BSPCFG_ENABLE_I2C1       0
#define BSPCFG_ENABLE_SPI0       0
#define BSPCFG_ENABLE_RTCDEV     1
#define BSPCFG_ENABLE_GPIODEV    1
#define BSPCFG_ENABLE_ADC        1
#define BSPCFG_ENABLE_FLASHX       1

#define MQX_USE_TIMER            1
#define MQX_KERNEL_LOGGING       1
#define MQX_MONITOR_STACK        1

#define BSPCFG_RX_RING_LEN       4
#define BSPCFG_TX_RING_LEN       2

/*
** board-specific MQX settings - see for defaults mqx\source\include\mqx_cnfg.h
*/

#define MQX_USE_LWMSGQ           1
#define MQX_USE_LWEVENTS         1
#define MQX_USE_MESSAGES         1
#define MQX_HAS_TIME_SLICE       1

#define MQX_USE_LWTIMER          0

/*
** board-specific RTCS settings - see for defaults rtcs\source\include\rtcscfg.h
*/

#define RTCSCFG_ENABLE_ICMP      1
#define RTCSCFG_ENABLE_UDP       1

#define RTCSCFG_ENABLE_TCP       1
#define RTCSCFG_ENABLE_STATS     1
#define RTCSCFG_ENABLE_GATEWAYS  1
#define FTPDCFG_USES_MFS         1
#define RTCSCFG_ENABLE_SNMP      1

#define TELNETDCFG_NOWAIT        FALSE

/*
** include common settings
*/

/* use the rest of defaults from small-RAM-device profile */
#include "small_ram_config.h"

/* and enable verification checks in kernel */
#include "verif_enabled_config.h"

 

------------------------------------------------

 

Can everyone help me?

 Thanks

Outcomes