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: Code Composer Studio
Hi,
I am new with RTOS and I wanted to run the example of blink LED of freeRTOS, but I have a problem when I build the code. It say me that: Program "make" not found in PATH.
I think the PATH is "ti\FreeRTOSv10.2.1\FreeRTOS\Demo". A makefile is in "\ti\FreeRTOSv10.2.1\FreeRTOS\Demo\CORTEX_R4_RM48_TMS570_CCS5\TMS570 with FPU", I dont know if "make " is the same than "makefile" but I setted the build configuration as "TMS570 with FPU". However, It continues failing.
Are there something that I am forgetting?
Thanks!
Hello,
What kind of project are you trying to build? Is it a CCS project? Screenshots and sharing any messages in the build console would be helpful.
Thanks
ki
Hello Ki,
I'm trying to run an Eclipse Project in Code Composer Studio. I'm following the instructions of the official page of FreeRTOS to make a blink LED (https://www.freertos.org/Free_RTOS_for_TI_RM48_and_TMS570.html).
I solved the problem of "makefile" changing the build configuration, but I have the following error now:
#35 #error directive: Ensure CreateProjectDirectoryStructure.bat has been executed before building. See comment immediately above.
I executed the ".bat". However the error persists, I think that I'd have to execute ".bat" in another place. I will show an image of that.
Thanks,
Leandro
Leandro Gagliardi said:#35 #error directive: Ensure CreateProjectDirectoryStructure.bat has been executed before building. See comment immediately above.
Please read the comment above the line:
If you successfully executed the *.bat file, then you can remove (or comment out) line 31 as mentioned in the comment.
Thanks
ki
Thank you so much Ki!
I resolved this error, but It continues without compiling. If I select "Build configurations -> RM48 with FPU" and the endianess as little, It build successfully. However, I cant flash the MCU because It does not match the target endianess. The following image shows that.
Error in Console is the following:
CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0CortexR4: GEL: File: C:\ti\FreeRTOSv10.2.1\FreeRTOS\Demo\CORTEX_R4_RM48_TMS570_CCS5\RM48 with FPU\CORTEX-R4_TI_CCS5.out Does not match the target endianness, not loaded. Check project build options and target configuration file (ccxml).
After that I change the endianess to "be32" which worked in a previous test (no with freeRTOS). But three errors are there as the following image shows:
Regards,
Leandro
The latest error (after you switch the endianness) is that while you switched your main project to big endian, you are linking in object files (libraries) that are little endian. Hence the conflict. From your truncated console output, it looks like the run-time library is the little endian one. If you are using "rtsv7R4_A_le_eabi.lib", note that the "le" stands for little endian. Try switching to the big endian one.
Actually, as I look again, looks like the library name is D16_eabi.lib (or something like that). I'm not sure which lib that is but it is little endian and you need to use the big endian one.
Hello Ki,
Thanks for your help. I think that I solved the trouble. I tell what I have done step by step.
1- I downloaded FreeRTOS from "https://www.freertos.org/a00104.html".
2- I extracted FreeRTOS into "C:\ti\" folder.
3- I executed this file .bat "C:\ti\FreeRTOSv10.2.1\FreeRTOS\Demo\CORTEX_R4_RM48_TMS570_CCS5".
4- Then I went to File->Import->Project from Folder or Archive->Directory->C:\ti\FreeRTOSv10.2.1\FreeRTOS\Demo\CORTEX_R4_RM48_TMS570_CCS5 and clic on Finish.
5- I went to Project->Properties->General. In configuration I set that as RM48 with FPU; Variant; TMS570LS3137; Connection: XDS100v2; Device endianess: be32. Finally "Apply and close".
6- In pannel of project, I did right clic on CORTEX-R4_TI_CCS5->Build configurations->Set Active->RM48 with FPU.
Then I could build and flash the device successfully.
Now I'm some problems with six warnings of this type:
Description Resource Path Location Type
#10247-D null: creating output section ".bss" without a SECTIONS CORTEX-R4_TI_CCS5 C/C++ Problem.
But I will try to find a solution by myself. If I can't I will make new questions.
Regards and thanks!
Leandro
Leandro Gagliardi said:Thanks for your help. I think that I solved the trouble. I tell what I have done step by step.
Great! And thanks for sharing your steps!
Leandro Gagliardi said:Description Resource Path Location Type
#10247-D null: creating output section ".bss" without a SECTIONS CORTEX-R4_TI_CCS5 C/C++ Problem.
To resolve the warning the linker command file used by the project needs to specify the .bss SECTION in a MEMORY region:
https://software-dl.ti.com/ccs/esd/documents/sdto_cgt_Linker-Command-File-Primer.html#basics
Thanks
ki
Hello Ki,
Thanks for your answer, the problem was related to that because I didn't have a linker command file selected. I selected "TMS570LS313xFlashLnk.cmd" and then I could flash the MCU without problems and warnings :).
That could be the last step:
LS: Make sure that You select the linker command file from Properties of project->General->Linker command file.
Thanks and regards,
Leandro G.