Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@alfred2g
Copy link
Contributor

@alfred2g alfred2g commented Nov 3, 2022

Demo: Cortex m4 mpu mps2 with qemu

Description

Demo: Cortex m4 mpu mps2 with qemu

Test Steps

manual testing with qemu

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@alfred2g alfred2g requested a review from a team as a code owner November 3, 2022 12:33

for( todo = 0; todo < len; todo++ )
{
UART_DR( UART0_ADDR ) = *buf++;
Copy link
Contributor

Choose a reason for hiding this comment

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

Semihosting is enabled, so perhaps that would be a better option for stdout?

Copy link
Contributor

Choose a reason for hiding this comment

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

Regardless, this code would likely drop random bytes on real hardware once the FIFO is full (1-byte on this platform).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

doesn't really matter, as this demo does not print anything, it has to be monitored with gdb

Copy link
Contributor

Choose a reason for hiding this comment

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

So perhaps this should be stubbed out then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we do have a print somewhere on error, and I prefer to keep it this way in case someone copies it, as it would be complete

@paulbartell
Copy link
Contributor

paulbartell commented Nov 3, 2022

Looks reasonable. Can we easily target other mps2 SoCs with the same project?

CPPFLAGS += $(DEFINES)

CFLAGS += -mthumb
CFLAGS += -mfloat-abi=softfp
Copy link
Contributor

Choose a reason for hiding this comment

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

do we want soft or hard fp? Perhaps we should build a few different variants.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the M3 is running with hard,
i had some problems running this one with hard, so did it with soft

@alfred2g alfred2g requested a review from paulbartell November 3, 2022 18:14
Copy link
Contributor

@paulbartell paulbartell left a comment

Choose a reason for hiding this comment

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

Semihosting usage appears to be broken here and calling printf fails. This need to be addressed prior to merging.

@alfred2g alfred2g requested a review from paulbartell November 8, 2022 18:01
moninom1 pushed a commit to moninom1/FreeRTOS that referenced this pull request Jun 27, 2023
…RTOS#868)

* pxDuplicateNetworkBufferWithDescriptor

* pxUDPPayloadBuffer_to_NetworkBuffer NULL

* Add IPv4 Utils

* Add description for unit test and separate IP_Utils/IPv4_Utils

* usGenerateProtocolChecksum

* prvChecksumProtocolCalculate

* Add description of test cases

* pxUDPPayloadBuffer_to_NetworkBuffer & prvProcessNetworkDownEvent & usGenerateProtocolChecksum

* usGenerateProtocolChecksum

* Full coverage

* Remove dedundant include

* Code beautify

* IPv4_Utils full coverage

* Remove redundant include in IPv4_Utils unit test

* Fix IPv4 UT building

* Fix spelling.

* Add macro for minimum TCP offset.

* Fix doxygen

* Fix again

* Move Stub functions to _stubs.c and fix compile warning

* Update diffconfig UT
every-breaking-wave pushed a commit to every-breaking-wave/FreeRTOS that referenced this pull request Nov 15, 2024
* Update xTaskGetIdleTaskHandle() in SMP

This commit updates xTaskGetIdleTaskHandle() for SMP in the following ways:

- xTaskGetIdleTaskHandle() no longer accepts xCoreID argument in SMP so that
there is not change in API between single-core and SMP
- xTaskGetIdleTaskHandle() now returns the Active idle task handle in SMP,
which matches the behavior in single-core.
- Added xTaskGetIdleTaskHandleForCore() in SMP which accepts an xCoreID
argument. This function can be used to obtain the Passive idle task handles.

* Update xTaskGetIdleTaskHandle

---------

Co-authored-by: Ching-Hsin Lee <[email protected]>
Co-authored-by: chinglee-iot <[email protected]>
Co-authored-by: Rahul Kar <[email protected]>
Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>
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.

4 participants