TI中文支持网
TI专业的中文技术问题搜集分享网站

MSP430FR2433: bootloader调试问题

Part Number:MSP430FR2433Other Parts Discussed in Thread: MSP-EXP430FR2433, UNIFLASH, MSP-FET

你好,我们使用的FR2433 MCU芯片,根据<MSP430 Flash Devices Bootloader (BSL)>文档尝试进入2433芯片bootloader模式,但是目前并不生效。

我们根据下述文档说明

我们编写下述代码执行:

__disable_interrupt(); // disable interrupts((void ( * )())0x0C00)(); // jump to BSL

请帮助确认一下,谢谢。

Susan Yang:

请问您现在使用的是哪种BSL模式?

https://www.ti.com.cn/cn/lit/ds/symlink/msp430fr2433.pdf

6.5 Bootloader (BSL)

The BSL lets users program the FRAM or RAM using either the UART serial interface or the I 2C interface.

关于FR系列MSP430的话,建议您参考下面的文档

MSP430Tm FRAM Devices Bootloader (BSL) 

https://www.ti.com/lit/ug/slau550aa/slau550aa.pdf 

,

zhao ge:

你好

    我们I2c和UART都需要调试一下,您提供的这份文档我们会再次查看一下。

,

zhao ge:

你好,我们尝试发送下述代码进入bootloader

__disable_interrupt(); // disable interrupts((void ( * )())0x1000)(); // jump to BSL

但是根据文档,通过uart发送下述指令,没有反馈。

请帮助确认一下,通过uart怎样可以验证已经进入bootloader?

,

Susan Yang:

请问您是否下载了 BSL Scripter?

http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPBSL_Scripter/latest/index_FDS.html 

其将用户的命令及TXT格式的用户代码按照BSL协议的封包格式通过串行接口发送给芯片,或者将芯片中memory中的数据读回。

网络上有一些分享,您可以看一下

https://blog.csdn.net/qq_36931625/article/details/103582535 

,

zhao ge:

Hi 我们现在的问题是执行下述代码后,无法进入boot loader,请帮助确认一下,我们使用的MSP430FR2433芯片

__disable_interrupt(); // disable interrupts
((void ( * )())0x1000)(); // jump to BSL

,

zhao ge:

同时,我们尝试使用手动模拟管脚时序进入bootloader后,调用 BSL Scripter工具执行LOG报错如下,请同步帮助分析一下。谢谢

,

Susan Yang:

zhao ge 说:无法进入boot loader

我使用launchpad配合CCS进行测试的,查看反汇编,执行语句后可以跳到0x1000

,

Susan Yang:

zhao ge 说:手动模拟管脚时序

能否给出您的硬件和软件信息?建议您先看一下

https://training.ti.com/msp-bootloader-bsl-overview 

,

zhao ge:

我们执行完之后,现象和你截图不一致,请帮助确认一下。

,

zhao ge:

硬件信息:MSP-EXP430FR2433

,

zhao ge:

你好,请问上述问题可以解答一下吗?我们的测试现象不一样。

,

Susan Yang:

我是在0x1000处打了断点,会跳到这个地址

我需要再次实验看一下

,

zhao ge:

你好,我们 UART目前已经调试通过,但是I2C进入bootloader后I2C发送下述命令返回全FF,但是之前UART发送指令返回正常.

请帮助确认一下,十分感谢。

,

Susan Yang:

zhao ge 说:但是I2C进入bootloader后I2C发送下述命令返回全FF,

使用其他命令也是全FF吗?您的硬件就是一个开发板?如何连线的?

,

zhao ge:

你好

我们使用的是USB转I2C的工具,通过该工具的I2C给设备发送指令,返回全FF。其他指令也是一样的,全FF

,

zhao ge:

你好,下述是我们使用逻辑分析仪抓到的波形,请协助分析,谢谢。

,

Susan Yang:

谢谢您的详细反馈,我会在确认后给您回复

,

Susan Yang:

以下是我得到的回复,请您看一下

you will need to eliminate possible I2C issues. Most common is incorrect pullup values. I would start with an I2C example and not the BSL just to make sure every thing is good from a HW perspective. You can also checkout the I2C section of the following app note and our I2C Academy for more help: 

www.ti.com/lit/slaa734 section 5.

I2C Academy

I would also check the HW you are using to communicate to the MSP430 with via  I2C. To utilize the BSL you also need to have control over the TEST and RST lines to enter BSL. I don't know if that HW supports the ability to do this sequence, and thus you may not be getting into BSL mode. Alternatively, you could invoke BSL via SW mode, but you would need a program already inside the device to do that. Our MSP-FET supports BSL invoke and I2C comms. You can utilize it with Uniflash or BSLScripter. 

赞(0)
未经允许不得转载:TI中文支持网 » MSP430FR2433: bootloader调试问题
分享到: 更多 (0)

© 2024 TI中文支持网   网站地图 鲁ICP备2022002796号-1