Other Parts Discussed in Thread: MSP430F5438A
I have download MSP430 Bluetopia SDK V1.4 R1 and test the example “SPPDemo”,At first ,I complie it with IAR for MSP430 v5.5 .It works well.
When I complie “SPPDemo” with a new version of IAR (v6.1),there are some errors,
Updating build tree...
BTPSKRNL.c
BTPSVEND.c
BTVS.c
Warning[Pe186]: pointless comparison of unsigned integer with zero C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Bluetopia\btvs\BTVS.c 167
Warning[Pe186]: pointless comparison of unsigned integer with zero C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Bluetopia\btvs\BTVS.c 429
Warning[Pe186]: pointless comparison of unsigned integer with zero C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Bluetopia\btvs\BTVS.c 643
Warning[Pe186]: pointless comparison of unsigned integer with zero C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Bluetopia\btvs\BTVS.c 643
Warning[Pe186]: pointless comparison of unsigned integer with zero C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Bluetopia\btvs\BTVS.c 729
HAL.c
HCITRANS.c
low_level_init.c
Main.c
SPPDemo.c
sprintf.c
Linking
Error[e46]: Undefined external "HCI_Send_Raw_Command" referred in BTVS ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438A
Exp\Obj\BTVS.r43 )
Error[e46]: Undefined external "HCI_Reconfigure_Driver" referred in BTVS ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438AExp\
Obj\BTVS.r43 )
Error[e46]: Undefined external "BSC_QueryStackIdle" referred in Main ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438A Exp\Obj\
Main.r43 )
Error[e46]: Undefined external "BSC_Initialize" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438A Exp\Obj\
SPPDemo.r43 )
Error[e46]: Undefined external "HCI_Version_Supported" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438A
Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "GAP_Query_Local_BD_ADDR" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "L2CA_Set_Link_Connection_Configuration" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug
- MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "HCI_Command_Supported" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "HCI_Write_Default_Link_Policy_Settings" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "BSC_Shutdown" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438A Exp\Obj\
SPPDemo.r43 )
Error[e46]: Undefined external "GAP_Set_Discoverability_Mode" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "GAP_Set_Connectability_Mode" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "GAP_Set_Pairability_Mode" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "GAP_Register_Remote_Authentication" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "HCI_Delete_Stored_Link_Key" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "GAP_Perform_Inquiry" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438A
Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "GAP_Initiate_Bonding" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438A
Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "GAP_End_Bonding" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438AExp\
Obj\SPPDemo.r43 )
Error[e46]: Undefined external "GAP_Authentication_Response" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "GAP_Set_Local_Device_Name" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "GAP_Query_Local_Device_Name" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "GAP_Set_Class_Of_Device" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "GAP_Query_Class_Of_Device" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "GAP_Query_Remote_Device_Name" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "HCI_Sniff_Mode" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438AExp\
Obj\SPPDemo.r43 )
Error[e46]: Undefined external "HCI_Exit_Sniff_Mode" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438A
Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "SPP_Open_Server_Port" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438A
Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "SPP_Register_Raw_SDP_Record" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "SPP_Close_Server_Port" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "SDP_Delete_Service_Record" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "SPP_Open_Remote_Port" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "SPP_Close_Port" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438AExp\
Obj\SPPDemo.r43 )
Error[e46]: Undefined external "SPP_Data_Read" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438AExp\
Obj\SPPDemo.r43 )
Error[e46]: Undefined external "SPP_Data_Write" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug - MSP430F5438AExp\
Obj\SPPDemo.r43 )
Error[e46]: Undefined external "SPP_Get_Configuration_Parameters" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "SPP_Set_Configuration_Parameters" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "SPP_Get_Queuing_Parameters" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "SPP_Set_Queuing_Parameters" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "GAP_Query_Connection_Handle" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "SPP_Respond_Port_Information" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error[e46]: Undefined external "HCI_Register_Event_Callback" referred in SPPDemo ( C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Samples\SPPDemo\Projects\IAR\Debug -
MSP430F5438A Exp\Obj\SPPDemo.r43 )
Error while running Linker
Total number of errors: 41
Total number of warnings: 5
And I have read the article "http://e2e.ti.com/support/wireless_connectivity/f/660/t/336742.aspx"
I set the linker follow the picture below, then get the following:
Building configuration: SPPDemo - Debug - MSP430F5438A Exp
Updating build tree...
BTPSKRNL.c
BTPSVEND.c
BTVS.c
Warning[Pe186]: pointless comparison of unsigned integer with zero C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Bluetopia\btvs\BTVS.c 167
Warning[Pe186]: pointless comparison of unsigned integer with zero C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Bluetopia\btvs\BTVS.c 429
Warning[Pe186]: pointless comparison of unsigned integer with zero C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Bluetopia\btvs\BTVS.c 643
Warning[Pe186]: pointless comparison of unsigned integer with zero C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Bluetopia\btvs\BTVS.c 643
Warning[Pe186]: pointless comparison of unsigned integer with zero C:\ti\Connectivity\CC256X BT\CC256x MSP430 Bluetopia SDK\v1.4 R1\MSP430_Experimentor\Bluetopia\btvs\BTVS.c 729
HAL.c
HCITRANS.c
low_level_init.c
Main.c
SPPDemo.c
sprintf.c
Linking
Fatal Error[e62]: File name "C:\ti\Connectivity\CC256X" used for multiple files
Error while running Linker
Total number of errors: 1
Total number of warnings: 5
What should i do to fix tthese errors .Please help me .
