RT1176远程升级遇到的问题

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

RT1176远程升级遇到的问题

Jump to solution
1,106 Views
YueXia
Contributor I

当我按照论坛中的另一个帖子(帖子链接在最后),进行远程升级时,我遇到了一个问题,在SBL文件的配置和生成过程是很顺利的,随后我使用MCUXpresso IDE生成了一个HELLO_WORLD APP,并且为这个APP生成了与SBL相匹配的头,按照教程我将APP通过NXP-MCUBootUtility烧写到0x30100000地址下,对板卡进行复位,SBL成功启动,并且能够引导APP程序,串口可以打印出HELLO信息

随后我尝试使用Keil生成一个HELLO_WORLD APP,并对这个APP配置了与上面相同的SBL头,并也将APP通过通过NXP-MCUBootUtility烧写到0x30100000地址下,对板卡进行复位,SBL成功启动,并且能够引导APP程序,但串口无任何打印信息

我认为这样的现象是SBL正常、且对于APP配置的头也正常,这样才能对APP进行正确的引导,但是APP内容或配置不正常,导致的无法正常输出打印信息

我对比了我用MCUXpresso编译APP时和用keil编译APP时的操作

对于MCUXpresso来说,我去掉了FCB头,并且配置了FLASH地址偏移到了0x30100400

YueXia_0-1729128831759.png

YueXia_1-1729129003109.png

YueXia_5-1729129538096.png

 

对于Keil来说,我同样去掉了FCB头,并且配置了FLASH地址偏移到了0x30100400

YueXia_2-1729129117799.png

YueXia_3-1729129142844.png

YueXia_4-1729129270913.png

YueXia_6-1729129582372.png

 

但最后,keil生成出的bin加上引导头后,经过SBL引导,并不能成功打印出,但MCUXpresso的却可以成功打印,请帮忙看看是哪里出了问题,谢谢

PS:帖子链接如下

https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs-Knowledge/RT1170-SBL-ISP-download-SDRAM-APP/ta-p...

i.MX-RT1170 

0 Kudos
Reply
1 Solution
1,062 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @YueXia ,

 

对于SDK的keil project,修改flash起始地址不是在Target界面里,而是在Linker界面里编辑scf文件。

Kan_Li_0-1729565105773.png

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

View solution in original post

0 Kudos
Reply
2 Replies
1,063 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @YueXia ,

 

对于SDK的keil project,修改flash起始地址不是在Target界面里,而是在Linker界面里编辑scf文件。

