M4 firmware on imx7D 1GB eMMC BSP5.0

Hi,

I’m in the process of moving our project from BSP 2.8 to BSP 5.0 and I’m having some difficulties getting the M4 firmware to run.

I’ve compiled a simple freeRTOS project for the M4 for testing, as I can use the standard Colibri Evaluation board and reference images for testing. It sends a “hello world” out the debug UART. The code runs fine on the 2.8 and 3.0 reference image, but on 5.0 I get the following crash:

U-Boot 2020.07-5.0.0+git.3f1b0662d1a7 (Sep 30 2020 - 14:23:37 +0000)   
                                                                                
CPU:   Freescale i.MX7D rev1.3 1000 MHz (running at 792 MHz)                  
CPU:   Extended Commercial temperature grade (-20C to 105C) at 36C            
Reset cause: POR                                                              
DRAM:  1 GiB                                                                  
PMIC:  RN5T567 LSIVER=0x01 OTPVER=0x0d                                        
MMC:   FSL_SDHC: 1, FSL_SDHC: 0                                               
Loading Environment from MMC... OK                                            
In:    serial                                                                 
Out:   serial                                                                 
Err:   serial                                                                 
Model: Toradex Colibri iMX7 Dual 1GB (eMMC) V1.1A, Serial# 06596547           
SEC0: RNG instantiated                                                        
Net:   eth0: ethernet@30be0000                                                
Hit any key to stop autoboot:  1  0                                        
Colibri iMX7 # <INTERRUPT>                                                    
Colibri iMX7 # <INTERRUPT>                                                    
Colibri iMX7 # <INTERRUPT>                                                    
Colibri iMX7 # setenv fdt_fixup 'fdt addr ${fdt_addr_r} && fdt rm /soc/aips-bus@
30800000/spba-bus@30800000/serial@30890000'                                   
Colibri iMX7 #                                                                
Colibri iMX7 # setenv m4boot 'fatload mmc 0:1 ${loadaddr} m4_basic.elf && bootau
x ${loadaddr}'                                                                
Colibri iMX7 #                                                                
Colibri iMX7 # saveenv                                                        
Saving Environment to MMC... Writing to MMC(0)... OK                          
Colibri iMX7 #                                                                
Colibri iMX7 # boot                                                           
MMC: no card present                                                      
switch to partitions #0, OK                                                   
mmc0(part 0) is current device                                                
Scanning mmc 0:1...                                                           
Found U-Boot script /boot.scr                                                 
3653 bytes read in 19 ms (187.5 KiB/s)                                        
## Executing script at 87000000                                               
2680200 bytes read in 102 ms (25.1 MiB/s)                                     
data abort                                                                    
pc : [<bff731a0>]	         lr : [<1fffaa78>]                                  
reloc pc : [<878001a0>]	           lr : [<e7887a78>]                          
sp : bdf67fa4  ip : 2000006c	    fp : 00000002                                
r10: bdf9e7e0  r9 : bdf70eb0	    r8 : 00000000                                
r7 : bd088000  r6 : f3af4803	    r5 : 4903b11b  r4 : 4b03b508                 
r3 : 1fffaa78  r2 : 000029e0	    r1 : 80818040  r0 : 1fff8040                 
Flags: nzcv  IRQs on  FIQs on  Mode SVC_32                                    
Code: e3a0d013 e169f00d e1a0e00f e1b0f00e (e24dd048)                          
Resetting CPU ...

Any insight as to what is causing this would be very helpful.
Cheers,
Mark

Hi,

U-boot bootaux command is broken in BSP 5.0 and latest devel of 5.1.0. Try using for now U-boot 2019.07 from BSP 3.x or older.

hi @nrcm and Hi @Edward

Sorry for the delayed answer. Is the issue still present on your side?

Best regards,
Jaski