CCS: v6.0.1.0040
TI-RTOS: 2.10.01.38
NDK: 2.24.01.18
Hi,
Following the post at I am having trouble porting my project from my old PC to the new one. The errors that are shooting up are described below:
OLD PC Configuration:
CCS: v6.0.1.0040
TI-RTOS: 2.01.00.03
NDK: 2.23.01.01
NEW PC Configuration:
CCS: v6.0.1.0040
TI-RTOS: 2.10.01.38
NDK: 2.24.01.18
ERROR 1:
CCS says there is no element named "sin_len" of structure "sockaddr_in". Is it that it was there in NDKv2.23.01.01 & removed in NDKv2.24.01.18? If yes, then how do I cater to the following code? The code segment is giving error that "sin1.sin_len" doesn't exist.
// Prepare address for connect
bzero( &sin1, sizeof(struct sockaddr_in) );
sin1.sin_family = AF_INET;
sin1.sin_len = sizeof( sin1 );
sin1.sin_addr.s_addr = inet_addr("182.18.175.43");//inet_addr("192.168.1.184");
sin1.sin_port = htons(80);//htons(7);
// Configure our Tx and Rx timeout to be 5 seconds
timeout.tv_sec = 5;
timeout.tv_usec = 0;
setsockopt( s, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof( timeout ) );
setsockopt( s, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof( timeout ) );
ERROR 2:
The following mentioned C statements are giving error like "GPIO_PIN_7 not defined" etc etc. In the old PC these errors were not coming but in the new PC they are. The set of include files are also mentioned below.
Statements that are giving errors, errors related to their parameters (the constants) being undefined:
GPIOPinTypeGPIOOutput(GPIO_PORTC_BASE, GPIO_PIN_0);
GPIOPinTypeQEI(GPIO_PORTL_BASE, GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3);
GPIOPinTypeGPIOOutput(GPIO_PORTC_BASE, GPIO_PIN_1);
GPIOPinTypeQEI(GPIO_PORTL_BASE, GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3);
GPIOPinTypeGPIOOutput(GPIO_PORTC_BASE, GPIO_PIN_2);
GPIOPinTypeQEI(GPIO_PORTL_BASE, GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3);
GPIOPadConfigSet(GPIO_PORTD_BASE, GPIO_PIN_7, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPD);
THE INCLUDE(S):
/* XDCtools Header files */
#include <xdc/std.h>
#include <xdc/cfg/global.h>
#include <xdc/runtime/System.h>
#include <xdc/runtime/Error.h>
/* BIOS Header files */
#include <ti/sysbios/BIOS.h>
#include <ti/sysbios/fatfs/ff.h>
#include <ti/sysbios/knl/Clock.h>
#include <ti/sysbios/knl/Task.h>
//#include <ti/sysbios/knl/Load.h>
#include <ti/sysbios/smp/Load.h>
#include <ti/sysbios/knl/Mailbox.h>
#include <ti/sysbios/family/arm/m3/Hwi.h>
/* TI-RTOS Header files */
#include <ti/drivers/GPIO.h>
#include <ti/drivers/SDSPI.h>
#include <ti/drivers/USBMSCHFatFs.h>
#include <ti/drivers/UART.h>
#include <ti/drivers/I2C.h>
#include <ti/drivers/SPI.h>
#include <driverlib/sysctl.h>
#include <driverlib/eeprom.c>
#include <ti/drivers/EMAC.h>
//#include "html/oem_logo.h"
#include "html/banner.h"
#include "html/stylecss.h"
/* Example/Board Header files */
#include "Board.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <driverlib/hibernate.c>
#include <driverlib/hibernate.h>
// required for Hwi_disable() to work,
//but eventually discarded as it
//conflicts with device specific
//header file "ti/sysbios/family/arm/m3/Hwi.h"
//#include <ti/sysbios/hal/Hwi.h>
#include <inc/hw_gpio.h> // required for constants like GPIO_O_AFSEL, GPIO_O_CR, etc to work
#include <inc/hw_memmap.h> // required for constants like GPIO_PORTC_BASE, etc to work
#include <driverlib/pin_map.h>
#include "inc/hw_nvic.h"
#include <driverlib/qei.h>
// ethernet - start
#include "html/index.h"
#include "html/setTime.h"
#include <time.h>
#include <ti/ndk/inc/tools/cgiparse.h>
#include <ti/ndk/inc/tools/cgiparsem.h>
/* NDK Header files */
#include <ti/ndk/inc/netmain.h>
#include <ti/ndk/inc/_stack.h>
#include <ti/ndk/inc/nettools/netcfg.h>
PLEASE HELP.
Thanks
Regards
Soumyajit