Kan_Li_0-1729565105773.png

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 Kudos
Reply
1,050 Views
YueXia
Contributor I
非常感谢您的答复,按照您所说的,我修改了分散加载文件后,目前已经可以成功引导了,感谢!
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1975602%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3EProblems%20encountered%20in%20RT1176%20remote%20upgrade%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1975602%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EWhen%20I%20followed%20another%20post%20in%20the%20forum%20(the%20link%20is%20at%20the%20end)%20to%20perform%20a%20remote%20upgrade%2C%20I%20encountered%20a%20problem.%20The%20configuration%20and%20generation%20of%20the%20SBL%20file%20went%20smoothly.%20Then%20I%20used%20MCUXpresso%20IDE%20to%20generate%20a%20HELLO_WORLD%20APP%20and%20generated%20a%20header%20that%20matched%20the%20SBL%20for%20this%20APP.%20According%20to%20the%20tutorial%2C%20I%20burned%20the%20APP%20to%20the%20address%200x30100000%20through%20NXP-MCUBootUtility%2C%20reset%20the%20board%2C%20and%20the%20SBL%20started%20successfully%20and%20was%20able%20to%20boot%20the%20APP%20program.%20The%20serial%20port%20could%20print%20the%20HELLO%20message.%3C%2FP%3E%3CP%3EThen%20I%20tried%20to%20use%20Keil%20to%20generate%20a%20HELLO_WORLD%20APP%2C%20and%20configured%20the%20same%20SBL%20header%20as%20above%20for%20this%20APP%2C%20and%20also%20burned%20the%20APP%20to%20the%20address%200x30100000%20through%20NXP-MCUBootUtility%2C%20reset%20the%20board%2C%20and%20the%20SBL%20started%20successfully%20and%20was%20able%20to%20boot%20the%20APP%20program%2C%20but%20there%20was%20no%20print%20information%20on%20the%20serial%20port%3C%2FP%3E%3CP%3EI%20think%20this%20phenomenon%20is%20that%20the%20SBL%20is%20normal%20and%20the%20header%20configured%20for%20the%20APP%20is%20also%20normal%2C%20so%20that%20the%20APP%20can%20be%20correctly%20guided%2C%20but%20the%20APP%20content%20or%20configuration%20is%20abnormal%2C%20resulting%20in%20the%20inability%20to%20output%20print%20information%20normally%3C%2FP%3E%3CP%3EI%20compared%20the%20operations%20when%20I%20compiled%20the%20APP%20with%20MCUXpresso%20and%20when%20I%20compiled%20the%20APP%20with%20keil%3C%2FP%3E%3CP%3EFor%20MCUXpresso%2C%20I%20removed%20%3CSPAN%3Ethe%20FCB%20header%20and%20configured%20the%20FLASH%20address%20offset%20to%200x30100400%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22YueXia_0-1729128831759.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22YueXia_0-1729128831759.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F305136i293411E5CB587A40%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22YueXia_0-1729128831759.png%22%20alt%3D%22YueXia_0-1729128831759.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22YueXia_1-1729129003109.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22YueXia_1-1729129003109.png%22%20style%3D%22width%3A%20359px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F305139i89828735B2D733E2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22YueXia_1-1729129003109.png%22%20alt%3D%22YueXia_1-1729129003109.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22YueXia_5-1729129538096.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22YueXia_5-1729129538096.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F305143i47B8ED5AD474BF4B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22YueXia_5-1729129538096.png%22%20alt%3D%22YueXia_5-1729129538096.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EFor%20Keil%2C%20I%20also%20removed%20the%20FCB%20header%20%3CSPAN%3Eand%20configured%20the%20FLASH%20address%20offset%20to%200x30100400%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22YueXia_2-1729129117799.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22YueXia_2-1729129117799.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F305140iAA69E26C530021D7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22YueXia_2-1729129117799.png%22%20alt%3D%22YueXia_2-1729129117799.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22YueXia_3-1729129142844.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22YueXia_3-1729129142844.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F305141i67A76E517A1CBAF0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22YueXia_3-1729129142844.png%22%20alt%3D%22YueXia_3-1729129142844.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22YueXia_4-1729129270913.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22YueXia_4-1729129270913.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F305142i8C337E6149A4EBEE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22YueXia_4-1729129270913.png%22%20alt%3D%22YueXia_4-1729129270913.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22YueXia_6-1729129582372.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22YueXia_6-1729129582372.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F305144iF308A1D63FCD765E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22YueXia_6-1729129582372.png%22%20alt%3D%22YueXia_6-1729129582372.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBut%20in%20the%20end%2C%20after%20adding%20the%20boot%20header%20to%20the%20bin%20generated%20by%20Keil%2C%20it%20cannot%20be%20successfully%20printed%20after%20being%20booted%20by%20SBL%2C%20but%20MCUXpresso%20can%20be%20successfully%20printed.%20Please%20help%20me%20find%20out%20where%20the%20problem%20is.%20Thank%20you%3C%2FP%3E%3CP%3EPS%3A%20The%20post%20link%20is%20as%20follows%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-RT-Crossover-MCUs-Knowledge%2FRT1170-SBL-ISP-download-SDRAM-APP%2Fta-p%2F1767982%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-RT-Crossover-MCUs-Knowledge%2FRT1170-SBL-ISP-download-SDRAM-APP%2Fta-p%2F1767982%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2Fi.MX-RT1170%2Fpd-p%2Fi.MX-RT1170%22%20class%3D%22lia-product-mention%22%20data-product%3D%22519-1%22%20target%3D%22_blank%22%3Ei.MX-RT1170%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1978939%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ERe%3A%20Problems%20encountered%20when%20upgrading%20RT1176%20remotely%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1978939%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3EThank%20you%20very%20much%20for%20your%20reply.%20After%20I%20modified%20the%20scatter-loading%20file%20according%20to%20what%20you%20said%2C%20I%20can%20now%20boot%20successfully.%20Thank%20you!%3C%2FLINGO-BODY%3E