AnsweredAssumed Answered

Import example CocoxIDE to SW4STM32

Question asked by Sabas Sabas on Jan 24, 2018
Latest reply on Mar 14, 2018 by Clive One

Hi

 

I trying of port the next example to SW4STM32

 

GitHub - RAKWireless/RAK811_BreakBoard: RAKwireless,RAK811,BreakBoard,GPS tracker,Low power,Open source 

 

But I have the next error

 

Building target: RAK.elf

Invoking: MCU GCC Linker

arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -mfloat-abi=soft -L/Users/sabas/Documents/workspace/RAK/radio -L/Users/sabas/Documents/workspace/RAK/peripherals -L/Users/sabas/Documents/workspace/RAK/mac -L/Users/sabas/Documents/workspace/RAK/mac/region -u _printf_float -specs=nosys.specs -specs=rdimon.specs -T"/Users/sabas/Documents/workspace/RAK/LinkerScript.ld" -Wl,-Map=output.map -Wl,--gc-sections -o "RAK.elf" @"objects.list" 

startup/startup_stm32.o:(.isr_vector+0x0): multiple definition of `g_pfnVectors'

Drivers/RAK811BreakBoard/cmsis/arm-gcc/startup_stm32l151xb.o:(.isr_vector+0x0): first defined here

startup/startup_stm32.o: In function `SysTick_Handler':

(.text.Default_Handler+0x0): multiple definition of `Default_Handler'

Drivers/RAK811BreakBoard/cmsis/arm-gcc/startup_stm32l151xb.o:(.text.Default_Handler+0x0): first defined here

/Applications/Ac6/SystemWorkbench.app/Contents/Eclipse/plugins/fr.ac6.mcu.externaltools.arm-none.macos64_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/librdimon.a(rdimon-syscalls.o): In function `_lseek':

syscalls.c:(.text._lseek+0x0): multiple definition of `_lseek'

/Applications/Ac6/SystemWorkbench.app/Contents/Eclipse/plugins/fr.ac6.mcu.externaltools.arm-none.macos64_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/libnosys.a(lseek.o):lseek.c:(.text._lseek+0x0): first defined here

/Applications/Ac6/SystemWorkbench.app/Contents/Eclipse/plugins/fr.ac6.mcu.externaltools.arm-none.macos64_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/librdimon.a(rdimon-syscalls.o): In function `_close':

syscalls.c:(.text._close+0x0): multiple definition of `_close'

/Applications/Ac6/SystemWorkbench.app/Contents/Eclipse/plugins/fr.ac6.mcu.externaltools.arm-none.macos64_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/libnosys.a(close.o):close.c:(.text._close+0x0): first defined here

/Applications/Ac6/SystemWorkbench.app/Contents/Eclipse/plugins/fr.ac6.mcu.externaltools.arm-none.macos64_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/librdimon.a(rdimon-syscalls.o): In function `_isatty':

syscalls.c:(.text._isatty+0x0): multiple definition of `_isatty'

/Applications/Ac6/SystemWorkbench.app/Contents/Eclipse/plugins/fr.ac6.mcu.externaltools.arm-none.macos64_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/libnosys.a(isatty.o):isatty.c:(.text._isatty+0x0): first defined here

mac/LoRaMac.o: In function `OnRadioTxDone':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:676: undefined reference to `Radio'

mac/LoRaMac.o: In function `OnRadioRxDone':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:805: undefined reference to `Radio'

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:1092: undefined reference to `memcpy1'

mac/LoRaMac.o: In function `OnRadioTxTimeout':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:1128: undefined reference to `Radio'

mac/LoRaMac.o: In function `OnRadioRxError':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:1163: undefined reference to `Radio'

mac/LoRaMac.o: In function `OnRadioRxTimeout':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:1203: undefined reference to `Radio'

mac/LoRaMac.o: In function `OnRxWindow1TimerEvent':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:1459: undefined reference to `Radio'

mac/LoRaMac.o: In function `RxWindowSetup':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:1514: undefined reference to `Radio'

mac/LoRaMac.o: In function `PrepareFrame':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:2080: undefined reference to `memcpyr'

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:2082: undefined reference to `memcpyr'

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:2104: undefined reference to `Radio'

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:2135: undefined reference to `memcpy1'

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:2208: undefined reference to `memcpy1'

mac/LoRaMac.o: In function `SendFrameOnChannel':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:2257: undefined reference to `Radio'

mac/LoRaMac.o: In function `SetTxContinuousWave1':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:2292: undefined reference to `Radio'

mac/LoRaMac.o: In function `LoRaMacInitialization':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:2452: undefined reference to `srand1'

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:2459: undefined reference to `Radio'

mac/LoRaMac.o: In function `LoRaMacMibSetRequestConfirm':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:2769: undefined reference to `memcpy1'

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:2782: undefined reference to `memcpy1'

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:2879: undefined reference to `Radio'

mac/LoRaMac.o: In function `LoRaMacMlmeRequest':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:3140: undefined reference to `memset1'

mac/LoRaMac.o: In function `LoRaMacMcpsRequest':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMac.c:3256: undefined reference to `memset1'

mac/LoRaMacCrypto.o: In function `LoRaMacPayloadEncrypt':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMacCrypto.c:114: undefined reference to `memset1'

mac/LoRaMacCrypto.o: In function `LoRaMacJoinDecrypt':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMacCrypto.c:173: undefined reference to `memset1'

mac/LoRaMacCrypto.o: In function `LoRaMacJoinComputeSKeys':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMacCrypto.c:188: undefined reference to `memset1'

mac/LoRaMacCrypto.o:/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMacCrypto.c:191: more undefined references to `memset1' follow

mac/LoRaMacCrypto.o: In function `LoRaMacJoinComputeSKeys':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMacCrypto.c:193: undefined reference to `memcpy1'

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMacCrypto.c:194: undefined reference to `memcpy1'

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMacCrypto.c:197: undefined reference to `memset1'

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMacCrypto.c:199: undefined reference to `memcpy1'

/Users/sabas/Documents/workspace/RAK/Debug/../mac/LoRaMacCrypto.c:200: undefined reference to `memcpy1'

mac/region/RegionUS915.o: In function `RegionUS915GetPhyParam':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/region/RegionUS915.c:230: undefined reference to `randr'

mac/region/RegionUS915.o: In function `RegionUS915RxConfig':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/region/RegionUS915.c:552: undefined reference to `Radio'

mac/region/RegionUS915.o: In function `RegionUS915TxConfig':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/region/RegionUS915.c:578: undefined reference to `Radio'

mac/region/RegionUS915.o: In function `RegionUS915RxParamSetupReq':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/region/RegionUS915.c:723: undefined reference to `Radio'

mac/region/RegionUS915.o: In function `RegionUS915NextChannel':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/region/RegionUS915.c:818: undefined reference to `randr'

mac/region/RegionUS915.o: In function `RegionUS915SetContinuousWave':

/Users/sabas/Documents/workspace/RAK/Debug/../mac/region/RegionUS915.c:859: undefined reference to `Radio'

peripherals/lis3dh.o: In function `Lis3dhGetIntState':

/Users/sabas/Documents/workspace/RAK/Debug/../peripherals/lis3dh.c:102: undefined reference to `BoardDisableIrq'

/Users/sabas/Documents/workspace/RAK/Debug/../peripherals/lis3dh.c:105: undefined reference to `BoardEnableIrq'

src/main.o: In function `PrepareTxFrame':

/Users/sabas/Documents/workspace/RAK/Debug/../src/main.c:286: undefined reference to `BoardBatteryMeasureVolage'

src/main.o: In function `OnLed1TimerEvent':

/Users/sabas/Documents/workspace/RAK/Debug/../src/main.c:419: undefined reference to `Led1'

src/main.o: In function `OnLed2TimerEvent':

/Users/sabas/Documents/workspace/RAK/Debug/../src/main.c:429: undefined reference to `Led2'

src/main.o: In function `McpsIndication':

/Users/sabas/Documents/workspace/RAK/Debug/../src/main.c:648: undefined reference to `Led2'

/Users/sabas/Documents/workspace/RAK/Debug/../src/main.c:675: undefined reference to `Led1'

src/main.o: In function `MlmeConfirm':

/Users/sabas/Documents/workspace/RAK/Debug/../src/main.c:724: undefined reference to `Led1'

src/main.o: In function `main':

/Users/sabas/Documents/workspace/RAK/Debug/../src/main.c:735: undefined reference to `BoardInitMcu'

/Users/sabas/Documents/workspace/RAK/Debug/../src/main.c:736: undefined reference to `BoardInitPeriph'

/Users/sabas/Documents/workspace/RAK/Debug/../src/main.c:887: undefined reference to `randr'

/Users/sabas/Documents/workspace/RAK/Debug/../src/main.c:743: undefined reference to `BoardGetBatteryLevel'

/Users/sabas/Documents/workspace/RAK/Debug/../src/main.c:743: undefined reference to `Led2'

system/gpio.o: In function `GpioWrite':

/Users/sabas/Documents/workspace/RAK/Debug/../system/gpio.c:76: undefined reference to `GpioMcuWrite'

system/gpio.o: In function `GpioToggle':

/Users/sabas/Documents/workspace/RAK/Debug/../system/gpio.c:91: undefined reference to `GpioMcuToggle'

system/gps.o: In function `GpsStart':

/Users/sabas/Documents/workspace/RAK/Debug/../system/gps.c:74: undefined reference to `GpsMcuStart'

system/gps.o: In function `GpsStop':

/Users/sabas/Documents/workspace/RAK/Debug/../system/gps.c:79: undefined reference to `GpsMcuStop'

system/gps.o: In function `GpsGetPpsDetectedState':

/Users/sabas/Documents/workspace/RAK/Debug/../system/gps.c:91: undefined reference to `BoardDisableIrq'

/Users/sabas/Documents/workspace/RAK/Debug/../system/gps.c:94: undefined reference to `BoardEnableIrq'

system/gps.o: In function `GpsGetLatestGpsAltitude':

/Users/sabas/Documents/workspace/RAK/Debug/../system/gps.c:214: undefined reference to `BoardDisableIrq'

/Users/sabas/Documents/workspace/RAK/Debug/../system/gps.c:223: undefined reference to `BoardEnableIrq'

system/i2c.o: In function `I2cReadBuffer':

/Users/sabas/Documents/workspace/RAK/Debug/../system/i2c.c:116: undefined reference to `I2cMcuReadBuffer'

system/timer.o: In function `TimerStart':

/Users/sabas/Documents/workspace/RAK/Debug/../system/timer.c:88: undefined reference to `BoardDisableIrq'

/Users/sabas/Documents/workspace/RAK/Debug/../system/timer.c:92: undefined reference to `BoardEnableIrq'

/Users/sabas/Documents/workspace/RAK/Debug/../system/timer.c:128: undefined reference to `BoardEnableIrq'

system/timer.o: In function `TimerStop':

/Users/sabas/Documents/workspace/RAK/Debug/../system/timer.c:248: undefined reference to `BoardDisableIrq'

/Users/sabas/Documents/workspace/RAK/Debug/../system/timer.c:259: undefined reference to `BoardEnableIrq'

/Users/sabas/Documents/workspace/RAK/Debug/../system/timer.c:330: undefined reference to `BoardEnableIrq'

system/timer.o: In function `TimerGetValue':

/Users/sabas/Documents/workspace/RAK/Debug/../system/timer.c:363: undefined reference to `RtcGetElapsedAlarmTime'

system/timer.o: In function `TimerGetCurrentTime':

/Users/sabas/Documents/workspace/RAK/Debug/../system/timer.c:368: undefined reference to `RtcGetTimerValue'

system/timer.o: In function `TimerGetElapsedTime':

/Users/sabas/Documents/workspace/RAK/Debug/../system/timer.c:373: undefined reference to `RtcComputeElapsedTime'

system/timer.o: In function `TimerSetTimeout':

/Users/sabas/Documents/workspace/RAK/Debug/../system/timer.c:384: undefined reference to `RtcGetAdjustedTimeoutValue'

/Users/sabas/Documents/workspace/RAK/Debug/../system/timer.c:385: undefined reference to `RtcSetTimeout'

system/timer.o: In function `TimerLowPowerHandler':

/Users/sabas/Documents/workspace/RAK/Debug/../system/timer.c:399: undefined reference to `GetBoardPowerSource'

/Users/sabas/Documents/workspace/RAK/Debug/../system/timer.c:401: undefined reference to `RtcEnterLowPowerStopMode'

system/crypto/cmac.o: In function `AES_CMAC_Init':

/Users/sabas/Documents/workspace/RAK/Debug/../system/crypto/cmac.c:60: undefined reference to `memset1'

/Users/sabas/Documents/workspace/RAK/Debug/../system/crypto/cmac.c:62: undefined reference to `memset1'

system/crypto/cmac.o: In function `AES_CMAC_Update':

/Users/sabas/Documents/workspace/RAK/Debug/../system/crypto/cmac.c:78: undefined reference to `memcpy1'

/Users/sabas/Documents/workspace/RAK/Debug/../system/crypto/cmac.c:93: undefined reference to `memcpy1'

/Users/sabas/Documents/workspace/RAK/Debug/../system/crypto/cmac.c:95: undefined reference to `memcpy1'

/Users/sabas/Documents/workspace/RAK/Debug/../system/crypto/cmac.c:101: undefined reference to `memcpy1'

system/crypto/cmac.o: In function `AES_CMAC_Final':

/Users/sabas/Documents/workspace/RAK/Debug/../system/crypto/cmac.c:110: undefined reference to `memset1'

/Users/sabas/Documents/workspace/RAK/Debug/../system/crypto/cmac.c:148: undefined reference to `memcpy1'

/Users/sabas/Documents/workspace/RAK/Debug/../system/crypto/cmac.c:150: undefined reference to `memset1'

collect2: error: ld returned 1 exit status

make: *** [RAK.elf] Error 1

 

Thanks for your help

Outcomes