This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can't open sysconfig file since moving project

Other Parts Discussed in Thread: SYSCONFIG, CC1310

I moved my CCS project to a different local folder and since then I am not able to open my sysconfig file with the sysconfig GUI editor in CCS, even though I can open it in CCS with a text mode editor so clearly CCS can find the file.

Furthermore, the sysconfig file does get processed during the build, so I know the sysconfig engine is doing its thing and generally configured to be active for my project. CCS builds and my target runs just fine via JTAG download.

What I can't do is open the sysconfig file with the sysconfig gui from within CCS  (Version: 10.4.0.00006, MacOS BigSur / 11.6). 

Knowing that CCS tends to leave crumbs everywhere, I thought perhaps there was some hard link to the old location that was confusing CCS so I scoured all the files for elements of my former path. Indeed, there were a few file links that somehow referred to the old path, which I corrected manually. Even so, I still can't open my sysconfig file in the sysconfig editor. This is true for several projects, all of which were moved.

I do know that sysconfig support for the CC1310 is a bit brittle but it was working before I moved my source tree and re-imported the projects.

The exact error text is: "File cannot be opened in SysConfig Editor!  A SysConfig Script File can only be opened in SysConfig Editor when the file is within the context of a valid CCS Project that is open in the current workspace."

Of course I do have a valid CCS project active at the time I attempt to open the sysconfig file. 

Whatever goes wrong goes wrong pretty hard - I can't open ANY source files after this error until I close the would-be editor tab where the error appears. After that, the CCS GUI operates normally and I can open (other) source files. Sometimes java null pointer errors are displayed in a popup dialog box.

  • Hello Daniel,

    I am unable to reproduce this issue. Can you provide more details on how the project was created? Did you create a new project for CC1310 and then added a sysconfig file to it, agreeing to the prompt to enable sysconfig support for the project?

    Could you project three .*project files in the project folder in addition to the syscfg file?

    Thanks

    ki

  • The project was built over a year ago - started as a clone of an example project because that's the only way to build a project that seems to actually work. I can't give more details than that - simply not in my memory.

    I don't understand what you mean by "could you project three .* project files" - but if you mean please SHARE the three project files (.project, .cproject, .ccsproject), please send me your email address and I will send them privately. I will not post them here.

    Sometimes I get this dialog box:

    I found what I believe to be the error log it speaks of, contents of the last entry:

    !ENTRY org.eclipse.equinox.event 4 0 2022-01-07 06:57:01.311

    !MESSAGE Exception while dispatching event org.osgi.service.event.Event [topic=org/eclipse/e4/ui/model/ui/ElementContainer/children/ADD] {ChangedElement=PartStack@33e434c8=org.eclipse.e4.ui.model.application.ui.basic.impl.PartStackImpl@5f7eee96 (tags: [noFocus], contributorURI: null) (widget: CTabFolder {}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer@1f75fd1d, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null), org.eclipse.e4.data={ChangedElement=PartStack@33e434c8=org.eclipse.e4.ui.model.application.ui.basic.impl.PartStackImpl@5f7eee96 (tags: [noFocus], contributorURI: null) (widget: CTabFolder {}, renderer: org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer@1f75fd1d, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null), AttName=children, EventType=ADD, Position=21, Widget=CTabFolder {}, NewValue=org.eclipse.e4.ui.compatibility.editor=org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl@585a2ade (tags: [Editor, removeOnHide, org.eclipse.ui.DefaultTextEditor], contributorURI: null) (widget: null, renderer: null, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (contributionURI: bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor, object: null, context: null, variables: [], label: null, iconURI: null, tooltip: null, dirty: false, closeable: true, description: null)}, AttName=children, EventType=ADD, Position=21, Widget=CTabFolder {}, NewValue=org.eclipse.e4.ui.compatibility.editor=org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl@585a2ade (tags: [Editor, removeOnHide, org.eclipse.ui.DefaultTextEditor], contributorURI: null) (widget: null, renderer: null, toBeRendered: true, onTop: false, visible: true, containerData: null, accessibilityPhrase: null) (contributionURI: bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor, object: null, context: null, variables: [], label: null, iconURI: null, tooltip: null, dirty: false, closeable: true, description: null)} to handler org.eclipse.e4.core.di.internal.extensions.EventObjectSupplier$DIEventHandler@2655bb88

    !STACK 0

    org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException

    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:68)
    at org.eclipse.e4.core.di.internal.extensions.EventObjectSupplier$DIEventHandler.handleEvent(EventObjectSupplier.java:92)
    at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:205)
    at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:203)
    at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
    at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
    at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:132)
    at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:75)
    at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:44)
    at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:55)
    at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:63)
    at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:424)
    at org.eclipse.emf.ecore.util.EcoreEList.dispatchNotification(EcoreEList.java:249)
    at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:294)
    at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:304)
    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.addPart(PartServiceImpl.java:987)
    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.addPart(PartServiceImpl.java:1197)
    at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1221)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3207)
    at org.eclipse.ui.internal.WorkbenchPage.lambda$9(WorkbenchPage.java:3112)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3110)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3080)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3063)
    at org.eclipse.ui.ide.IDE.openEditor(IDE.java:353)
    at com.ti.ccstudio.ui.internal.util.EditorHelper.openExternalFile(EditorHelper.java:78)
    at com.ti.ccstudio.internal.ui.support.dialog.SupportDialog$4.widgetSelected(SupportDialog.java:368)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4406)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1512)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1535)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1324)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4193)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3810)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
    at org.eclipse.jface.window.Window.open(Window.java:799)
    at com.ti.ccstudio.internal.ui.actions.SupportHandler.execute(SupportHandler.java:34)
    at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
    at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
    at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:318)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:252)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
    at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
    at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
    at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:438)
    at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:449)
    at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.lambda$2(AbstractContributionItem.java:475)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4406)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1512)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1535)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1324)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4193)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3810)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1160)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1049)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:660)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:559)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:150)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

    Caused by: java.lang.NullPointerException
  • I don't understand what you mean by "could you project three .* project files" - but if you mean please SHARE the three project files (.project, .cproject, .ccsproject), please send me your email address and I will send them privately. I will not post them here.

    Yes, sorry for the confusion. I would like to see those three files and the syscfg file. Please start a private E2E conversation with me.

    Thanks

    ki

  • I believe I have opened the conversation per your request. Please look for it. 

  • Yes I see the conversation. Let us continue discussion there.