Hi,
For CMU_FC_14, CMU_FC_15, and CMU_FC_21, the reference LFREF and HFREF values are too high to match the calculated values.
In sBoot_PtocmuFcArray, LFREF starts with zero.
I have observed that, with the minimum frequency as zero, LFREF can be 3. not zero.
Providing below reference values from the debugger.
sBoot_PtocmuFcArray values - where the calculated HFREF(sBoot_maxFreqsArray ) & LFREF(Boot_minFreqsArray) are being compared with .
Providing HFREF & LFREF calculations below.
clock monotor | FIRC_CLF | Fref ~% | F ref MHz | Monitored clock | Fmon ~% | BusClock | F mon,F bus MHz | RCCR[REF_CNT] | Fmon_var_Max | Fmon_var_Min | Fref_var_Max | Fref_var_Min | HTCR[HFREF] | LTCR[LFREF] | |
10 | CMU_FC_14_GMAC0_TX_CLK | FXOSC_CLK | 0.005 | 40 | GMAC0_TX_CLK | 5 | GMAC0_TX_CLK | 9.6 | 80 | 10.08 | 9.12 | 40.002 | 39.998 | 24 | 15 |
11 | CMU_FC_15_GMAC_TS_CLK | FXOSC_CLK | 0.005 | 40 | GMAC0_TS_CLK | 5 | GMAC0_TS_CLK | 9.6 | 80 | 10.08 | 9.12 | 40.002 | 39.998 | 24 | 15 |
16 | CMU_FC_21_GMAC0_RX_CLK | FXOSC_CLK | 0.005 | 40 | GMAC0_RX_CLK | 5 | GMAC0_RX_CLK | 25 | 80 | 26.25 | 23.75 | 40.002 | 39.998 | 56 | 44 |
Above are the HFREF and LFREF values as per my calculations.
Table. Comparison between calculated values vs sBoot_PtocmuFcArray
Calculated values | sBoot_PtocmuFcArray values | ||
HFREF | LFREF | HFREF | LFREF |
24 | 15 | 16777215 | 0 |
24 | 15 | 16777215 | 0 |
56 | 44 | 16777215 | 0 |
The reference values cannot be achieved even with the higher frequencies.
This might not be a calculation issue, as the same formula has been applied to the remaining CMU_FCs and those got passed.
Is this an issue in plugins/configurations???
Hi, Irshad2225
Thank you for contacting us.
Refer to your picture, it is unable for current CMU if the FCE=0. In addition, The REF_CNT value is 0.
BR
Joey
hi, Irshad2225
Thank you for your information.
I understand what you mean. Since these API in Safety are for customers to use, in order to better support you in debugging and identifying problems, could you share your code?
You can provide this information easier by creating a new case at: https://support.nxp.com.
Can attach this link: Safety Sboot CMU FC testing - plugin HFREF and LFREF ref values are not as per the calculations - NX... inter to the new ticket.
BR
Joey
hi,Irshad2225
Thank you for your information.
According to The manual, The sBoot software does not require any initialization function to be called during start_up. However, Software drivers for the PMIC and it's communication interface must be present in the system and properly initialized before sBoot can start testing the FCCU error output
pins.
Hope it can help you.
BR
Joey