I’m trying to get USB2 of iMXRT1050 working on NuttX, but when the it try to try the HCOR->portsc[rhport] to enable the bit EHCI_PORTSC_PP it crashes (PC goes to 0xffffffff)

Then I decided to test an example from NXP that uses FatFS and Baremetal/FreeRTOS:

host init done                                                                  
mass storage device attached:pid=0x3700vid=0xdd8 address=1                      
............................fatfs test.....................                     
fatfs mount as logiacal driver 1......success                                   
test f_mkfs......success                                                        
test f_getfree:                                                                 
    FAT type = FAT32                                                            
    bytes per cluster = 32768; number of clusters=475461                        
    The free size: 15214720KB, the total size:15214752KB                        
directory operation:                                                            
list root directory:                                                            
                                                                                
create directory "dir_1"......success                                           
create directory "dir_2"......success                                           
create sub directory "dir_2/sub_1"......success                                 
list root directory:                                                            
    dir - ___ - DIR_1 - 0Bytes - 2018-1-1 0:0:0                                 
    dir - ___ - DIR_2 - 0Bytes - 2018-1-1 0:0:0                                 
list directory "dir_1":                                                         
    dir - ___ - SUB_1 - 0Bytes - 2018-1-1 0:0:0                                 
rename directory "dir_1/sub_1" to "dir_1/sub_2"......success                    
delete directory "dir_1/sub_2"......success                                     
get directory "dir_1" information:                                              
    dir - ___ - DIR_1 - 0Bytes - 2018-1-1 0:0:0                                 
change "dir_1" timestamp to 2015.10.1, 12:30:0......success                     
get directory "dir_1" information:                                              
    dir - ___ - DIR_1 - 0Bytes - 2015-10-1 12:30:0                              
file operation:                                                                 
create file "f_1.dat"......success                                              
test f_write......success                                                       
test f_printf......success                                                      
test f_puts......success                                                        
test f_putc......success                                                        
test f_seek......success                                                        
test f_gets......ABCDEFGHI                                                      
test f_read......JKLMNOPQRS                                                     
test f_truncate......success                                                    
test f_close......success                                                       
get file "f_1.dat" information:                                                 
    fil - ___ - F_1.DAT - 19Bytes - 2018-1-1 0:0:0                              
change "f_1.dat" timestamp to 2015.10.1, 12:30:0......success                   
change "f_1.dat" to readonly......success                                       
get file "f_1.dat" information:                                                 
    fil - R__ - F_1.DAT - 19Bytes - 2015-10-1 12:30:0                           
remove "f_1.dat" readonly attribute......success                                
get file "f_1.dat" information:                                                 
    fil - ___ - F_1.DAT - 19Bytes - 2015-10-1 12:30:0                           
rename "f_1.dat" to "f_2.dat"......success                                      
delete "f_2.dat"......success                                                   
............................test done......................