Menu

MPC564xBC bug found

Steve
2014-07-16
2014-07-17
  • Steve

    Steve - 2014-07-16

    I've been testing out this s/w on the MPC5646C and have found the following bug.

    File "fnet_mpc_config.h" line 85

    #ifndef FNET_CFG_CPU_TIMER_VECTOR_NUMBER
    #if FNET_CFG_CPU_MPC5668G
        #define FNET_CFG_CPU_TIMER_VECTOR_NUMBER    (149+FNET_CFG_CPU_TIMER_NUMBER)
    
    #elif FNET_CFG_CPU_MPC564xBC    
        #if FNET_CFG_CPU_TIMER_NUMBER < 3
            #define FNET_CFG_CPU_TIMER_VECTOR_NUMBER    (59+FNET_CFG_CPU_TIMER_NUMBER)
        #else
            #define FNET_CFG_CPU_TIMER_VECTOR_NUMBER    (124+FNET_CFG_CPU_TIMER_NUMBER)
        #endif
    #endif
    #endif
    

    No brackets around the #if condition check.
    #if (FNET_CFG_CPU_TIMER_NUMBER < 3)

    If the Timer used was not defined in user code then the Max numbers of timers value is selected which in this case was 7 which was setting the ISR Vector number incorrectly.

     
  • Andrej Butok

    Andrej Butok - 2014-07-17

    This issue was solved in the following thread: https://sourceforge.net/p/fnet/discussion/920346/thread/4b891957/
    Also the brackets will be added.Thanks.

    BTW:
    I just curious, for what automative project you are going to use the MPC port of FNET.

     

    Last edit: Andrej Butok 2014-07-17

Log in to post a comment.