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.
Tool/software: TI-RTOS
As instructed by Robert, I'm creating a new thread regarding my problem.
For reference, my previous thread was the following: https://e2e.ti.com/support/microcontrollers/other/f/908/p/793995/2938088#2938088
Basically, I followed the instructions to recompile ti-rtos since i needed to change a line in "ffconf.h" on FatFS module.
When running "make -f tirtos.mak drivers" I got the following error:
building tirtos drivers... gmake[1]: Entering directory `c:/ti/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08' building drivers packages ... making all: Thu Apr 18 13:28:25 2019 ... ======== .interfaces [./packages/ti/boards] ======== ======== .interfaces [./packages/ti/drivers] ======== ======== .interfaces [./packages/ti/mw] ======== ======== .interfaces [./packages/ti/mw/fatfs] ======== ======== .interfaces [./packages/ti/mw/wifi/cc3x00] ======== ======== .interfaces [./packages/ti/drivers/ports] ======== making package.mak (because of package.bld) ... making package.mak (because of package.bld) ... making package.mak (because of package.bld) ... making package.mak (because of package.bld) ... js: "C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/targets/arm/elf/IArm.xs", line 77: Error: The compiler in c:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5 is not compatible with this version of TI-RTOS or SYS/BIOS. Please use Arm compiler 5.2.2 or newer. js: "C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/targets/arm/elf/IArm.xs", line 77: Error: The compiler ijs: "C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/targets/arm/elf/IArm.xs", line 77: Error: The compiler in c:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5 is not compatible with this version of TI-RTOS or SYS/BIOS. Please use Arm compiler 5.2.2 or newer. n c:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5 is not compatible with this version of TI-RTOS or SYS/BIOS. Please use Arm compiler 5.2.2 or newer. gmake[1]: *** Deleting file `package.mak' gmake[1]: *** No rule to make target `package.mak', needed by `.interfaces'gmake[1]: . Stop. *** Deleting file `package.mak' gmake[1]: gmake[1]: *** *** Deleting file `package.mak'No rule to make target `package.mak', needed by `.interfaces' . Stop. gmake[1]: *** No rule to make target `package.mak', needed by `.interfaces'. Stop. xdctools_3_32_00_06_core\gmake.exe: *** [packages/ti/drivers/ports,.interfaces] Error 2 xdctools_3_32_00_06_core\gmake.exe: *** Waiting for unfinished jobs.... xdctools_3_32_00_06_core\gmake.exe: *** [packages/ti/drivers,.interfaces] Error 2 xdctools_3_32_00_06_core\gmake.exe: *** [packages/ti/mw/fatfs,.interfaces] Error 2 js: "C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/targets/arm/elf/IArm.xs", line 77: Error: The compiler in c:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5 is not compatible with this version of TI-RTOS or SYS/BIOS. Please use Arm compiler 5.2.2 or newer. gmake[1]: *** Deleting file `package.mak' gmake[1]: *** No rule to make target `package.mak', needed by `.interfaces'. Stop. xdctools_3_32_00_06_core\gmake.exe: *** [packages/ti/mw/wifi/cc3x00,.interfaces] Error 2 gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `c:/ti/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08' make: *** [drivers] Error 2
How should I procede?
daniolip said:I installed GetGnuWin32 and ran the command "make -f tirtos.mak drivers".
On the other thread you wrote the above. Is the GetGnuWin32 used for the 'make'? If so, that could be the problem. xdctools comes with 'gmake', can you try invoking
..\xdctools_3_32_00_06_core\gmake -f tirtos.mak drivers
?
I just tried your exercise (edit ffconf.h and issue above command) and it worked fine.
Regards,
- Rob
Yes, i used "GetGnuWin32 " for the "make" since I assumed such external tool was required for recompiling the kernel.
I followed your instruction and used the gmake.exe to recompile the tirtos drivers.
It failed again. Here is the log:
C:\ti\tirtos_tivac_2_16_00_08>C:\ti\xdctools_3_32_00_06_core\gmake.exe -f tirtos.mak drivers building tirtos drivers... gmake[1]: Entering directory `c:/ti/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08' building drivers packages ... making all: Mon Apr 22 15:43:28 2019 ... ======== .interfaces [./packages/ti/boards] ======== ======== .interfaces [./packages/ti/drivers] ======== ======== .interfaces [./packages/ti/drivers/ports] ======== ======== .interfaces [./packages/ti/mw] ======== ======== .interfaces [./packages/ti/mw/fatfs] ======== ======== .interfaces [./packages/ti/mw/wifi/cc3x00] ======== making package.mak (because of package.bld) ...making package.mak (because of package.bld) ... making package.mak (because of package.bld) ... making package.mak (because of package.bld) ... js: "C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/targets/arm/elf/IArm.xs", line 77: Error: The compiler ijs: "C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/targets/arm/elf/IArm.xs", line 77: Error: The compiler in c:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5 is not compatible with this version of TI-RTOS or SYS/BIOS. Please use Arm compilejs: "C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/targets/arm/elf/IArm.xs", line 77: Error: The compiler ijs: "C:/ti/tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/targets/arm/elf/IArm.xs", line 77: Error: The compiler in c:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5 is not compatible with this version of TI-RTOS or SYS/BIOS. Please use Arm compiler 5.2.2 or newer. n c:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5 is not compatible with this version of TI-RTOS or SYS/BIOS. Please use Arm compilen c:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.5 is not compatible with this version of TI-RTOS or SYS/BIOS. Please use Arm compiler 5.2.2 or newer. r 5.2.2 or newer. r 5.2.2 or newer. gmake[1]: *** Deleting file `package.mak' gmake[1]: *** Deleting file `package.mak' gmake[1]: *** gmake[1]: gmake[1]: *** No rule to make target `package.mak', needed by `.interfaces'*** Deleting file `package.mak'No rule to make target `package.mak', needed by `.interfaces'. Stop. . Stop. gmake[1]: *** No rule to make target `package.mak', needed by `.interfaces'. Stop. gmake[1]: *** Deleting file `package.mak' gmake[1]: *** No rule to make target `package.mak', needed by `.interfaces'. Stop. xdctools_3_32_00_06_core\gmake.exe: *** [packages/ti/drivers,.interfaces] Error 2 xdctools_3_32_00_06_core\gmake.exe: *** Waiting for unfinished jobs.... xdctools_3_32_00_06_core\gmake.exe: *** [packages/ti/drivers/ports,.interfaces] Error 2 xdctools_3_32_00_06_core\gmake.exe: *** [packages/ti/mw/fatfs,.interfaces] Error 2 xdctools_3_32_00_06_core\gmake.exe: *** [packages/ti/mw/wifi/cc3x00,.interfaces] Error 2 gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `c:/ti/tirtos_tivac_2_16_00_08/products/tidrivers_tivac_2_16_00_08' gmake: *** [drivers] Error 2 C:\ti\tirtos_tivac_2_16_00_08>
Your tirtos.mak file is pointing to c:\ti\ccsv6\tools\compilers\ti-cgt-arm_5.2.5. The IArm.xs file is looking for the file "bin\armcl.exe" under that directory, and the error message suggests it is not finding "bin\armcl.exe". The "newer than 5.2.2" message is kind of jumping to conclusions - I believe the compiler was named cl470 before version 5.
Do you actually have that compiler in that exact location?
Regards,
- Rob
daniolip said:Funny enough, I'm not using ccsv6. I'm using CCS8.3 (ccsv8).
tirtos_tivac_2_16_00_08 is pre-configured to use ccsv6. It should be OK to use CCS8.3 as long as you tell TI-RTOS about it.
daniolip said:What should I do to correct the tirtos.mak?
You need to edit tirtos.mak. Take a look at the macros at the beginning and change them to your installation locations. In particular, change:
CCS_COMPILERS_DIR ?= $(DEFAULT_INSTALL_DIR)/ccsv6/tools/compiler
to:
CCS_COMPILERS_DIR ?= $(DEFAULT_INSTALL_DIR)/ccsv8/tools/compiler
(or, if not in that location, specify actual location).
Then, change:
ti.targets.arm.elf.M4F ?= $(TI_INSTALL_DIR)/ti-cgt-arm_18.1.3.LTS
(or ti-cgt-arm_18.1.4.LTS, they're both there).
daniolip said:the user guide for compiling ti-rtos didn't mention such alterations as required.
It's a little bit hidden. Section 3.1.2 of the "TI-RTOS 2.16 for TivaC Getting Started Guide" mentions editing tirtos.mak (although it neglects to mention CCS_COMPILERS_DIR).
First of all, sorry for the late reply.
The changes on the make script suggest by Robert Tivy solved my issue. I was able to recompile the ti-rtos driver and use the "f_findnext" and "f_findfirst" FATFS functions.
I ended up using the version 18.x compiler and seems work just fine. Maybe I will recompile using another compiler as suggested just in case.