When attempting to load a binary of roughly ~80kb (still well below 128kb) onto the Cortex-M7 core at address 0x7e0000 from U-Boot, an error along the lines of the following occurs
Code
- "Error" handler, esr 0xbf000002
- elr: 0000000040288244 lr : 0000000040211e2c (reloc)
- elr: 00000000bff9d244 lr : 00000000bff26e2c
- x0 : 00000000007e0000 x1 : 0000000040480000
- x2 : 0000000000050064 x3 : 0000000000040080
- x4 : ffffffffffffffff x5 : 0000000000000000
- x6 : 00000000bffabf4b x7 : 0000000000000008
- x8 : 0000000000000044 x9 : 0000000000000002
- x10: 000000000a200023 x11: 0000000000000002
- x12: 0000000000000002 x13: 0000000000000200
- x14: 0000000040480000 x15: 00000000bff1738c
- x16: 00000000bff26d88 x17: 0000000000004340
- x18: 00000000bdbffdb0 x19: 0000000000000001
- x20: 00000000bdf3e710 x21: 00000000007e0000
- x22: 0000000040480000 x23: 0000000000000000
- x24: 0000000000000000 x25: 0000000000000000
- x26: 0000000000000000 x27: 0000000000000000
- x28: 00000000bdf49340 x29: 00000000bdbf2e20
- Code: d65f03c0 f8636824 f8236804 91002063 (cb030044)
The error occurs when running cp.b ${loadaddr} 0x7e0000 80000 after having loaded the binary from mmc 2:2 into ${loadaddr} with ext4load
I can circumvent the error initially by loading the binary in chunks with the following:
Code
Although this does not appear to solve the problem, as nothing seems to happen after running bootaux 0x7e0000.
PicoCoreMX8MPr2 Rev 1.10
U-Boot SPL 2021.04-nboot-fsimx8mp-2023.09