Menu

build errors

david
2017-05-11
2017-05-12
  • david

    david - 2017-05-11

    hi i followed the "Add FNET Stack to an existing project" instructions, and i get build errors when it's building the stack.

                 from ../Sources/fnet_stack/stack/fnet_arp.c:28:
    

    C:/Users/dAmmerlaan/Desktop/ringsensor/Ringsensor2/Sources/fnet_stack/stack/fnet_isr.h:53:57: error: unknown type name 'fnet_uint32_t'
    fnet_event_desc_t fnet_event_init(void (event_handler)(fnet_uint32_t cookie), fnet_uint32_t cookie);
    ^
    C:/Users/dAmmerlaan/Desktop/ringsensor/Ringsensor2/Sources/fnet_stack/stack/fnet_isr.h:53:80: error: expected ';', ',' or ')' before 'fnet_uint32_t'
    fnet_event_desc_t fnet_event_init(void (
    event_handler)(fnet_uint32_t cookie), fnet_uint32_t cookie);
    ^
    C:/Users/dAmmerlaan/Desktop/ringsensor/Ringsensor2/Sources/fnet_stack/stack/fnet_isr.h:55:30: error: unknown type name 'fnet_uint32_t'
    void fnet_isr_vector_release(fnet_uint32_t vector_number);
    ^
    C:/Users/dAmmerlaan/Desktop/ringsensor/Ringsensor2/Sources/fnet_stack/stack/fnet_isr.h:59:23: error: unknown type name 'fnet_uint32_t'
    void fnet_isr_handler(fnet_uint32_t vector_number);

    etccc

    looks like some include issue but i'm not sure

    thanks for any pointers
    david

     
  • david

    david - 2017-05-12

    hi Andrey,

    thakns. you're right that was the problem!

    now i have 1 more issue:

    'Building file: ../Sources/fnet_stack/port/cpu/mk/fnet_mk_low.S'
    'Invoking: Cross ARM GNU Assembler'
    arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -g3 -x assembler-with-cpp -MMD -MP -MF"Sources/fnet_stack/port/cpu/mk/fnet_mk_low.d" -MT"Sources/fnet_stack/port/cpu/mk/fnet_mk_low.o" -c -o "Sources/fnet_stack/port/cpu/mk/fnet_mk_low.o" "../Sources/fnet_stack/port/cpu/mk/fnet_mk_low.S"
    ../Sources/fnet_stack/port/cpu/mk/fnet_mk_low.S:24:41: fatal error: port/compiler/fnet_comp_asm.h: No such file or directory

    this loks like some relative path include issue.

    this is my user_config

    /**********/
    /!

    @file fnet_user_config.h

    @brief FNET User configuration file.
    It should be used to change any default configuration parameter.
    *
    ***********/

    ifndef FNET_USER_CONFIG_H

    define FNET_USER_CONFIG_H

    /***********
    Compiler support FNET_CFG_COMP_<name> is defined in project options.
    ***********
    /

    define FNET_CFG_COMP_GNUC (1)

    /***********
    Processor type FNET_CFG_CPU_<name> is defined in project options.
    ***********
    /
    #define FNET_CFG_CPU_MK64FN1 (1)

    /***********
    Default serial port number FNET_CFG_CPU_SERIAL_PORT_DEFAULT is defined
    in project options.
    ************/

    /***********
    IPv4 and/or IPv6 protocol support.
    ***********
    /

    define FNET_CFG_IP4 (1)

    define FNET_CFG_IP6 (1)

    /***********
    TCP protocol support.
    You can disable it to save a substantial amount of code if
    your application only needs UDP. By default it is enabled.
    ***********
    /

    define FNET_CFG_TCP (1)

    /***********
    UDP protocol support.
    You can disable it to save a some amount of code if your
    application only needs TCP. By default it is enabled.
    ***********
    /

    define FNET_CFG_UDP (1)

    /***********
    UDP checksum.
    If enabled, the UDP checksum will be generated for transmitted
    datagrams and be verified on received UDP datagrams.
    You can disable it to speedup UDP applications.
    By default it is enabled.
    ***********
    /

    define FNET_CFG_UDP_CHECKSUM (1)

    /***********
    IP fragmentation.
    If the IP fragmentation is enabled, the IP will attempt to reassemble IP
    packet fragments and will able to generate fragmented IP packets.
    If disabled, the IP will silently discard fragmented IP packets..
    ************/

    define FNET_CFG_IP4_FRAGMENTATION (1)

    /***********
    DHCP Client service support.
    ***********
    /

    define FNET_CFG_DHCP (1)

    /***********
    Auto-IP service support.
    ***********
    /

    define FNET_CFG_AUTOIP (1)

    /***********
    HTTP Server service support.
    ***********
    /

    define FNET_CFG_HTTP (1)

    define FNET_CFG_HTTP_AUTHENTICATION_BASIC (1) / Enable HTTP authentication./

    define FNET_CFG_HTTP_POST (1) / Enable HTTP POST-method support./

    /***********
    Telnet Server service support.
    ***********
    /

    define FNET_CFG_TELNET (1)

    /***********
    Flash Module driver support.
    ***********
    /

    define FNET_CFG_FLASH (1)

    /***********
    DNS client/resolver service support.
    ***********
    /

    define FNET_CFG_DNS (1)

    define FNET_CFG_DNS_RESOLVER (1)

    /***********
    Link-Local Multicast Name Resolution (LLMNR) server/responder support.
    ***********
    /

    define FNET_CFG_LLMNR (1)

    define FNET_CFG_LLMNR_HOSTNAME_TTL (2u)

    /***********
    Multicast DNS (mDNS) "Bonjour" server/responder support.
    ***********
    /

    define FNET_CFG_MDNS (1)

    /***********
    PING service support.
    ***********
    /

    define FNET_CFG_PING (1)

    /***********
    Link-Detection service support.
    ***********
    /

    define FNET_CFG_LINK (1)

    endif / FNET_USER_CONFIG_H /

     
  • Andrej Butok

    Andrej Butok - 2017-05-12

    Be sure that you have correct include paths in your project settings not only for C but also for Assembler.

     
  • david

    david - 2017-05-12

    yep, fixed it by copying what was in a demo project. now i'm good. thanks!

     

Log in to post a comment.