evkbimxrt1050_aws_remote_control_enet example disables D-Cache

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

evkbimxrt1050_aws_remote_control_enet example disables D-Cache

1,227 Views
xiaofengwei
Contributor I

Note that evkbimxrt1050_aws_remote_control_enet example disables D-Cache by calling SCB_DisableDCache() in main() function. We wanna enable it to promote performance in our project, but we met net issue. How to fix it. BTW, using SDRAM in our project. 

Labels (1)
3 Replies

881 Views
nxf33309
NXP Employee
NXP Employee

Hello Xiaofeng Wei,

There is a fix for the ENET device with cache enabled inside the Zephyr project:

https://github.com/zephyrproject-rtos/zephyr/pull/12465/files#diff-4f204428de40f14c13a499d4f08473f4

Fix explanation can be found here:

https://github.com/zephyrproject-rtos/zephyr/pull/12465#issuecomment-455715953

Regards,

Andrei

881 Views
xiaofengwei
Contributor I

Hi Kerry,

SDK version: SDK_2.6.0_EVKB-IMXRT1050

Modified: Deleted SCB_DisableDCache() from main() function.

Net issue: If modified as above, DHCP OK, but the following mqtt communication failed. 

BTW, also find the following comments from SDK examples. How to explain it. Thanks.

/* Data cache must be temporarily disabled to be able to use sdram */
SCB_DisableDCache();
CRYPTO_InitHardware();

1.png

0 Kudos
Reply

881 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Xiaofeng wei ,

   What's the detail SDK version you are using? and what the detail point you have modified.

  After you modify it, what's the net issue you are meeting?

  Please give us more details about your net issue, and tell me how to reproduce the problem in nxp official sdk code.

Waiting for our updated  information.


Have a great day,
Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply