This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Team,
My customer has a question about CPSW. The i2331 errata says the following: Due to this errata, Ethernet boot should not be used on this device.
Errata link: https://www.ti.com/lit/pdf/sprz457
Best regards,
Mari
Hi Mari-san,
1. Yes, workaround is needed when CPSW is used in application.
Basically
* no workaround for boot so Ethernet boot can't be used at all
* for run-time usage of CPSW, customers needs to use workaround.
2. Regarding the workaround implementation -
Yes, your flow is correct. We will providing the implementation in our next SDK release (SDK8.4, planned on 15th of Sept).
Sharing the workaround pseudo code for reference.
+ rst_src = readl(0x04518178); // read CTRLMMR_RST_SRC register + printf("MCU_RST_SRC: 0x%x\n", rst_src); + + if (rst_src == COLD_BOOT || rst_src & (SW_POR_MCU | SW_POR_MAIN)) { + printf("do sw_mcu_warmrst now\n"); + + /* unlock mmr */ + writel(0x68ef3490, 0x04519008); + writel(0xd172bc5a, 0x0451900c); + + /* clear RST_SRC register */ + writel(0xFFFFFFFF, 0x04518178); + /* do sw_mcu_warmrst */ + writel(0x600, 0x04518170); + }
JIRA id for reference - [MCUSDK-4430] CPSW: Device lockup when reading CPSW registers - Texas Instruments JIRA (ti.com)
Regards,
Prasad
Hi Prasad,
Thanks for your quick response on 1&2. I will provide the pseudocode for my customer as well.
Let me know if you can answer 3 as well!
Best regards,
Mari
Hi Mari-San,
I send you the mail which has very detailed errata code (with lots of comments). You can use it to share with customer.
Regards,
Prasad
Mari-San,
Hope all your queries are resolved. I will close the thread.
Prasad
Hi Prasad,
Re-opening this thread as we received some feedback on the pseudocode. I sent you the feedback as well as a question regarding it via email. Could you take a look at it for me? Also updated the thread notes for your reference.
Best regards,
Mari
Hi Mari,
Sure, will have a look at your queries.
Meanwhile, can you please let me know if customer is using our SDK? Just wondering if we can share patch on MCU+ SDK which our SW team has already ready instead of customer applying it on their end.
Regards,
Prasad
Hi Prasad,
Yes, they are already waiting for the next patch so I believe they will be ok with it. But since we provided the pseudocode for their end, it would be best if we could give an answer their questions.
Best regards,
Mari
Hi Mari-San,
Pseudocode was only for reference and not for implementation as we don't want to spend efforts in debugging when we are already providing the implementation.
I talked to SBL expert and he will share patch by tomorrow which can directly be integrated.
Regards,
Prasad
Hi Prasad,
I understand. Can you ask the SBL expert to share the patch with me?
Best regards,
Mari
Hi Mari-San,
Closing the thread as patch was shared offline and confirmed to be working on customer board.
Regards,
Prasad
Hi Prasad,
our next SDK release (SDK8.4, planned on 15th of Sept).
Are there any changes regarding release date for the SDK or is it still Sep-15?
Best regards,
Mari Tsunoda
Hi Mari-san,
SDK release is delayed by 2 weeks and new date being tracked is 27th of Sept.
Regards,
Prasad