-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Demo: Cortex m4 mpu mps2 with qemu #868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| for( todo = 0; todo < len; todo++ ) | ||
| { | ||
| UART_DR( UART0_ADDR ) = *buf++; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
|
Looks reasonable. Can we easily target other mps2 SoCs with the same project? |
| CPPFLAGS += $(DEFINES) | ||
|
|
||
| CFLAGS += -mthumb | ||
| CFLAGS += -mfloat-abi=softfp |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Co-authored-by: Paul Bartell <[email protected]>
paulbartell
left a comment
There was a problem hiding this 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.
…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
* 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]>
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.