Skip to content

Conversation

@cruxic
Copy link
Contributor

@cruxic cruxic commented Sep 27, 2024

A fix for issue #1193.

Note: although I have an ATSAME53 board, I have not compiled or executed the code in this pull-request. My own project uses a customized version of this code.

I also noticed that this same bug exists in the MSP432 driver. This pull-request does not fix that.

@cruxic cruxic requested a review from a team as a code owner September 27, 2024 18:25
Copy link
Member

@jasonpcarroll jasonpcarroll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @cruxic ,
Thank you for this PR. Looks fine to me. I do not currently have an ATSAME5x with me - would you mind running this version of your code in your project and verifying that it works?

Copy link
Contributor

@htibosch htibosch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please have a look at this slightly modified version:

NetworkInterface.new.v2.zip

if( pxIPPacket->xIPHeader.ucProtocol == ( uint8_t ) ipPROTOCOL_ICMP )
{
* It must therefore be implemented in software. */
if ( isICMP(pxBufferDescriptor) ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The if statement expects a boolean value. The function isICMP() returns an integer value. The only way to satisfy the compiler is as follows:

if( isICMP( pxBufferDescriptor ) == pdTRUE )
{
}

@cruxic
Copy link
Contributor Author

cruxic commented Sep 30, 2024

Hi @cruxic , Thank you for this PR. Looks fine to me. I do not currently have an ATSAME5x with me - would you mind running this version of your code in your project and verifying that it works?

I'm not able to execute this code directly, because I'm using a heavily modified version of the code. The code included in FreeRTOS+TCP is based on ATMEL ASF libraries, which is deprecated since Microchip acquired ATMEL.

@aggarg aggarg merged commit 7c8f339 into FreeRTOS:main Oct 1, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants