By any chance did you figure it out?
I am running to the same problem once I compiled the program on different machine. I believe it has to do with some of the following requirement
Nano Series HW
- sdcc version 2.6.0 or later with large-stack-auto library
Micro Series or TelosB HW
- msp430-gcc version 3.2.3 or later
- msp430-binutils version 2.16.1 with MSP430F1611 support patches or later
Common
- glibc
- gcc
- make
- tar
- textutils
- grep
- glibc development headers and libraries
- minicom or other serial port terminal program
- rpm or dpkg for microcontroller tool installation
- doxygen for rebuilding NanoStack references
- a USB port + FTDI USB drivers (part of the standard Linux kernel)
I will let you know if i find something.
Mo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
we are trying to install nanostack and in the last step of the installation manual we have this error:
------------------------------------------------------------------------------------------------------
$ make
--- Depend done ---
Compile: ../../Platform/nano/rf.c to segment --codeseg CSEG
sdcc --codeseg CSEG -c -DMANUAL_DMA_TRIG -DSTACK_RING_BUFFER_MODE -DGPIO_MODEL=1
-DRF_ACK_HW -DRF_DEFAULT_POWER=100 -DRF_DEFAULT_CHANNEL=18 -DHAVE_RF_DUAL_LED -
DHAVE_RF_LED -DSTACK_BUFFERS_MAX=8 -DSTACK_BUFFERS_MIN=8 -DDEBUG_RX_LEN=24 -DDEB
UG_TX_LEN=64 -DAD_HOC_STATE -DMAC_FFD -DHAVE_ROUTING -DNEIGHBOR_MAX=20 -DROUTE_M
AX=20 -DSHORT_ADDRESS=0x4444 -DPAN_CHANNEL=18 -DNO_FCS -DHAVE_DEBUG -DDEBUG_UART
=1 -DHAVE_UART1 -DHAVE_NANOMESH -DAPP_ICMP_ECHO -DAPP_UDP_ECHO -DAPP_ECHO -DHAVE
_ROUTING -DHAVE_ICMP -DHAVE_MAC_15_4 -DHAVE_CIPV6 -DHAVE_CUDP -DconfigUSE_TICK
_HOOK=0 --model-large --stack-auto -DSDCC_CC2430 -I. -I../../FreeRTOS/Source/in
clude -I../../Common/include -I../../Platform/nano/include -DHAVE_SDCC_BANKING
--std-sdcc99 -I. ../../Platform/nano/rf.c -o .rels/build/nano_example_n120/../.
./Platform/nano/rf.rel
../../Platform/nano/rf.c:372: error 47: indirections to different types assignme
nt
from type 'volatile-int xdata-xdata* '
to type 'unsigned-char xdata* '
make: *** [.rels/build/nano_example_n120/../../Platform/nano/rf.rel] Error 1
------------------------------------------------------------------------------------------------------
We have installed Nanostack v1.1.0 and sdcc v2.8.3. Could anybody help us?
thanks a lot
JoNoe
It's the casting problem I had to change the cast type on Line 372 file rf.c to the following
ptr = (unsigned char xdata*)&IEEE_ADDR0;
Let me know if that fixed your problem
Hello,
The problem was solved, but a new error appeared:
-----------------------------------------------------------------------------------------------------------------------
--- Build done ---
sdcc --model-large --stack-auto --code-size 0x20000 -Wl-bCSEG=0x000000 -Wl-bBANK
1=0x018000 -Wl-bBANK2=0x028000 -Wl-bBANK3=0x038000 -Wl-r -Wl-t=bankproxy_templat
e.rel --xram-loc 57344 --xram-size 8192 -o nano_example_n120.hex .rels/build/nan
o_example_n120/main.rel .rels/build/nano_example_n120/../../FreeRTOS/Source/task
s.rel .rels/build/nano_example_n120/../../FreeRTOS/Source/queue.rel .rels/build/
nano_example_n120/../../FreeRTOS/Source/list.rel .rels/build/nano_example_n120/.
./../Platform/nano/port.rel .rels/build/nano_example_n120/../../FreeRTOS/Source/
portable/MemMang/heap_2.rel .rels/build/nano_example_n120/../../Platform/nano/bu
s.rel .rels/build/nano_example_n120/../../Platform/nano/mac.rel .rels/build/nano
_example_n120/../../Platform/nano/timer.rel .rels/build/nano_example_n120/../../
Platform/nano/dma.rel .rels/build/nano_example_n120/../../Platform/nano/rf.rel .
rels/build/nano_example_n120/../../Platform/nano/debug.rel .rels/build/nano_exam
ple_n120/../../Platform/nano/uart.rel .rels/build/nano_example_n120/../../Common
/module.rel .rels/build/nano_example_n120/../../Common/socket.rel .rels/build/na
no_example_n120/../../Common/stack.rel .rels/build/nano_example_n120/../../Commo
n/routing.rel .rels/build/nano_example_n120/../../Common/protocol_lib.rel .rels/
build/nano_example_n120/../../Common/modules/nano_mesh.rel .rels/build/nano_exam
ple_n120/../../Common/modules/icmp.rel .rels/build/nano_example_n120/../../Commo
n/modules/mac_15_4.rel .rels/build/nano_example_n120/../../Common/modules/cIPv6.
rel .rels/build/nano_example_n120/../../Common/modules/cUDP.rel
Invalid option
make: *** [nano_example_n120.hex] Error 1
------------------------------------------------------------------------------------------------------------------------
Thanks a lot again.
By any chance did you figure it out?
I am running to the same problem once I compiled the program on different machine. I believe it has to do with some of the following requirement
Nano Series HW
- sdcc version 2.6.0 or later with large-stack-auto library
Micro Series or TelosB HW
- msp430-gcc version 3.2.3 or later
- msp430-binutils version 2.16.1 with MSP430F1611 support patches or later
Common
- glibc
- gcc
- make
- tar
- textutils
- grep
- glibc development headers and libraries
- minicom or other serial port terminal program
- rpm or dpkg for microcontroller tool installation
- doxygen for rebuilding NanoStack references
- a USB port + FTDI USB drivers (part of the standard Linux kernel)
I will let you know if i find something.
Mo