-
Notifications
You must be signed in to change notification settings - Fork 3k
GR_LYCHEE,RZ_A1H,VK_RZ_A1H: Fix greentea test failure with ARMC6 #10782
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
Conversation
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
How do we know 380 bytes is sufficient? I am missing information in the commit.
Without going in details how are functions implemented, how is adding |
I actually tried running the test. It failed at 360 bytes and succeeded at 370 bytes. It added 10 bytes as a margin and became 380 bytes.
It is a function to initialize the argument regset. All macro values used in the function are 0. static void clear_spimd_reg(volatile st_spibsc_spimd_reg_t * regset)
{
/* ---- command ---- */
regset->cde = SPIBSC_OUTPUT_DISABLE;
regset->cdb = SPIBSC_1BIT;
regset->cmd = 0x00;
/* ---- optional command ---- */
regset->ocde = SPIBSC_OUTPUT_DISABLE;
regset->ocdb = SPIBSC_1BIT;
regset->ocmd = 0x00;
/* ---- address ---- */
regset->ade = SPIBSC_OUTPUT_DISABLE;
regset->addre = SPIBSC_SDR_TRANS; /* SDR */
regset->adb = SPIBSC_1BIT;
regset->addr = 0x00000000;
/* ---- option data ---- */
regset->opde = SPIBSC_OUTPUT_DISABLE;
regset->opdre = SPIBSC_SDR_TRANS; /* SDR */
regset->opdb = SPIBSC_1BIT;
regset->opd[0] = 0x00; /* OPD3 */
regset->opd[1] = 0x00; /* OPD2 */
regset->opd[2] = 0x00; /* OPD1 */
regset->opd[3] = 0x00; /* OPD0 */
/* ---- dummy cycle ---- */
regset->dme = SPIBSC_DUMMY_CYC_DISABLE;
regset->dmdb = SPIBSC_1BIT;
regset->dmcyc = SPIBSC_DUMMY_1CYC;
/* ---- data ---- */
regset->spide = SPIBSC_OUTPUT_DISABLE;
regset->spidre = SPIBSC_SDR_TRANS; /* SDR */
regset->spidb = SPIBSC_1BIT;
/* ---- Others ---- */
regset->sslkp = SPIBSC_SPISSL_NEGATE; /* SPBSSL level */
regset->spire = SPIBSC_SPIDATA_DISABLE; /* read enable/disable */
regset->spiwe = SPIBSC_SPIDATA_DISABLE; /* write enable/disable */
} [Test result]
|
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.
LGTM
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.
Looks good !
Rerunning CI to ensure results are not stale |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
Fix for issue #10729
Fix the following test failures.
tests-mbed_drivers-crc
The task stack is insufficient. It succeeded when it increased from 320 bytes to 380 bytes.
Change file : mbed-os\TESTS\mbed_drivers\crc\main.c
tests-mbed_drivers-flashiap and tests-mbed_hal-flash
The flash driver process needs to be located in RAM, but the function "clear_spimd_reg()" has been replaced with "memset()" located in ROM due to the effect of optimization.
The function "clear_spimd_reg()" has been changed to not be affected by optimization.
Change file : mbed-os\targets\TARGET_RENESAS\TARGET_RZ_A1XX\flash.c
Pull request type
Reviewers
Release Notes