I am working on an AVB project.
I have defined:
Code: Select all
#define AVB_NUM_CHANNELS_LISTENER 8
Now to my problem.
If I define:
Code: Select all
#define AVB_NUM_CHANNELS_LISTENER 2
Code: Select all
-------8<------- from ---- void send_buf_ctl_info(...) ---- out of ---- media_clock_client.xc-------8<-------
slave {
buf_ctl :> buf_;
// simple_printf("S send_buf_ctl_info: pre tmr %d %d %d\n",core_id, tmr, buf_);
tmr :> thiscore_now; // ILLEGAL RESOURCE EXCEPTION
// simple_printf("S send_buf_ctl_info: post tmr %d\n", thiscore_now);
buf_ctl <: thiscore_now;
buf_ctl <: active;
buf_ctl <: ptp_ts;
buf_ctl <: local_ts;
buf_ctl <: rdptr;
buf_ctl <: wrptr;
buf_ctl <: core_id;
}
-------8<-------------------------------------8<-------
Code: Select all
-------8<------- from ---- void manage_buffer(...) ---- out of ---- media_clock_server.xc-------8<-------
master {
buf_ctl <: 0;
// simple_printf("M manage_buffer: pre tmr %d %d %d \n", tmr,thiscore_now,othercore_now);
buf_ctl :> othercore_now;
tmr :> thiscore_now;
// simple_printf("M manage_buffer: post tmr %d %d %d \n", tmr,thiscore_now,othercore_now);
buf_ctl :> locked;
buf_ctl :> presentation_timestamp;
buf_ctl :> outgoing_timestamp_local;
buf_ctl :> rdptr;
buf_ctl :> wrptr;
buf_ctl :> server_core_id;
}
-------8<-------------------------------------8<-------
The tmr variable in SLAVE always has a value of 513, but when the exception occurs, it is way higher > 20000, and never the same value.
I don't know where to look anymore.
My suggestion is, that somewhere is a define that causes trouble? I didn't find it yet.
Has anyone any suggestions?