Thanks Daniel,you are right
The example can be compiled .
What happens is that it works just partially:
Debugging it looks that the code stops in PE_ISR(Cpu_ivINT_Hard_Fault);
Makin it run ,the code performs various steps,but it looks that it restarts from reset,i wrote printf("PE_LL_init"); right after PE_low_level_init();
As you can see after "Test done!" it repeats the initial string.
PE_LL_init
USB MSD Command test
Waiting for USB mass storage to be attached...
Mass Storage Device Attached
================ START OF A NEW SESSION ================
Testing: GET MAX LUN Command..........................OK
Testing: TEST UNIT READY Command......................OK
Testing: REQUEST SENSE Command......................OK
Testing: INQUIRY Command......................OK
Testing: REQUEST SENSE Command......................OK
Testing: READ CAPACITY Command......................OK
Testing: REQUEST SENSE Command......................OK
Testing: READ FORMAT CAPACITIES Command......................OK
Testing: REQUEST SENSE Command......................OK
Testing: MODE SENSE Command......................OK
Testing: PREVENT-ALLOW MEDIUM REMOVAL Command......................OK
Testing: REQUEST SENSE Command......................OK
Testing: VERIFY Command......................OK
Testing: WRITE(10) Command......................OK
Testing: REQUEST SENSE Command......................OK
Testing: READ(10) Command......................OK
Testing: START-STOP UNIT Command......................OK
Test done!
PE_LL_init
...
...
I'm not able to follow the code until it stops.
What does this behaviour means?
Thanks