Re: Fail to generate code in HC removing one of two SPI module
I found a solution for both the problems:
1) The error at launch of the Harmony Configurator was due to the missing .jar file freemarker in the <harmony folder>/mhc (as read in the log file: Caused: java.lang.NoClassDefFoundError: freemarker/cache/TemplateLoader). I had to delete the mhc packet through the Harmony Content Manager and then reinstall it. Now I can launch the HC! Good!
2) About the main problem, the SPI2 module that I couldn't remove from the HC, was due to the SPI Driver: when I remove the connection to the driver's instances, they keep the reference of "PLIB Used". In my case I was trying to connect the SPI3 module to the instance_0 (previously connected to the SPI2 module), but the instance was again linked to the PLIB of SPI2. This is why I had to keep the SPI2 module in the project to allow HC to generate the code. The solution was to delete also the SPI Driver, add it to the project again, connect the SPI3 to instance 0 and delete the SPI2 module.
Now all works!