Looking at this question: How to burn BT_FUSE_SEL on RT1050
there is some code that should enable burning of the BT_FUSE_SEL and FORCE_INTERNAL_BOOT fuses. However, when I try and do the re-calculation for ipg_clk of 150 MHz, I stumpled upon what I think is an error in the original code ?
I have a feeling that the timings above are not correct (or, very likely, I'm misunderstanding the numbers/calculations) ?
From the comments in the code from the link above, they are calculated for ipg_clk of 132 MHz, but if I calculate the resulting timing values using formulas in the Users Manual for 132 MHz also,
I get the following:
Using the numbers above, I get:
189 nS for the WAIT (must be >= 150 nS) so ok.
22.7 nS for the RELAX (must be >= 100 nS) so NOT ok
7818 nS for the STROBE_PROG (must be >9000 and <11000) so NOT ok
30.3 nS for STROBE_READ (must be > 40 nS) so NOT ok.
I have checked the RELAX_READ and RELAX_PROG in TIMING2 register, and they are 3 and 146.
Am I totally mis-calculating this, or is there something wrong in the original code ?