Menu

Compilation problem

jhnlrnt
2008-05-05
2013-04-29
  • jhnlrnt

    jhnlrnt - 2008-05-05

    I have NanostackV1.0.2 and I'd like compile "nano_router_n600" to program the nano_router_n601.
    I have this compilation error :

    johan@johan-laptop:/opt/sensinode/NanoStack-v1.0.2/Examples/nano_router_n600$ make binary

    --- Depend done ---

    Compile: ../../Platform/nano/rf_dma.c  to segment  --codeseg CSEG
    sdcc --codeseg CSEG -c -DHAVE_DYNAMIC_BUFFERS -DGPIO_MODEL=1 -DRF_DEFAULT_POWER=100 -DRF_DEFAULT_CHANNEL=18 -DHAVE_RF_LED=2 -DHAVE_RF_DMA -DSTACK_BUFFERS_MAX=8 -DSTACK_BUFFERS_MIN=4 -DDEBUG_RX_LEN=8 -DDEBUG_TX_LEN=64 -DAD_HOC_STATE -DMAC_RFD -DNEIGHBOR_MAX=20 -DNEIGHBOR_MIN=15 -DROUTE_MAX=20 -DROUTE_MIN=15 -DSHORT_ADDRESS=0x4444 -DPAN_CHANNEL=18 -DNWK_MAX_CHILD=15 -DNO_FCS -DAPP_ICMP_ECHO -DAPP_UDP_ECHO -DAPP_ECHO -DHAVE_NRP  -DHAVE_ICMP  -DHAVE_MAC_15_4 -DHAVE_CIPV6 -DHAVE_CUDP --model-large --stack-auto -DSDCC_CC2430  -I. -I../../FreeRTOS/Source/include -I../../Common/include -I../../Platform/nano/include  -DHAVE_SDCC_BANKING --std-sdcc99 -DNRP_UART_DMA -DNRP_UART_DMA_TX  -I. ../../Platform/nano/rf_dma.c -o .rels/build/nano_router_n600/../../Platform/nano/rf_dma.rel
    ../../Platform/nano/rf_dma.c:848: error 127: non-pointer type cast to generic pointer
    from type 'char'
    to type 'char generic* '
    make: *** [.rels/build/nano_router_n600/../../Platform/nano/rf_dma.rel] Error 1

    I've opened the rf_dma.c file and I don't see the error.

    Anyone can help me.

     
    • Paul E. Erkkila

      Paul E. Erkkila - 2008-05-05

      What version of SDCC are you using?

      I had a similar problem in a different file that I worked around with the (void *) hammer. I need to track down with version(s) of sdcc or options made it appear.

       
    • shelby

      shelby - 2008-05-06

      Hi Johan,

      Be sure to use the 2.7.0-2 version of SDCC with the banking patch included:

      http://sourceforge.net/project/platformdownload.php?group_id=213457

      Otherwise larger apps like nano_router_n600 won't compiler. I'm not fully sure that banking is the problem here, but the SDCC version may be.

      Please also try with NanoStack v1.0.3.

      Cheers,
      Zach

       
    • jhnlrnt

      jhnlrnt - 2008-05-13

      Thanks for the answer, the problem was with the 2.7.0-2 version of sdcc, I have compiled with the 2.7.0-3 version and it's ok

      Johan

       
    • Bertrand

      Bertrand - 2008-06-20

      Hello !

      I would like to compile nano_example_1xx but I have this error :

      --- Depend done ---

      Compile: main.c  to segment  --codeseg CSEG
      sdcc --codeseg CSEG -c -DHAVE_DYNAMIC_BUFFERS -DGPIO_MODEL=1 -DRF_ACK_HW -DRF_DE                              FAULT_POWER=100 -DRF_DEFAULT_CHANNEL=18 -DHAVE_RF_DUAL_LED -DHAVE_RF_LED -DHAVE_                              RF_DMA -DSTACK_BUFFERS_MAX=8 -DSTACK_BUFFERS_MIN=4 -DDEBUG_RX_LEN=8 -DDEBUG_TX_L                              EN=64 -DAD_HOC_STATE -DMAC_FFD -DNEIGHBOR_MAX=20 -DNEIGHBOR_MIN=15 -DROUTE_MAX=2                              0 -DROUTE_MIN=15 -DSHORT_ADDRESS=0x4444 -DPAN_CHANNEL=18 -DNWK_MAX_CHILD=15 -DNO                              _FCS -DHAVE_DEBUG -DDEBUG_UART=1 -DHAVE_UART1 -DAPP_ICMP_ECHO -DAPP_UDP_ECHO -DA                              PP_ECHO -DHAVE_ICMP  -DHAVE_MAC_15_4 -DHAVE_CIPV6 -DHAVE_CUDP --model-large --st                              ack-auto -DSDCC_CC2430  -I. -I../../FreeRTOS/Source/include -I../../Common/inclu                              de -I../../Platform/nano/include  -DHAVE_SDCC_BANKING --std-sdcc99  -I. main.c -                              o .rels/build/nano_example_n1xx/main.rel

      ../../Platform/nano/include/cc2430_sfr.h:47: syntax error: token -> '__at' ; col                              umn 11
      make: *** [.rels/build/nano_example_n1xx/main.rel] Erreur 1

      I'm using NanoStack 1.0.3 and SDCC 2.8.0

      I need some help, I don't understand the problem...

      Thanks !
      Bertrand

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.