4366 views|6 replies

24

Posts

0

Resources
The OP

MSP430F1232 can't set breakpoints, register write fails, I bet you haven't encountered this problem... [Copy link]

I use IAR to write a program for MSP430F1232. I change the chip model and header file to MSP430F1232, set a device model in option, and then include the right .h header file. Generally, it can run normally. In fact, it can be compiled and simulated online, but any register assignment in the program will fail. Only during online simulation can the register value be manually set through JTAG, and then breakpoints cannot be set. When simulating, I can't see where the program is running when I stop. In the program, I just set the working mode of GPIO3 (no interrupts are used). The watchdog is turned off, and the internal DCO is used as the system clock. In fact, it doesn't matter, because writing to the register is useless. It's useless. When I simulated it, the register didn't change at all. It was always in the reset state. Even if I didn't write a sentence, just writing while (1), it was useless. I couldn't see where the program started running, because it would run automatically once reset, just entering debug mode, as shown in the following figure file:///C:/Users/MBENBEN/Documents/Tencent%20Files/1078128814/Image/C2C/LAOW1X76J461@A9LZ%60%7D_6J6.jpg The following is the prompt information in the debug log column when I just entered the program,,,, Thu May 25, 2017 11:20:59: Interface dll version 2.4.9.1 Thu May 25, 2017 11:20:59: Device : MSP430F12x2/F11x2 Thu May 25, 2017 11:20:59: External voltage : 0.0 V Thu May 25, 2017 11:20:59: VCC voltage : 3.3 V Thu May 25, 2017 11:21:00: Download complete. Thu May 25, 2017 11:21:00: Loaded debugee: E:\A_softwere_PRJ\Watch\Debug\Exe\watch.d43 Thu May 25, 2017 11:21:00: Target reset Thu May 25, 2017 11:21:00: Failed to read one or more register values (busy).







QQ图片20170525112004.jpg (212.01 KB, downloads: 1)

QQ图片20170525112004.jpg
This post is from Microcontroller MCU

Latest reply

It can be compiled and simulated online, but it does not mean it runs normally. The first thing to do when initializing MSP430 is to handle the watchdog  Details Published on 2017-5-26 10:18

1059

Posts

1

Resources
2
The watchdog needs to be turned off. There is a problem with the project configuration.
This post is from Microcontroller MCU

Comments

I have said that the register cannot be written, and writing to the register is invalid  Details Published on 2017-5-25 13:19
I have said that the register cannot be written, and writing to the register is invalid  Details Published on 2017-5-25 13:19

24

Posts

0

Resources
3
qwerghf posted on 2017-5-25 13:14 The watchdog needs to be turned off. There is a problem with the project configuration
I have said that the register cannot be written. Writing to the register is invalid
This post is from Microcontroller MCU

24

Posts

0

Resources
4
qwerghf posted on 2017-5-25 13:14 The watchdog needs to be turned off, there is a problem with the project configuration
The register cannot be written, and writing to the register is invalid: Sad:
This post is from Microcontroller MCU

1189

Posts

0

Resources
5
Thu May 25, 2017 11:21:00: Failed to read one or more register values (busy). ——Isn’t it clear that the register reading failed during simulation? At this time, you should check the simulator settings, chip power supply, simulator driver, etc. If conditions permit, you can change a computer or create a new project file to try.
This post is from Microcontroller MCU

Comments

msp430f149 can be compiled successfully without exception, but there is an exception when using it on msp430f1232  Details Published on 2017-5-26 08:25

24

Posts

0

Resources
6
qiushenghua posted on 2017-5-25 17:08 Thu May 25, 2017 11:21:00: Failed to read one or more register values (busy). ——It is not very clear...
The msp430f149 can be compiled successfully without any exceptions, but there are exceptions when using it on the msp430f1232
This post is from Microcontroller MCU

2767

Posts

8

Resources
7
It can be compiled and simulated online, but it does not mean it runs normally. The first thing to do when initializing MSP430 is to handle the watchdog
This post is from Microcontroller MCU

Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list