why USB hid Disable DCache to run?

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

why USB hid Disable DCache to run?

804 Views
1920844004
Contributor III

SCB_DisableDCache(); 

i must use this code ,USB HID can run,if  Comment out ,USB HID CAN NOT   enumeration .

why? who can help me ?

*.scf is:

RW_m_data m_data_start m_data_size-Stack_Size-Heap_Size { ; RW data
.ANY (+RW +ZI)
*(m_usb_dma_init_data)
*(m_usb_dma_noninit_data)
}

RW_m_ncache m_ncache_start m_ncache_size { ; ncache RW data
* (NonCacheable.init)
* (NonCacheable)
}

0 Kudos
1 Reply

632 Views
igorpadykov
NXP Employee
NXP Employee

Hi zhihui

for explanation one can refer to comments from attached board.c

usb_host_hid_generic example:

void BOARD_ConfigMPU(void)
..
Above are normal use settings, if your want to see more details or want to
config different inner/outter cache policy.      
Please refer to Table 4-55 /4-56 in arm cortex-M7 generic user guide <dui0646b_cortex_m7_dgug.pdf>

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos