Open akioolin opened 7 years ago
Thank for your report. I confirmed that it's a bug.
By the way, I revised the subject of this issue. Hard fault occurred in this situation results from that system is unable to handle usage fault anymore.
Thank you very much.
Is this easy to solve?
if I want to add new command, micropython porting could be a good starting point or not?
@akioolin , I answer this question, "Is this easy to solve", first. It might be easy to just fix this bug, but however, it's better to refactor shell command parser first.
Micropython porting is worked in place by @mlouielu. Please see #16 .
Dear, piko-RT developer: Excuse me, i am novice about ARM and OS. May i ask some questions about this issue, Thank you very much.
For now piko-RT. this issue will output the below information
$ ls
1 .
1 ..
2 dev
3 proc
$ ls -l
$ ls
1 .
1 ..
2 dev
3 proc
#UsageFault
r0: 00000000 r1: 00003e52 r2: 00000002 r3: 00000014
r4: 00000008 r5: 2000122c r6: 00000000 r7: 00000002
r8: 00003e52 r9: 00000000 r10: 00000000 r11: 00000000
r12: 00000000 sp: 20008f98 lr: 00003323 pc: 00002ce2
EXC_RETURN: fffffff1
ufsr: 00000000
i know this issue is ls.c can't parse "ls -l". but, i have the below problems.
hello, pikoRT developer:
Thank you for create this wonder land.
the following is how to generate the fault which i meet.
after OS boot sequence complete, the prompt will be displayed. type the below 'ls' operation, will cause system hang up.
step 1. type 'ls' step 2. type 'ls -l' step 3. type 'ls'
the system will show the message like below:
for trying to understand the 'ls' command's flow, i try to add come code in the below code piece.
the question is after step 3., the system will hang on. what is the root cause of this problem? how to fix this problem?
Thank you very much.
BR, Akio