-
Notifications
You must be signed in to change notification settings - Fork 3k
Add FlashIAP support for REALTEK_RTL8195AM #4565
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
@Archcady can you share the test results of flash HAL API and flashIAP ? |
Hi @0xc0170, I test it with ARM, GCC_ARM and IAR and here's result with ARM compilers. All testes for all compilers are passed.
|
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
NRF52_DK-GCC_ARM.tests-mbedmicro-rtos-mbed-basic.tests-mbedmicro-rtos-mbed-basic - Failed /morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
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.
Can you please double check the code for mbed coding standards , plus some minor other comments
flash_turnon(); | ||
//obj->flash_size = FLASH_SIZE; | ||
//obj->sector_size = FLASH_SECTOR_SIZE; | ||
//obj->page_size = FLASH_PAGE_SIZE; | ||
|
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.
Why is this code commented out ?
{ | ||
u8 Status = 0; | ||
if (address < FLASH_START || address >= FLASH_END) | ||
return (uint32_t)-1; |
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.
Is this value being returned as an error value ? If this is the case, would an explicit sector size of 0 not be better in this case ?
{ | ||
if (!SpicFlashInitRtl8195A(SpicOneBitMode)){ | ||
|
||
DBG_8195A("SPI Init Fail!!!!!!\n"); |
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.
Is this debug code meant to be left in ?
if(flashtype == FLASH_MICRON){ | ||
SpicWaitOperationDoneRtl8195A(flashobj.SpicInitPara); | ||
} else | ||
{ |
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.
should this { be on the else line ?
*ptr = *pbuf; | ||
pbuf++; | ||
ptr++; | ||
} |
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 like your formatting has gone a bit funny here ?
int flash_stream_write(flash_t *obj, uint32_t addr, uint32_t len, uint8_t *data){ | ||
return flash_ext_stream_write(obj, addr, len, data); | ||
} | ||
|
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.
Above two functions '{' should be on newline
Thanks @adbridge @theotherjimmy , I've add a coding style patch for this. |
LGTM |
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
retest uvisor |
/morph test |
Result: FAILUREYour command has finished executing! Here's what you wrote!
OutputTest failed! |
retest uvisor |
Morph test failed for |
/morph test |
1 similar comment
/morph test |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
Port REALTEK flash APIs to mbed, add FlashIAP support for REALTEK_RTL8195AM