AnsweredAssumed Answered

SW4ST build of X-CUBE-SPN7 demo project

Question asked by blair.greg on Jun 11, 2017
Latest reply on Sep 28, 2017 by blair.greg

ihm07a1 build using sw4st

 

#en.X-CUBE-SPN7.zip

 

Running an up-to-date Eclipse Ac6 session here is what happens when I try to build the #X-CUBE-SPN7 demo application:
1.select  File menu item
2.   select Open Projects from File System
3.     select Import Projects from File System or Archive
4.      click 'Archive...'
5.        choose file 'en.X-CUBE-SPN7.zip' and click 'open'
6.          displays 'en.X-CUBE-SPN7.zip_expanded' + 4 Nucleo 030/103/302/401 projects click 'Finish'

 

An internal error occurred during:"C/C++ Indexer"
Details are:
  An internal error occurred during: "C/C++ Indexer".
  org.eclipse.cdt.internal.core.pdom.PDOMProxy cannot be
  cast to
  org.eclipse.cdt.internal.core.index.IWritableIndexFragment

 

7. click OK
8. Right click on 'STM32F302R8-Nucleo Configuration' in Project Explorer tab
9. select 'Build Project' from drop down list

 

An internal error occurred during:"C/C++ Indexer"
Details are:
  An internal error occurred during: "C/C++ Indexer".
  org.eclipse.cdt.internal.core.pdom.PDOMProxy cannot be
  cast to
  org.eclipse.cdt.internal.core.index.IWritableIndexFragment

 

- same error as before.  Click 'OK'

 

The Problems tab displays:
Description    Resource    Path    Location    Type
make: *** No rule to make target `C:/Users/giuseppe scuderi-sl/Desktop/MOTOR CONTROL/Peppe/trunk/Firmware/X-CUBE-SPN7-MC-6STEP/Middlewares/ST/UART_serial_com/Src/UART_UI.c', needed by `Middlewares/UART_serial_com/UART_UI.o'.  Stop.    STM32F401RE-Nucleo Configuration             C/C++ Problem
make: *** No rule to make target `C:/Users/giuseppe scuderi-sl/Desktop/MOTOR CONTROL/Peppe/trunk/Firmware/X-CUBE-SPN7-MC-6STEP/Projects/Multi/Examples/MotorControl/Src/main_F302.c', needed by `user/main_F302.o'.  Stop.    STM32F302R8-Nucleo             C/C++ Problem


Repeating steps 8 and 9 selecting 'STM32F401RE-Nucleo Configuration' produces identical results.


Analyzing the error message, the projects appear to have a hard path in the the project path
'C:/Users/giuseppe scuderi-sl/Desktop/MOTOR CONTROL/Peppe/trunk/Firmware/X-CUBE-SPN7-MC-6STEP/...'

 

I want to build the project.  First I need to load it into Eclipse. 

 

How do I load the en.X-CUBE-SPN7.zip demo project into SW4ST Eclipse so the file paths are properly updated?

 

Failing that, how can I manually update the file paths?

Outcomes