lpcxpresso54628_spifi_polling_transfer and double BOARD_InitBootClocks()

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lpcxpresso54628_spifi_polling_transfer and double BOARD_InitBootClocks()

893 Views
giusloq
Contributor III

I'm studying lpcxpresso54628_spifi_polling_transfer SDK demo project.

I noticed there are two calls to BOARD_InitBootClocks(). Are they necessary or the second call is an error that doesn't cause any issue? Please note that the comments are different.

    BOARD_InitBootClocks(); /* Boot up FROHF96M for SPIFI to use*/
    BOARD_InitBootClocks(); /* Core clock boot to 220Mhz*/

Another question. There's also another strange instruction:

    /* attach 12 MHz clock to SPI3 */
    CLOCK_AttachClk(kFRO12M_to_FLEXCOMM9);

Why the presence of this instruction? It seems to me FLEXCOMM9 isn't used in this project.

0 Kudos
Reply
1 Reply

873 Views
nxf77486
NXP TechSupport
NXP TechSupport

Hello @giusloq ,

 

Thank you for noticing this, I would consult our SDK team in order to obtain information about this. And if this should be corrected I would let you know ASAP. Please let me know if you have any other question.

0 Kudos
Reply