Loading the HEX file to the processor.openmsp430-loader.tcl

37 views
Skip to first unread message

M ANANDA

unread,
Jan 23, 2020, 4:47:13 AM1/23/20
to openMSP430

error.png

I am trying to load the Hex file in openmsp430. I am getting the above error but the actual size of file is 380 bytes.
as shown below:

hex.png

How to solve this problem.I have been trying it since last week.Please help me out

error.png

M ANANDA

unread,
Jan 23, 2020, 5:02:02 AM1/23/20
to openMSP430
I am using USB RS232 shown in figure:

IMG_20200123_152729.jpg


M ANANDA

unread,
Jan 23, 2020, 5:51:55 AM1/23/20
to openMSP430


On Thursday, January 23, 2020 at 3:17:13 PM UTC+5:30, M ANANDA wrote:

minidebug.png

and while I am doing msp430 mini debugger also getting same issue only as shown

Mahadev Bhat

unread,
Jan 23, 2020, 6:20:59 AM1/23/20
to discuss_o...@googlegroups.com
Hi,


Check if u are using proper Linker Script with ur memory configurations.(Size of the pmem  and dmem,etc)

--
You received this message because you are subscribed to the Google Groups "openMSP430" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss_openmsp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss_openmsp430/560be22c-8a24-4e41-94c0-d546eb28d8fd%40googlegroups.com.

M ANANDA

unread,
Jan 23, 2020, 6:40:09 AM1/23/20
to openMSP430
Hello Mahadev,

Can you please tell me what is linker script.Size of pmem is 4096 bytes and dmem is 256 bytes

--
You received this message because you are subscribed to the Google Groups "openMSP430" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss_openmsp430+unsub...@googlegroups.com.

Mahadev Bhat

unread,
Jan 23, 2020, 9:57:50 AM1/23/20
to discuss_o...@googlegroups.com
Linker Script is (.x file or .elf.x) file which will contain definitions for all the Memory and address sections  for ur memories.
Using which u generate elf or ihex file for dumping on the openmsp430.

The examples are provided for the same in the openmsp430/trunk/fpga/anyfpga board_examples/software/.x or .elf.x

Regards
Mahadev







On Thu, Jan 23, 2020, 17:10 M ANANDA <manan...@gmail.com> wrote:
Hello Mahadev,

Can you please tell me what is linker script.Size of pmem is 4096 bytes and dmem is 256 bytes

--
You received this message because you are subscribed to the Google Groups "openMSP430" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss_openmsp...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "openMSP430" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss_openmsp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss_openmsp430/1228d1ff-6c38-42e1-8a3c-27761b758cd2%40googlegroups.com.

M ANANDA

unread,
Jan 24, 2020, 12:36:29 AM1/24/20
to discuss_o...@googlegroups.com
Hello Mahadev,
Thanks for reply,
Actually I did not used that linker script anywhere in code composer studio.Can you please tell me how to generate Hex file.

M ANANDA

unread,
Jan 24, 2020, 1:38:01 AM1/24/20
to discuss_o...@googlegroups.com
Hello Mahadev,
I have got how to generate hex file.
Now I am getting other problem, for the first time i am trying to use blink LED code for this program loaded successfully as shown
loader.png
and I open minidebug by using the command ./openmsp430-minidebug.tcl -device /dev/ttyUSB0 -adaptor uart_generic -speed 115200 /home/anand/workspace_v9/l5/Debug/l5.hex and loaded hex file as shown:
debug.png
and then I opened gdbproxy by using the command ./openmsp430-gdbproxy.tcl -device /dev/ttyUSB0 -adaptor uart_generic -speed 115200 /home/anand/workspace_v9/l5/Debug/l5.hex and connected to CPU it is showing its connected but LED is not blinking.
gdb.png
Then I tried using other code but at that time i am getting following error:
ere.png
Please help me how to do basic LED blinking program.What is the procedure after generating hex file to blink LED?
--
M.Ananda,
M.tech 2nd year,
CVN,VNIT.
Reply all
Reply to author
Forward
0 new messages