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.

RTOS/AM5728: NIMU basic example issue

Part Number: AM5728

Tool/software: TI-RTOS

Hello,

I am using TMDSEVM572X (AM572x Evaluation Module). To evaluate Ethernet I started with NIMU_BasicExample_evmAM572x_armExampleproject: project works, I have ping. Then I added example code of  echo sockets application (TI Network Developer's Kit (NDK) v2.25 user guide, 3.4, p.59). As the result: when is called connect( s, (PSA) &sin1, sizeof(sin1) ) it leads to "No source available for "do_AngelSWI(int, void*)". What can be a reason?

I have build SDK according http://processors.wiki.ti.com/index.php/Processor_SDK_RTOS_Building_The_SDK. I have build PDK and test project creation according http://processors.wiki.ti.com/index.php/Rebuilding_The_PDK.

Debug process: launch selected configuration/system reset/connect to A15_0/run script "Am572x_DDR3_532MHz_Config"/CPU reset/Run->load/Run->resume 

Host Environment: Windows 10, processor_sdk_rtos_am57xx_4_01_00_06, CCS7, Blackhawk USB560 v2 System trace, gpevm_am572x.gel (for A15)

NIMU_BasicExample_evmAM572x_armExampleproject.rar

**** Build of configuration Debug for project NIMU_BasicExample_evmAM572x_armExampleproject ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O 
gmake[1]: Entering directory 'C:/ti/pdk_am57xx_1_0_8/packages/MyExampleProjects/NIMU_BasicExample_evmAM572x_armExampleproject/Debug'
'Building file: C:/ti/pdk_am57xx_1_0_8/packages/ti/transport/ndk/nimu/example/am572x/armv7/bios/nimu_evm.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti/bios_6_46_05_55/packages;C:/ti/pdk_am57xx_1_0_8/packages;C:/ti/edma3_lld_2_12_05_29/packages;C:/ti/ipc_3_46_02_04/packages;C:/ti/ndk_2_25_01_11/packages;C:/ti/uia_2_00_06_52/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A15F -p ti.platforms.evmAM572X -r debug -c "C:/ti/gcc-arm-none-eabi-4_9-2015q3" "C:/ti/pdk_am57xx_1_0_8/packages/ti/transport/ndk/nimu/example/am572x/armv7/bios/nimu_evm.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring nimu_evm.xa15fg from package/cfg/nimu_evm_pa15fg.cfg ...
generating custom ti.sysbios library makefile ... 
	Linking with library ti.transport.ndk.nimu:./lib/am572x/a15/release/ti.transport.ndk.nimu.aa15fg
	Linking with library ti.drv.i2c:./lib/a15/release/ti.drv.i2c.aa15fg
	Linking with library ti.drv.uart:./lib/a15/release/ti.drv.uart.aa15fg
	Linking with library ti.drv.emac:./lib/am572x/a15/release/ti.drv.emac.aa15fg
	Linking with library ti.board:./lib/evmAM572x/a15/release/ti.board.aa15fg
	Linking with library ti.osal:./lib/tirtos/a15/release/ti.osal.aa15fg
	Linking with library ti.csl:./lib/am572x/a15/release/ti.csl.aa15fg
Starting build of library sources ...
making C:/ti/pdk_am57xx_1_0_8/packages/ti/transport/ndk/nimu/example/am572x/armv7/bios/src/sysbios/sysbios.aa15fg ...
gmake[1]: Entering directory `C:/ti/pdk_am57xx_1_0_8/packages/ti/transport/ndk/nimu/example/am572x/armv7/bios/src/sysbios'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `C:/ti/pdk_am57xx_1_0_8/packages/ti/transport/ndk/nimu/example/am572x/armv7/bios/src/sysbios'
Build of libraries done.
cla15fg package/cfg/nimu_evm_pa15fg.c ...
'Finished building: C:/ti/pdk_am57xx_1_0_8/packages/ti/transport/ndk/nimu/example/am572x/armv7/bios/nimu_evm.cfg'
' '
gmake[1]: Leaving directory 'C:/ti/pdk_am57xx_1_0_8/packages/MyExampleProjects/NIMU_BasicExample_evmAM572x_armExampleproject/Debug'
'Building file: ../NetFunc.c'
'Invoking: GNU Compiler'
"C:/ti/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -DSOC_AM572x -DevmAM572x -D_POSIX_SOURCE -I"C:/ti/ndk_2_25_01_11/packages/ti/ndk/inc/bsd" -I"C:/ti/pdk_am57xx_1_0_8/packages/MyExampleProjects/NIMU_BasicExample_evmAM572x_armExampleproject" -I"C:/ti/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"NetFunc.d" -MT"NetFunc.o" -o"NetFunc.o" @"configPkg/compiler.opt" "../NetFunc.c"
../NetFunc.c: In function 'UDPSend':
../NetFunc.c:40:7: warning: assignment makes pointer from integer without a cast
     s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
       ^
../NetFunc.c:49:5: warning: implicit declaration of function 'mmZeroInit' [-Wimplicit-function-declaration]
     bzero( &sin1, sizeof(struct sockaddr_in) );
     ^
../NetFunc.c:59:23: warning: passing argument 1 of 'setsockopt' makes integer from pointer without a cast
     ret = setsockopt( s, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof( timeout ) );
                       ^
In file included from ../NetFunc.c:12:0:
C:/ti/ndk_2_25_01_11/packages/ti/ndk/inc/bsd/sys/socket.h:280:19: note: expected 'int' but argument is of type 'SOCKET'
 static inline int setsockopt(int sockfd, int level, int optname,
                   ^
../NetFunc.c:72:23: warning: passing argument 1 of 'setsockopt' makes integer from pointer without a cast
     ret = setsockopt( s, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof( timeout ) );
                       ^
In file included from ../NetFunc.c:12:0:
C:/ti/ndk_2_25_01_11/packages/ti/ndk/inc/bsd/sys/socket.h:280:19: note: expected 'int' but argument is of type 'SOCKET'
 static inline int setsockopt(int sockfd, int level, int optname,
                   ^
../NetFunc.c:85:20: warning: passing argument 1 of 'connect' makes integer from pointer without a cast
     ret = connect( s, (PSA) &sin1, sizeof(sin1) );
                    ^
In file included from ../NetFunc.c:12:0:
C:/ti/ndk_2_25_01_11/packages/ti/ndk/inc/bsd/sys/socket.h:202:19: note: expected 'int' but argument is of type 'SOCKET'
 static inline int connect(int sockfd, const struct sockaddr *serv_addr,
                   ^
../NetFunc.c:120:7: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
       free( pBuf );
       ^
../NetFunc.c:120:7: warning: incompatible implicit declaration of built-in function 'free'
../NetFunc.c:19:15: warning: variable 'buffersize' set but not used [-Wunused-but-set-variable]
     int i,ret,buffersize,state;
               ^
../NetFunc.c:19:9: warning: unused variable 'i' [-Wunused-variable]
     int i,ret,buffersize,state;
         ^
'Finished building: ../NetFunc.c'
' '
'Building file: C:/ti/pdk_am57xx_1_0_8/packages/ti/drv/i2c/soc/am572x/I2C_soc.c'
'Invoking: GNU Compiler'
"C:/ti/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -DSOC_AM572x -DevmAM572x -D_POSIX_SOURCE -I"C:/ti/ndk_2_25_01_11/packages/ti/ndk/inc/bsd" -I"C:/ti/pdk_am57xx_1_0_8/packages/MyExampleProjects/NIMU_BasicExample_evmAM572x_armExampleproject" -I"C:/ti/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"I2C_soc.d" -MT"I2C_soc.o" -o"I2C_soc.o" @"configPkg/compiler.opt" "C:/ti/pdk_am57xx_1_0_8/packages/ti/drv/i2c/soc/am572x/I2C_soc.c"
'Finished building: C:/ti/pdk_am57xx_1_0_8/packages/ti/drv/i2c/soc/am572x/I2C_soc.c'
' '
'Building file: C:/ti/pdk_am57xx_1_0_8/packages/ti/drv/uart/soc/am572x/UART_soc.c'
'Invoking: GNU Compiler'
"C:/ti/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -DSOC_AM572x -DevmAM572x -D_POSIX_SOURCE -I"C:/ti/ndk_2_25_01_11/packages/ti/ndk/inc/bsd" -I"C:/ti/pdk_am57xx_1_0_8/packages/MyExampleProjects/NIMU_BasicExample_evmAM572x_armExampleproject" -I"C:/ti/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"UART_soc.d" -MT"UART_soc.o" -o"UART_soc.o" @"configPkg/compiler.opt" "C:/ti/pdk_am57xx_1_0_8/packages/ti/drv/uart/soc/am572x/UART_soc.c"
'Finished building: C:/ti/pdk_am57xx_1_0_8/packages/ti/drv/uart/soc/am572x/UART_soc.c'
' '
'Building file: C:/ti/pdk_am57xx_1_0_8/packages/ti/transport/ndk/nimu/example/src/main_AM57xx.c'
'Invoking: GNU Compiler'
"C:/ti/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -DSOC_AM572x -DevmAM572x -D_POSIX_SOURCE -I"C:/ti/ndk_2_25_01_11/packages/ti/ndk/inc/bsd" -I"C:/ti/pdk_am57xx_1_0_8/packages/MyExampleProjects/NIMU_BasicExample_evmAM572x_armExampleproject" -I"C:/ti/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"main_AM57xx.d" -MT"main_AM57xx.o" -o"main_AM57xx.o" @"configPkg/compiler.opt" "C:/ti/pdk_am57xx_1_0_8/packages/ti/transport/ndk/nimu/example/src/main_AM57xx.c"
'Finished building: C:/ti/pdk_am57xx_1_0_8/packages/ti/transport/ndk/nimu/example/src/main_AM57xx.c'
' '
'Building file: C:/ti/pdk_am57xx_1_0_8/packages/ti/transport/ndk/nimu/example/src/nimu_osal.c'
'Invoking: GNU Compiler'
"C:/ti/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a15 -mtune=cortex-a15 -marm -mfloat-abi=hard -Dam5728 -Dcore0 -DSOC_AM572x -DevmAM572x -D_POSIX_SOURCE -I"C:/ti/ndk_2_25_01_11/packages/ti/ndk/inc/bsd" -I"C:/ti/pdk_am57xx_1_0_8/packages/MyExampleProjects/NIMU_BasicExample_evmAM572x_armExampleproject" -I"C:/ti/gcc-arm-none-eabi-4_9-2015q3/arm-none-eabi/include" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"nimu_osal.d" -MT"nimu_osal.o" -o"nimu_osal.o" @"configPkg/compiler.opt" "C:/ti/pdk_am57xx_1_0_8/packages/ti/transport/ndk/nimu/example/src/nimu_osal.c"
'Finished building: C:/ti/pdk_am57xx_1_0_8/packages/ti/transport/ndk/nimu/example/src/nimu_osal.c'
' '
'Building target: NIMU_BasicExample_evmAM572x_armExampleproject.out'
'Invoking: GNU Linker'
"C:/ti/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc.exe" -mtune=cortex-a15 -marm -Dam5728 -Dcore0 -DSOC_AM572x -DevmAM572x -D_POSIX_SOURCE -g -gdwarf-3 -gstrict-dwarf -Wall -mfloat-abi=hard -Wl,-Map,"NIMU_BasicExample_evmAM572x_armExampleproject.map" -nostartfiles -static -Wl,--gc-sections -L"C:/ti/bios_6_46_05_55/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu" -L"C:/ti/ndk_2_25_01_11/packages/ti/ndk/os/lib" -Wl,--defsym,CORE0=1 -Wl,--defsym,STACKSIZE=0x10000 -Wl,--defsym,HEAPSIZE=0x400 -o"NIMU_BasicExample_evmAM572x_armExampleproject.out" "./I2C_soc.o" "./NetFunc.o" "./UART_soc.o" "./main_AM57xx.o" "./nimu_osal.o" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -lrdimon -lgcc -lm -lnosys -l:os.aa15fg -lc -Wl,--end-group 
'Finished building target: NIMU_BasicExample_evmAM572x_armExampleproject.out'
' '
C:/ti/pdk_am57xx_1_0_8/packages/pdkAppImageCreate.bat C:/ti/pdk_am57xx_1_0_8/packages C:/ti/gcc-arm-none-eabi-4_9-2015q3 C:/ti/pdk_am57xx_1_0_8/packages/MyExampleProjects/NIMU_BasicExample_evmAM572x_armExampleproject/Debug NIMU_BasicExample_evmAM572x_armExampleproject AM572x arm
Parsing the input object file, C:/ti/pdk_am57xx_1_0_8/packages/MyExampleProjects/NIMU_BasicExample_evmAM572x_armExampleproject/Debug/NIMU_BasicExample_evmAM572x_armExampleproject.out.
File conversion complete!
Number of Input Files 1

' '

**** Build Finished ****