Other Parts Discussed in Thread: MSP430F5419
I am using MSP430F5419 microcontroller and using C++ code for it. i want to know how to execute the code in RAM and from where the function in RAM should be called ?. Please suggest me a way.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Other Parts Discussed in Thread: MSP430F5419
I am using MSP430F5419 microcontroller and using C++ code for it. i want to know how to execute the code in RAM and from where the function in RAM should be called ?. Please suggest me a way.
Hello!
I did that a couple of times. I wrote a monitor on a 2274, and the monitor was simply taking a file
made from TI's .txt output that I converted into a binary format.
So here are a few hints (Supposing you are using IAR):
1. - Create a configuration file (called nnn.xcl, where nnn is the name of your device). For nnn,
you can put an arbitrary name, for instance my_device.xcl. The best is that you copy MSP430F5419.xcl
to your my_device.xcl.
2. - Now open this config, and modify the start of the program flash. Change it to one location in
RAM to let the compiler think that this position is plain flash. But you will also have to change
the RAM parameters so that your program area is not used as RAM anymore, at least during the ram program
run time.
3. - Copy MSP430F5419.menu to my_device.menu. Change the contents of my_device.menu so that it fits the
configuration.
4. - Compile a small test program (e.g led blink), and transform TI's output .txt file so that you can either load it as
a .h file containing your.
Here is an actual example :
@03A4
31 40 00 70 3C 40 A0 03 3D 40 04 00 B0 12 B8 07
B0 12 28 05 B0 12 A0 07 F2 D2 1E 00 F2 D0 20 00
1D 00 30 41 B0 12 BC 03 B0 12 00 04 B0 12 1C 05
F2 D2 1D 00 B0 12 1C 05 4C 43 30 41 B0 12 1C 05
F2 C2 1D 00 F7 3F F2 C0 10 00 1D 00 B0 12 BC 03
F2 D2 1D 00 B0 12 00 04 30 40 E0 03 F2 D0 10 00
1D 00 30 41 F2 C2 1E 00 F2 C0 20 00 1D 00 30 41
B0 12 42 04 B0 12 00 04 5C 42 1C 00 7C F2 30 41 ... etc...
$03a4 is a location 2274's RAM. So it will not be the same value in your case. Check the position
of the RAM in the 5419 to verify if it makes sense.
**Attention** This is a public forum