-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Realtek_RTL8195AM fix for debug profile #5044
Conversation
Use asm code to set MSP
The issue of mutex returning osErrorISR with debug profile is fixed
The default stack size is not enough for debug profile (low compiler optimization)
Clean rtl8195a_init.c a little bit
Hi @marcuschangarm , we fix the issue with debug profile with GCC on windows. I'm not sure if the issue with ARMCC/Linux is fixed since we don't have the compiler. Would you please give this PR a quick test? Many thanks. |
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
@Archcady Thank you for the fix. My test app is currently too large when using debug profile, so it might take me some time to shrink the test app enough to test this. |
Any estimate? |
Well, good news, bad news. 😄 I'm not seeing the problems I saw when compiling with debug profile. So thats great! Overall, I'm still seeing a lot of instability issues. My TLS client test connects successfully 50% of the time, the other times it fails on a socket error. When I run my large application, it crashes at random places. I'm also seeing this odd warning when linking:
|
Hi @marcuschangarm , those strange messages (Malformed input found when parsing GCC map: linker stubs) are coming from mbed-os\tools\memap.py. Looks like the MemapParser could not parse all the lines in .map file. The same messages are found when compile with ARMCC. |
Remove intermediate variances and use uint64 instead; Remove HalTimerIrqEn called in us_ticker.c
Hi @marcuschangarm , with this new commit, mbed-cloud-client-example-r-confidential is much stable now. I ran it for at least one hour without crash or hanging. |
Thank you! That is great news! I'm currently traveling, but I'll try it out as soon as I get back! |
/morph test-nightly |
Result: ABORTEDYour command has finished executing! Here's what you wrote!
|
/morph test-nightly |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
OutputAll builds and test passed! |
@0xc0170 there was another change since you last reviewed, could you take a quick re-review? |
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.
A couple of minor coding style issues which should be fixed in any subsequent PR but not going to block this one on them.
@@ -23,24 +23,33 @@ | |||
#define SYS_TIM_ID 1 // the G-Timer ID for System | |||
#define APP_TIM_ID 6 // the G-Timer ID for Application | |||
|
|||
#define TICK_TO_US(x) (uint64_t)(((x)/2) * 61 + ((x)%2) * TIMER_TICK_US) |
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.
An explanation of where '61' comes from would be useful here
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.
} | ||
|
||
void us_ticker_init(void) | ||
{ | ||
|
||
if (us_ticker_inited) return; | ||
if (us_ticker_inited){ |
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.
space required before '{'
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.
Also fixed in #5143
Previously Realtek_RTL8195AM is unable to run with debug profile, now the issue is resolved. Changes are:
Change MSP setting method in booting;
Update wlan libs to fix a mutex osErrorISR issue;
Increase tcpip thread stacksize;
Related PR:
#4665