HC9S08LG32, CW 10.2
I copied my working SM6.1project to IICEX8, I gave it new source files, including MCU_init.c, and changed that header to <hc9S08LG32.h> . The project compiles beautifully.
But when I try to flash I get the the little window people have complained about before:
Target Task Error
Error importing task
I haven't a clue. I've done a lot of searching for it and I tried everything suggested in
http://mcuoneclipse.wordpress.com/2012/03/23/error-importing-task/ and the related
http://mcuoneclipse.wordpress.com/2012/03/17/copy-my-project/
I don't seem to have any .ttf files at all.
My flash configuration is:
Name: SM6.1_MC9S08LG32_PnE U-MultiLink
Target: SM6.1_MC9S08LG32_PnE U-MultiLink Target
Connection Type: P&E HS08 Multilink\Multilink Universal\Cyclone Pro\OSBDM
File: ${workspace_loc:/IICEX8/MC9S08LG32/SM6.1.abs}
I also tried changing every occurrence and name of SM6.1 to IICEX8 or whatever number I was at, to no avail. Note that I am up to version 8 on my retries.
Any suggestions would be very appreciated.
-Cab-
Solved! Go to Solution.
Hello,
The 'task' MC9S08LG32.tcl is just an init script, so not our problem.
But your reply let me think that the target tasks inside the 'framework' (which is in the .metadata) could be corrupted.
Here is what I would try:
- create a new workspace
- copy your project into that new workspace and import it into it (e.g. drag&drop the project folder into the CodeWarrior Projects view, or use File > Import > Existing projects.
That way only your project files will get copied. I *think* you might get rid of your problem that way. Otherwise you still might have a *.ttf file in your project (but you already have checked this).
About how to copy the workspace settings: You can export/import your current workspace settings (version control information, editor settings, etc) into an XML file. About how to transfer workspace settings to another one, see http://mcuoneclipse.wordpress.com/2012/04/04/copy-my-workspace-settings/
Hope this helps,
BK
Hello,
could you check if you have a 'Execute Tasks' set in your debug/launch configuration?
Run > Debug Configurations > <your configuration> >Debugger > Download tab?
Or, if you can, post your project here?
Hope this helps,
BK
There was a task:
[x] Execute Tasks
${ProjDirPath}/Project_Settings/Debugger/MC9S08LG32.tcl [Debugger shell script] [x] First [x] Subsequent
I unchecked Execute Tasks, but that did not help.
I saw that the problem also affected my original SM6.1 project which I had not had problems with before--even that project could no longer be flashed. so I reinstalled Code Warrior 10.2 (I haven't gotten to update 1.0.0.0 yet)--and that seemed to work. I got the executable IICEX8 (a copy of SM6.1 with modified sources) flashed. But then I copied that project to another: IICEX8_SLV, modified sources and built it--the error has returned. However, in the interim I was getting java.lang.NullPointerException sometimes when I click on the Flashbutton--sometimes when opening CodeWarrior. I don't recall how I recovered--I openedand closed CW a few times. Anyway, no more NPE's but I have the "Error importing task" if I try to flash -any- task. Thinking it might be workspace related I tried removing.metadata, it created a new one, but I had no projects when opening my workspace, so I am back to the old .metadata. There may be a way of regenerating a corrupt .metadata,but I don't know what it is
Regarding the NPE--looking at my .log I see
----------------------------------------------------------
ENTRY org.eclipse.debug.core 4 2 2012-05-23 13:33:36.290
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.debug.core".
!STACK 0
java.lang.ClassCastException: com.freescale.cdt.debug.cw.core.LaunchConfigurationWorkingCopyNonSaveable cannot be cast to org.eclipse.debug.internal.core.LaunchConfiguration
at org.eclipse.debug.internal.core.LaunchConfiguration.equals(LaunchConfiguration.java:318)
at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.launchConfigurationRemoved(AbstractSourceLookupDirector.java:364)
All I can try now is download CW again. Maybe you have to do that as part of the copy-task procedure--I wouldn't be too surprised.
Thanks for your reply BK.
Hello,
The 'task' MC9S08LG32.tcl is just an init script, so not our problem.
But your reply let me think that the target tasks inside the 'framework' (which is in the .metadata) could be corrupted.
Here is what I would try:
- create a new workspace
- copy your project into that new workspace and import it into it (e.g. drag&drop the project folder into the CodeWarrior Projects view, or use File > Import > Existing projects.
That way only your project files will get copied. I *think* you might get rid of your problem that way. Otherwise you still might have a *.ttf file in your project (but you already have checked this).
About how to copy the workspace settings: You can export/import your current workspace settings (version control information, editor settings, etc) into an XML file. About how to transfer workspace settings to another one, see http://mcuoneclipse.wordpress.com/2012/04/04/copy-my-workspace-settings/
Hope this helps,
BK
Thanks for sticking with me, BK. I have seen some serious issues with the NPE--for example MC9S08LG32.xml in C:\Freescale\CW MCU v10.2\MCU\bin\plugins\support\TargetTask\Flash_Programmer gets truncated to zero length (several times). Then if I do 'Flash->Import Task' and select that (without noticing the length) I get a series of NPE's. Which may kinda be the 'error importing task' but I wouldn't know.
- I was about to post the very question you just answered--take all my projects in workspace100, hopefully I can just bring over the source files but that doesn't seem easy--If I do 'import makefile project with existing code' its rather inflexible, other ways just give me the project with no processor-environment. I think the barebones one starts a new project with a selected MCU, but then I have to browse for source-files one-by-one. But I can fool it--right? Just copy a directory of files into my project in the C/C++ perspective.
I saw the wordpress -copy-my-project article, but not copy-my-settings (nice guy that Erich Styger). But I want to go barebones--I don't really have any special settings at this point.
Now I get an NPE on most anything I click, but the first one came -very-soon- after re-installing CW10.2 (by the way I have Win7x64).
- I was about to make an NPE post and file a bug, but I'll try to move to another workspace first.