Whitch file dose the UUU manual use for Windows and other questions?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Whitch file dose the UUU manual use for Windows and other questions?

Jump to solution
220 Views
tamotsu
Contributor III

Hello.

I read the UUU manual. but it's difficult because it's my first time reading it.

Witch UUU source file shoud I use  for WIndows10?

How to compile Visual C++?

There is no code for parallel NOR flash in the manyual,is it possible?

I want to write IVT to parallel NOR flash.

 

0 Kudos
1 Solution
203 Views
Harvey021
NXP TechSupport
NXP TechSupport

You can refer to GitHub - nxp-imx/mfgtools at uuu_1.5.141.  

To write IVT to parallel NOR flash, to refer to command ucmd should be possible: 

# @_flexspi.bin            | bootloader
# @_image   [_flexspi.bin] | image burn to flexspi, default is the same as bootloader

 

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f _flexspi.bin

 

# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM, skip QSPI header
SDPS: boot -f _flexspi.bin -skipfhdr

 

# These commands will be run when use SPL and will be skipped if no spl
# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f _flexspi.bin -offset 0x10000 -skipfhdr
SDPU: jump
# }

 

# These commands will be run when use SPL and will be skipped if no spl
# if (SPL support SDPV)
# {
SDPV: delay 1000
SDPV: write -f _flexspi.bin -skipspl -skipfhdr
SDPV: jump
# }

 

FB: ucmd setenv fastboot_buffer ${loadaddr}
FB: download -f _image

 

FB: ucmd if test ! -n "$fastboot_bytes"; then setenv fastboot_bytes $filesize; else true; fi

 

# Check Image if include flexspi header
FB: ucmd if qspihdr dump ${fastboot_buffer}; then setenv qspihdr_exist yes; else setenv qspihdr_exist no; fi;

 

FB[-t 60000]: ucmd if test ${qspihdr_exist} = yes; then qspihdr init ${fastboot_buffer} ${fastboot_bytes} safe; else true; fi;

 

#if uboot can't support qspihdr command, use uboot image to write qspi image, which require image include qspi flash header
FB: ucmd if test ${qspihdr_exist} = no; then sf probe; else true; fi;
FB[-t 40000]: ucmd if test ${qspihdr_exist} = no; then sf erase 0 +${fastboot_bytes}; else true; fi;
FB[-t 20000]: ucmd if test ${qspihdr_exist} = no; then sf write ${fastboot_buffer} 0 ${fastboot_bytes}; else true; fi;
FB: done

 

Regards

Harvey

View solution in original post

0 Kudos
1 Reply
204 Views
Harvey021
NXP TechSupport
NXP TechSupport

You can refer to GitHub - nxp-imx/mfgtools at uuu_1.5.141.  

To write IVT to parallel NOR flash, to refer to command ucmd should be possible: 

# @_flexspi.bin            | bootloader
# @_image   [_flexspi.bin] | image burn to flexspi, default is the same as bootloader

 

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f _flexspi.bin

 

# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM, skip QSPI header
SDPS: boot -f _flexspi.bin -skipfhdr

 

# These commands will be run when use SPL and will be skipped if no spl
# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f _flexspi.bin -offset 0x10000 -skipfhdr
SDPU: jump
# }

 

# These commands will be run when use SPL and will be skipped if no spl
# if (SPL support SDPV)
# {
SDPV: delay 1000
SDPV: write -f _flexspi.bin -skipspl -skipfhdr
SDPV: jump
# }

 

FB: ucmd setenv fastboot_buffer ${loadaddr}
FB: download -f _image

 

FB: ucmd if test ! -n "$fastboot_bytes"; then setenv fastboot_bytes $filesize; else true; fi

 

# Check Image if include flexspi header
FB: ucmd if qspihdr dump ${fastboot_buffer}; then setenv qspihdr_exist yes; else setenv qspihdr_exist no; fi;

 

FB[-t 60000]: ucmd if test ${qspihdr_exist} = yes; then qspihdr init ${fastboot_buffer} ${fastboot_bytes} safe; else true; fi;

 

#if uboot can't support qspihdr command, use uboot image to write qspi image, which require image include qspi flash header
FB: ucmd if test ${qspihdr_exist} = no; then sf probe; else true; fi;
FB[-t 40000]: ucmd if test ${qspihdr_exist} = no; then sf erase 0 +${fastboot_bytes}; else true; fi;
FB[-t 20000]: ucmd if test ${qspihdr_exist} = no; then sf write ${fastboot_buffer} 0 ${fastboot_bytes}; else true; fi;
FB: done

 

Regards

Harvey

0 Kudos