massimiliano marretta

Problem to debug HCS08SF4 with Codewarrior eclipse version 10.1

Discussion created by massimiliano marretta on Feb 21, 2011
Latest reply on Feb 21, 2011 by Chinlun Wu

I start to use CodeWarrior 10.1 in Windows 7 64bit. I created a new project for the HCS08SF4. The project is compiled correctly. When I start the debug, I receive this error "Module could not be erased":

 

GDI: DiGdiOpen()=> DI_OK
GDI: DiGdiGetFeatures()=> DI_OK
GDI: DiGdiAddCallBack(4000)=> DI_OK
GDI: DiGdiInitIO()
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : , Entry : CWDBG_Simulator, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_SETMEEID, 1) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : CWDBG, Entry : LaunchConfiguration, Value : Libra_MC9S08SF4_PnE U-MultiLink, R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : DO_DEBUG_OUTPUT, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : DEPENDENCY_CHECK, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : UUID, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : CURRENTDEVICE, Value : MC9S08SF4, R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : ERASE_PROGRAM_WITHOUT_ASKING, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PEDEBUG, Entry : AUTO_SYNC, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : DOTRIM, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : CURRENT_ALGORITHM_INDEX, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : PRESERVE1_START, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : PRESERVE1_END, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : PRESERVE1_ACTIVE, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : PRESERVE2_START, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : PRESERVE2_END, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : PRESERVE2_ACTIVE, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : PRESERVE3_START, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : PRESERVE3_END, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : PRESERVE3_ACTIVE, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : PRESERVE_EEPROM_START, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : PRESERVE_EEPROM_END, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : PRESERVE_EEPROM, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : ALTERNATIVE_ALGORITHM_PATH, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : ALTERNATIVE_ALGORITHM_CHECKBOX, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : PARTITION_PARAM, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : DO_PARTITIONING, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : CUSTOM_TRIM, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : TRIM_VALUE, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : NGS_TRIM_OVERRIDE_REFERENCE_FREQUENCY, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : 9S08SF4, Entry : ENABLE_FLASH_PROGRAMMING_DIALOG, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : SPECIFY_NETWORKCARD_ENABLED, Value : 0, R) => DI_OK
Info: Windows NT detected.
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : IO_DELAY_CNT, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP12, Entry : show_hstep_assembly_details, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : CWDBG, Entry : Connect, Value : 0, R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : eclipse_show_connection_assistant, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : PCI_DELAY, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : RESET_DELAY, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : PORT, Value : 21, R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : interface_selection, Value : 1, R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : PORT, Entry : IP, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : IO_DELAY_SET, Value : , R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : USE_CYCLONEPRO_RELAYS, Value : 1, R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : CyclonePro_poweroffonexit, Value : 1, R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : CyclonePro_currentvoltage, Value : 255, R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : CyclonePro_PowerDownDelay, Value : 250, R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : CyclonePro_PowerUpDelay, Value : 250, R) => DI_OK
GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : CPUTARGETTYPENAME, Value : , R) => DI_OK
Info: USB HCS08/HCS12 MULTILINK detected - Flash Version 5.84
Info: Frequency change to ~4625151hz.
Info: WARNING - Device is secure. Flash is not accessible.
Info: Device is 9S08SF4.
Info: Mode is In-Circuit Debug.
=> DI_OK
GDI: DiMeeConnect(1) => DI_OK
GDI: DiMeeSelect(1)=> DI_OK
GDI: Reading Register PC (id:0):
GDI: DiRegisterRead()=> DI_OK
GDI: PC (id:0) -> 0x00
GDI: Reading Register PC (id:0):
GDI: DiRegisterRead()=> DI_OK
GDI: PC (id:0) -> 0x00
GDI: Reading Register SP (id:1):
GDI: DiRegisterRead()=> DI_OK
GDI: SP (id:1) -> 0x00
GDI: DiMemoryDownload(StartDownload)
=> DI_OK
GDI: Writing To Memory Address: 0x0F000, count: 4, memSpace: 1
GDI: 45 00 BC 94
GDI: DiMemoryWrite()=> DI_OK
GDI: Writing To Memory Address: 0x0F004, count: 3, memSpace: 1
GDI: CC F1 56
GDI: DiMemoryWrite()=> DI_OK
GDI: Writing To Memory Address: 0x0F007, count: 1, memSpace: 1
GDI: 3F
GDI: DiMemoryWrite()=> DI_OK
GDI: Writing To Memory Address: 0x0F008, count: 396, memSpace: 1
GDI: 00 6E 10 01 3F 02 6E FF 03 81 C6 FF AF 4C 26 05 6E 80 1A 20 05 C6 FF AF B7 1A 6E 60 1B 3F 19 6E
GDI: 04 18 81 6E 14 51 AE 32 8C 35 54 6E 70 50 81 45 FF FF 35 23 5F 8C 35 21 6E 02 20 6E 44 25 6E 50
GDI: 28 35 26 45 FF FF 35 29 81 45 FF FF 35 3B 5F 8C 35 39 3F 38 6E 28 3D 35 3E 81 89 8B A7 FC 45 80
GDI: 00 9E FF 03 95 6F 01 7F 95 64 04 66 05 9E FE 05 9E F3 09 22 17 95 E6 03 EA 01 E7 01 F6 EA 02 F7
GDI: E6 09 E0 05 E7 09 E6 08 E2 04 E7 08 95 64 02 66 03 9E FE 09 27 05 9E FE 03 26 CD 9E FE 01 A7 06
GDI: 81 8B 55 29 9F BB 85 87 8B 86 B9 84 87 8A 88 35 29 04 00 04 45 FF FF 65 5F 8C 35 80 1F 28 8A 80
GDI: 8B A7 FE 55 26 9E FF 01 B6 25 87 A8 0C B7 25 86 A5 08 27 5F 9E E6 02 B0 87 87 9E E6 02 B2 86 8B
GDI: 87 8A 89 9E EE 03 35 84 B6 89 B0 87 87 B6 88 B2 86 8B 87 95 EE 02 8A 35 8A 95 EE 03 89 95 EE 03
GDI: 8A 35 86 95 E7 03 E6 06 BB 85 E7 02 E6 05 B9 84 87 EE 02 8A AF 64 35 29 1F 28 95 E6 01 87 E6 03
GDI: 87 EE 04 9E E6 03 87 8A CD F0 62 A7 02 35 80 A7 05 20 05 9E FE 01 35 88 1F 25 A7 02 8A 80 8B 1F
GDI: 20 8A 80 8B B6 00 A8 10 B7 00 1F 50 8A 80 CD F0 07 CD F0 12 CD F0 2B CD F0 37 CD F0 51 9A 19 50
GDI: 16 20 16 38 55 80 75 82 23 08 3C 83 26 10 3C 82 20 0C 75 82 24 0C 3D 83 26 02 3A 82 3A 83 55 82
GDI: 35 3E A6 55 45 18 00 F7 48 F7 20 D8
GDI: DiMemoryWrite()=> DI_OK
GDI: Writing To Memory Address: 0x0FFD6, count: 2, memSpace: 1
GDI: F1 46
GDI: DiMemoryWrite()=> DI_OK
GDI: Writing To Memory Address: 0x0FFE0, count: 4, memSpace: 1
GDI: F0 A9 F0 C8
GDI: DiMemoryWrite()=> DI_OK
GDI: Writing To Memory Address: 0x0FFE8, count: 2, memSpace: 1
GDI: F1 4B
GDI: DiMemoryWrite()=> DI_OK
GDI: Writing To Memory Address: 0x0FFFE, count: 2, memSpace: 1
GDI: F0 00
GDI: DiMemoryWrite()=> DI_OK
GDI: DiMemoryDownload(EndDownload)GDI: Mtwks Callback(MTWKS_CB_PROJECTACCESS, Section : STARTUP, Entry : SPECIFY_NETWORKCARD_ENABLED, Value : 0, R) => DI_OK
Info: Windows NT detected.
Info: Copyright 2008 P&E Microcomputer Systems,Inc.
Info: CMD>RE
Info: Initializing.
Info: Target has been RESET and is active.
Info: CMD>CM C:\Program Files (x86)\Freescale\CW MCU v10.1\MCU\bin\Plugins\support\hc08\gdi\P&E\9s08sf4.s8p
Info: Initializing.
Info: (Recommended TRIM=$0069,FTRIM=0)
Info: Device is secured. Erasing ...
Info:  Done.
Info: (Bus Freq = 19921KHz)
Info: Initialized.
Info: ;version 1.04, 07/13/09, Copyright P&E Microcomputer Systems, www.pemicro.com [9s08sf4]
Info: ;device Freescale, 9S08SF4, All
Info: ;begin_cs
Info: Loading programming algorithm ...
Info: Done.(FCDIV=$CE)
Info: CMD>EM
Info: Erasing.
Info: Module could not be erased.
Info: Warning a RESET has occured.
Info: CMD>PM
Info: Programming and Verifying.
Info: Processing Object File Data ...
Info: Error during programming.

I use PEmicro Multilink Interface.

In the same system CodeWarrior classic ide V5.1 work correctly when I programming a MC9S12C.

The same bord with HCS08SF4 are correctly programmed with CodeWarrior classic ide 6.3 into Windows XP 32bit.

Outcomes