Closed yennster closed 3 years ago
Sounds like it's probably the same root cause as https://github.com/ARMmbed/mbed-os/issues/6578 . [Mirrored to Jira]
@ARMmbed/team-nxp Please review [Mirrored to Jira]
@ARMmbed/team-nxp Any update on this? [Mirrored to Jira]
Have you configure it? I meet something like this
@maclobdell Is this on your radar?
@yennster thank you for raising this issue.Please take a look at the following comments:
Could you add some more detail to the description? A good description should be at least 25 words. What target(s) are you using? What toolchain(s) are you using? What version of Mbed OS are you using (tag or sha)? It would help if you could also specify the versions of any tools you are using? How can we reproduce your issue?
NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'.This indicates to us that at least all the fields have been considered. Please update the issue header with the missing information, the issue will not be mirroredto our internal defect tracking system or investigated until this has been fully resolved.
We've updated our automation, I will fix the requirements .
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. Internal Jira reference: https://jira.arm.com/browse/IOTOSM-2455
We closed this issue because it has been inactive for quite some time and we believe it to be low priority. If you think that the priority should be higher, then please reopen with your justification for increasing the priority.
Description of defect
I'm observing an MbedOS hard fault when using the LocalFileSystem and wait(). I added a wait() command inside a loop that was writing multiple values to a CSV file. The hard fault seemed to occur when the wait() function was called.
Target(s) affected by this defect ?
LPC1768
Toolchain(s) (name and version) displaying this defect ?
GCC_ARM & Online Compiler
What version of Mbed-os are you using (tag or sha) ?
n/a
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
gcc-arm-none-eabi-7-2017-q4-major
mbed-cli version: 1.5.0
How is this defect reproduced ?
I wrote up a simple
LocalFileSystem
example for the Mbed Application board that writes 100 integer values to a .csv file:The above code works and a
TEST.CSV
file is created in the local filesystem with integer values 0-99. However, when I add await
function to thefor
loop, the MbedOS Fault Handler is triggered:No values are stored into the csv file as the application doesn't get to
fclose(fp);
Expected behavior That the fault handler is not triggered and the for loop waits for 0.05 seconds, then saves a test.csv file with the 100 integer values.
Actual behavior Output to the serial terminal of the Fault Handler error message: