The NIRscan Nano Tiva files can be compiled and debugged on a Mac using the beta release of CCS for Mac and XDS200. To compile the Tiva firmware, the following is needed:
- Mac CCS Beta 2. Download Mac CCS from this E2E forum post
- XDS200 with firmware 1.0.6 or later. If your XDS200 does not have firmware 1.0.6 or later, use a Windows PC to update the XDS200 firmware following these instructions
- NIRscan Nano Tiva Sources, you will need a Windows PC run the installer and extract the files. Install the TI-RTOS 2.10.01.38.
- DLP Spectrum Library Sources, you will need a Windows PC run the installer and extract the files
- TI RTOS 2.10.01.38, this is included in the NIRscan Nano Tiva Sources.
- Trivaware
CCS for Mac does not handle spaces in the pathnames, so make sure the folders do not have spaces.
- Install CCS for Mac
- Copy the C:\ti\tirtos_tivac_2_10_01_38 directory from the PC into the /Applications/ti directory where CCS for Mac was installed
- Copy the C:\ti\DLPSpectrumLibrary directory from Windows PC into the Mac documents folder
- Copy the C:\ti\DLPNIRscanNanoDoftware directory from the Windows PC into the Mac documents folder
- Run CCS for Mac.
- Under Project menu, select Import CCS Projects for the following projects:
- dlpspeclib. Located in in your documents folder where you copied the files from the Windows PC.
- driverlib. Located in /Applications/ti/tirtos_tivac_2_10_01_38/products/TivaWare_C_Series-2.1.0.12573c/driverlib
- usblib. Located in /Applications/ti/tirtos_tivac_2_10_01_38/products/TivaWare_C_Series-2.1.0.12573c/usblib
- Mobile Spectroscopy. Located in in your documents folder where you copied the files from the Windows PC.
- On the project explorer, select the Mobile Spectroscopy Tiva EVM and right click. Select Show build settings, click on build.
- Edit the TIVAWARE_INSTALL variable to point to the location of TivaWare: /Applications/ti/tirtos_tivac_2_10_01_38/products/TivaWare_C_Series-2.1.0.12573c
- Add the DLPSPECLIB_INSTALL_ROOT variable with the location of the DLP Spectrum Library copied from the PC: /Users/myusername/DLP_Spectrum_library. Do not use ~ to denote your user path, write out the complete path.
- Click on General on the Build settings, then click on RTSC:
- Check TI-RTOS to 2.10.1.38
- Under the Project Explorer, expand the Mobile Spectroscopy Tiva EVM and remove all targetconfigs except for XDS200.
This should let you build the files and debug using the Mac CCS.
best regards,
Pedro