Other Parts Discussed in Thread: TMDXIDK5718,
Tool/software: Code Composer Studio
I'm trying to write a simple code without TI sys/bios.here is my code
/*******************************************************LED_BLINKING***************************************************************************/
#include <stdio.h>
#include <ti/drv/gpio/soc/GPIO_soc.h>
#include "GPIO_log.h"
#include <ti/board/board.h>
#include <xdc/std.h>
#define GPIO_PIN_VAL_HIGH 1
#define GPIO_PIN_VAL_LOW 0
int main(void)
{
volatile int i;
Board_initCfg boardCfg;
boardCfg = BOARD_INIT_PINMUX_CONFIG |
BOARD_INIT_MODULE_CLOCK |
BOARD_INIT_UART_STDIO;
Board_init(boardCfg);
GPIO_init();
while(1)
{
GPIO_write((USER_LED1), GPIO_PIN_VAL_HIGH);
for(i=0;i<6000;i++);
GPIO_write((USER_LED1), GPIO_PIN_VAL_LOW);
for(i=0;i<6000;i++);
}
return 0;
}
/******************************************************************************************************************************************************/
subdir_rules.mk shows an error like these..
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
SHELL = cmd.exe
# Each subdirectory must supply rules for building sources it contributes
%.o: ../%.c $(GEN_OPTS) | $(GEN_HDRS)
@echo 'Building file: "$<"'
@echo 'Invoking: GNU Compiler'
"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -Dam5718 -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/xdctools_3_50_08_24_core/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/gpio/test/led_blink/src" -I"C:/Users/BCG/Desktop/led_implimenting/test" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -specs="rdimon.specs" -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" $(GEN_OPTS__FLAG) -o"$@" "$<"
@echo 'Finished building: "$<"'
@echo ' '
%.o: ../%.S $(GEN_OPTS) | $(GEN_HDRS)
@echo 'Building file: "$<"'
@echo 'Invoking: GNU Compiler'
"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -Dam5718 -I"C:/ti/pdk_am57xx_1_0_13/packages" -I"C:/ti/xdctools_3_50_08_24_core/packages" -I"C:/ti/pdk_am57xx_1_0_13/packages/ti/drv/gpio/test/led_blink/src" -I"C:/Users/BCG/Desktop/led_implimenting/test" -I"C:/ti/ccsv8/tools/compiler/gcc-arm-none-eabi-7-2017-q4-major-win32/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -specs="rdimon.specs" -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -x assembler-with-cpp $(GEN_OPTS__FLAG) -o"$@" "$<"
@echo 'Finished building: "$<"'
@echo ' '
/****************************************************************************************************************************************************************************************************************************/
but it doesnt shows any error inside my code.can i able to write these code without ti bios.how we will modify these code for achieving it??
currently i'm working with AM5718 PSDK RTOS version: v05.02 & my ccstudio version is 8.0.0...