CW 10.7 for MCU bug (DSC)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW 10.7 for MCU bug (DSC)

1,392 Views
giovannicasoli
Contributor I

Hi,

 

I'm here to report a bug of CodeWarrior for MCU 10.7.

The bug occurs in DSC projects when the "Customize linker input order" checkbox is checked in "C/C++ Build -> Settings -> Tools Settings tab -> DSC Linker -> Link_Order".

When the aforementioned checkbox is checked, Trying to switch to "C/C++ Build -> Settings -> Tools Settings tab -> DSC Linker" causes a nullpointer exception and the tab content sometimes is not refreshed, sometimes it is only partially drawn.

After unchecking the ckeckbox, the error disappears.

This problem does not affect builds, but it prevents from editing the tab content when the error window appears.

 

I hope this will be helpful for future updates

 

Regards

 

Giovanni Casoli

Labels (1)
0 Kudos
6 Replies

811 Views
giovannicasoli
Contributor I

Hi,

I've tried creating a new workspace and I've created a new project in it, using Project wizard. I've chosen "Bareboard Project" and "MC56F8025" as board, "Application" as project type, Connection with Freescale USB TAP, "C" as language, "None" as Rapid Application Development. I've let the wizard create the new source directory.

I keep having the same problem even with only main.c as the only source file of the project (plus various assembly files that are added automatically).

Best regards

Giovanni

0 Kudos

811 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi.

I ever had customer meet similar problem as yours. on 64bit win7 system. He fixed his problem in this way.

-       Right click IDE.exe in the \bin folder.

-       Select    “Properties”

-       Select    “Compatibility”

-       Select    “Change settings for all users”

-       Select    “Run this program in compatibility mode for”

-       Select    “Windows Vista” from pull down menu

-       Select    “Disable visual themes” & “Disable desktop composition” &” Disable display scaling on high DPI settings”.

-       Do NOT select  “Run in 256 colors” & “Run in 640x480 screen resolution”.

-       Hit OK.

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

Can this also work for you?

if your problem persists, I suggests you uninstall your CW and reinstall it to an other disk, for example disk E. then to see how it works.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

811 Views
giovannicasoli
Contributor I

Hi,

thank you for your reply. Unfortunately it still doesn't work.

I feel that the problem happens when trying to concatenate object file names to build the linker command line. Anyway, I'll try to let my colleague install the IDE and try to open the project to see what happens.

Best regards

Giovanni

0 Kudos

811 Views
giovannicasoli
Contributor I

Hi Ilya,

thank you for your reply. I'm attaching the log file. I followed your advice and deleted the file before opening the workspace.

This is the content of the log:

!SESSION 2016-11-10 10:31:43.334 -----------------------------------------------
eclipse.buildId=I20070613-1755
java.version=1.6.0_15
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 2 1 2016-11-10 10:33:01.112
!MESSAGE NLS missing message: ContentTypes_errorDialogAlreadyExists in: org.eclipse.ui.internal.messages

!ENTRY com.freescale.core.ide.wizard.ui 2 0 2016-11-10 10:33:12.040
!MESSAGE External elements location 'C:\Freescale\CW MCU v10.7\eclipse\../MCU/lib/wizard_data/mqx/4.0/arm' does not exist

!ENTRY com.freescale.core.ide.wizard.ui 2 0 2016-11-10 10:33:12.046
!MESSAGE External elements location 'C:\Freescale\CW MCU v10.7\eclipse\../MCU/lib/wizard_data/mqx/4.0/cf' does not exist

!ENTRY com.freescale.core.ide.wizard.ui 2 0 2016-11-10 10:33:12.048
!MESSAGE External elements location 'C:\Freescale\CW MCU v10.7\eclipse\../MCU/lib/wizard_data/mqx/4.0/ppc' does not exist

!ENTRY com.freescale.core.ide.wizard.ui 2 0 2016-11-10 10:33:12.050
!MESSAGE External elements location 'C:\Freescale\CW MCU v10.7\eclipse\../MCU/lib/wizard_data/mqx/4.0/patches' does not exist

!ENTRY com.freescale.core.ide.wizard.ui 2 0 2016-11-10 10:33:13.104
!MESSAGE External elements location 'C:\Freescale\CW MCU v10.7\eclipse\../MCU/lib/wizard_data/mqx/4.1/arm' does not exist

