cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding TSN Support in STM32N657x boards

Aks
Associate III
Post edited by ST moderator to be inline with the community rules especially with the code sharing. In next time please use </> button to paste your code. Please read this post: How to insert source code

Hello
 
We would like to inquire whether the STM32N6570-DK board and the NUCLEO-N657X0-Q board support Ethernet TSN (Time-Sensitive Networking). Additionally, we would like to know if there are any STM-provided drivers or libraries for Ethernet TSN for these boards. If such resources are available, we would appreciate it if you could share them with us.
Currently, we are working on Ethernet transmit and receive functionality on the NUCLEO-N657X0-Q board using the driver generated from STM32CubeMX. However, we are encountering a HardFault when attempting to transmit in interrupt mode. The code execution jumps to the HardFault handler at the following segment in ETH_Prepare_Tx_Descriptors:
if (txbuffer->next != NULL)
{
txbuffer = txbuffer->next;
/* Set buffer 2 address */
WRITE_REG(dmatxdesc->DESC1, (uint32_t)txbuffer->buffer);
/* Set buffer 2 Length */
MODIFY_REG(dmatxdesc->DESC2, ETH_DMATXNDESCRF_B2L, (txbuffer->len << 16));
}.
We have attached our code files for your reference and would greatly appreciate any guidance or suggestions to resolve this issue.
 
Thanks & regards
Akshitha Pattem
2 REPLIES 2
STackPointer64
ST Employee

Hello @Aks,

To assist you better, could you please answer the following questions:

  • Is your application running in Secure, Non-Secure, or FSBL mode?
  • Where are your descriptors located in your Ethernet configuration?
  • Are you using an Ethernet stack like NetXDuo, or are you handling everything using HAL?
  • Could you provide a screenshot of the call stack when the hard fault occurs?
  • Finally, if possible, please provide your STM32CubeMX IOC configuration so I can review it.

Best regards,

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.
STackPointer64
ST Employee

As for TSN, it is supported by the hardware; however, unfortunately, there is currently no driver provided by ST. You can check the reference manual for more details.

Additionally, you may find the following knowledge base article helpful for running a bare-metal Ethernet application, as it provides useful tips:

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.