This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VH-Q1: Sleep() function is not working properly in QNX.

Part Number: TDA4VH-Q1

Tool/software:

Hi Team,

I am using sleep(10) function in QNX, but wake up is happening within 8 sec.

We have already raised the QNX ticket regarding that and they have given the below inputs. 

Can you please give your input regarding that.

QNX reply:

================================================================================

in psqkqa ,   /code/hardware/startup/lib/aarch64/init_qtime_v8gt.c

aarch64/init_qtime_v8gt.c:      if (timer_freq == 0) {
aarch64/init_qtime_v8gt.c:              timer_freq = aa64_sr_rd32(cntfrq_el0);
aarch64/init_qtime_v8gt.c:      invert_timer_freq(qtime, timer_freq);
aarch64/init_qtime_v8gt.c:      qtime->cycles_per_sec = timer_freq;

Note, the actual configuration the value in the cntfrq_el0 is done by the uBoot, QNX just uses it to copute cycles_per_sec and its a generic code.

The actual core frequency in MHz can be read by calling this function from startup code "aarch64_cpuspeed()"

It will display frequency, please note, CPU frequency is not configured at startup. So, It could be set via uBoot/SCI firmware.

================================================================================

Thanks  & regards,

Veerahema