!ENTRY com.freescale.core.ide.wizard.ui 2 0 2016-11-10 10:33:13.106
!MESSAGE External elements location 'C:\Freescale\CW MCU v10.7\eclipse\../MCU/lib/wizard_data/mqx/4.1/cf' does not exist

!ENTRY com.freescale.core.ide.wizard.ui 2 0 2016-11-10 10:33:13.108
!MESSAGE External elements location 'C:\Freescale\CW MCU v10.7\eclipse\../MCU/lib/wizard_data/mqx/4.1/ppc' does not exist

!ENTRY com.freescale.core.ide.wizard.ui 2 0 2016-11-10 10:33:13.110
!MESSAGE External elements location 'C:\Freescale\CW MCU v10.7\eclipse\../MCU/lib/wizard_data/mqx/4.1/patches' does not exist

!ENTRY com.freescale.processorexpert.core 1 0 2016-11-10 10:33:15.297
!MESSAGE Plugin com.freescale.processorexpert.core.service ProcessorExpertServiceProvider

!ENTRY org.eclipse.osgi 2 1 2016-11-10 10:33:31.137
!MESSAGE NLS unused message: trace_trigger_dv_error_title in: com.freescale.sa.mcu.analysispoints.nls.ui

!ENTRY org.eclipse.osgi 2 1 2016-11-10 10:33:31.140
!MESSAGE NLS unused message: trace_trigger_dv_error_message in: com.freescale.sa.mcu.analysispoints.nls.ui

!ENTRY org.eclipse.osgi 2 1 2016-11-10 10:33:36.540
!MESSAGE NLS missing message: BuildStepsTab_BehaviourTab in: org.eclipse.cdt.managedbuilder.internal.ui.Messages

!ENTRY org.eclipse.osgi 2 1 2016-11-10 10:33:36.542
!MESSAGE NLS missing message: ToolChainEditTab_18 in: org.eclipse.cdt.managedbuilder.internal.ui.Messages

!ENTRY org.eclipse.jface 4 2 2016-11-10 10:33:41.452
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
at com.freescale.core.ide.cdt.toolchain.BaseCommandLineGenerator2.getInputsStr(BaseCommandLineGenerator2.java:47)
at org.eclipse.cdt.managedbuilder.internal.core.ManagedCommandLineGenerator.generateCommandLineInfo(ManagedCommandLineGenerator.java:80)
at org.eclipse.cdt.managedbuilder.ui.properties.ToolSettingsPrefStore.getString(ToolSettingsPrefStore.java:177)
at org.eclipse.cdt.ui.newui.MultiLineTextFieldEditor.doLoad(MultiLineTextFieldEditor.java:262)
at org.eclipse.jface.preference.FieldEditor.load(FieldEditor.java:500)
at org.eclipse.jface.preference.FieldEditorPreferencePage.initialize(FieldEditorPreferencePage.java:307)
at org.eclipse.jface.preference.FieldEditorPreferencePage.createContents(FieldEditorPreferencePage.java:233)
at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:232)
at org.eclipse.cdt.managedbuilder.ui.properties.ToolSettingsTab.displayOptionsForTool(ToolSettingsTab.java:307)
at org.eclipse.cdt.managedbuilder.ui.properties.ToolSettingsTab.handleOptionSelection(ToolSettingsTab.java:495)
at org.eclipse.cdt.managedbuilder.ui.properties.ToolSettingsTab.access$1(ToolSettingsTab.java:477)
at org.eclipse.cdt.managedbuilder.ui.properties.ToolSettingsTab$2.selectionChanged(ToolSettingsTab.java:164)
at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:164)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162)
at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188)
at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1241)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:233)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:403)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4184)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:158)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4184)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:630)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:585)
at org.eclipse.equinox.launcher.Main.run(Main.java:1439)

------------- END OF LOG --------------

One more information that might be useful: my project contains 13 build configurations, but the error dialog shows up even when changing settings of a single build configuration.

Thank you again

Giovanni

0 Kudos

811 Views
b13529
NXP Employee
NXP Employee

Hi Giovanni,


One more clarification, what happens if you open a new workspace and create a new default project?
Does the same problem occur?

Thanks,
ilya

0 Kudos

811 Views
b13529
NXP Employee
NXP Employee

Hi Giovanni,

I can not reproduce this.
Could you please attach here a log and a project if possible?
Log is located in <workspace>\.metadata\.log
It would be better if you delete log file and restart CodeWarror prior to "Customize linker input order" checking, so it will contain less irrelevant data.

Thanks,
ilya

0 Kudos