dadi

Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • in reply to: Debugging problems #2456
    dadi
    Participant

    Hello!!!
    I’ve read all about the forum you posted me (I’ve the v2, that’s never than the one there) and done what you said: copying all about the Olimex dir on the MSP430bin directory… and now it’s working all fine!
    It compiles/makes/downloads and debugs all very well. Still your example than my programms.
    Thank you very very much for all your help.

    Can I ask you if it is possible to download the programm from your VisualGDB/MSVS10 without issuing the debug. Just compile/make/download and run. In this way I do not need to download it, stop it by stopping the debug window and then run the MCU using the OLIMEX program.

    in reply to: Debugging problems #2455
    dadi
    Participant

    Hello bazis and thanks for your reply.

    I will read the forum as soon as possible and I will do the copy as you request. Then I will inform you of the results.

    What concerns the last question I’ll respond now:
    Right for your conclusion: trying only to download the .bin file no “device” problems happens. That’s in fact a bit more strange and so I think that’s the problem is not or not only on the OLIMEX programmer. It seems to work fine alone: i can read/write/erase/etc program and data areas and start or stop the MCU. Why it should then have incompatibility issues just and only when i try to download directly the program compiled&maked with your VisualGDB? The error reported says in fact:
    “End address in file is 0x7FFF which is less than end address in programm memory 0xFFFF.”
    The file, that’s your Sample-Blink-Test_programm is 32KB big (32.768bytes).

    The OLIMEX i’ve bought is also full JTAG compatible and it is working with many debugger. Anyway I will ask them some questions, but befor, I would understand better what happens using your licensed tool for MSP430! With their own sw, at the moment at least and on my PC and with the same hw/sw configuration, all is or seems to working well. Whereas, is your envoirment that for any reason, is not working well or is not well tuned/setupped. It was working well also with the TI CSS v4 (but it is not installed on this Notebook).

    in reply to: Debugging problems #2453
    dadi
    Participant

    Hello again,
    I have done also this test: I have enabled also the “make BIN file” VisualGDB option and tryied to load/download it directly from the OLIMEX program (it loads only BIN, TXT-TexasIntrumentsFormat and HEX-IntelFormat) and it says:
    “End address in file is 0x7FFF which is less than end address in programm memory 0xFFFF.”
    Maybe there is something wrong in the way I’m doing that.
    Byye
    Davide

    in reply to: Debugging problems #2452
    dadi
    Participant

    Hello,
    I have done what suggested and changed the library exactly in the directory you said. Unfortunately it is still not working or better: your VisualGDB is still not communicating with/over the OLIMEX.
    I’ve tryied also to call from the shell directly the “msp430-gdbproxy.exe” (that seems to be called from your VisualGDB) and with the changed MSP430.dll the message becomes: “SiUSBXp.dll is missing”. When copied it from the OLIMEX directory to the bin directory this message disappears but the same message as before comes again:
    “Cannot initalize MSP430.DLL on port USB: Could not find MSP-FAT430UIF on specified COM port”.
    I’ve tryied to turn back to the old/original MSP430.dll and runned the shell command again and the output was the same without before the SiUSBXp.dll error.
    What now?
    Thanks.
    Davide

    in reply to: Debugging problems #2451
    dadi
    Participant

    Hello,
    I have changed the dll as described but the error remains the same and there is no communication between your VisualGDB and the OLIMEX programmer.
    Somthing other to try?
    Davide

    in reply to: Debugging problems #2449
    dadi
    Participant

    Hello,
    I’ve look for your guides and in internet but I haven’t found anything that I haven’t done yet or I could try.
    By using directly the OLIMEX MSP Programmer with the OLIMEX-MSP430-TINY-V2_USB programmer I can read and write the MCU. When trying to use your licensed VidualGDB the msp430-gdmproxy command window into the MSVS2010 prompts me:

    Cannot initalize MSP430.DLL on port USB:
    Could not find MSP-FET430UIF on specified COM port

    Run msp430-gdbproxy –help for usage instructions.

    I’ve runned the command from the shell but I can’t find how to set it up.
    Some other further hints?
    Thank you
    Davide

    in reply to: Debugging problems #2447
    dadi
    Participant

    Hello and thank you for reply.
    I’ve changed the simulator to the mspdebug as you’ve said and now it seems to work fine and without changing nothing to the original demo program. The same happens also by using my program that starts debugging by setting a breakpoint in the main (letting them go then it stops working for missing signals, but I think that’s right, or not?). Fine so, now I can simulate a software but I want tu use the real MCU.
    With the OLIMEX it isn’t not working jet (could I have some port problems or other I have to set and they are not reported on your tutorials?) and how do I download the sw directly on the TI without using debugging?
    Thank’s a lot.

    in reply to: Debugging problems #2445
    dadi
    Participant

    Here’s the log output of the modified main:

    VisualGDB is licensed to MYNAMESURNAME
    C:SysGCCmsp430binmsp430-gdb.exe –interpreter mi “C:usrlocalGNUBasedApplication2GNUBasedApplication2/DebugGNUBasedApplication2.elf”
    -list-features
    =thread-group-added,id=”i1″
    GNU gdb (GDB) 7.4
    Copyright (C) 2012 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type “show copying”
    and “show warranty” for details.
    This GDB was configured as “–host=i686-pc-mingw32 –target=msp430”.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>…
    Reading symbols from C:usrlocalGNUBasedApplication2GNUBasedApplication2/DebugGNUBasedApplication2.elf…
    done.
    ^done,features=[“frozen-varobjs”,”pending-breakpoints”,”thread-info”,”data-read-memory-bytes”,”breakpoint-notifications”,”ada-task-info”]
    -gdb-set stop-on-solib-events 1
    OK
    -gdb-set new-console on
    A syntax error in expression, near `new-console on’.
    -data-list-register-names
    ^done,register-names=[“r0″,”r1″,”r2″,”r3″,”r4″,”r5″,”r6″,”r7″,”r8″,”r9″,”r10″,”r11″,”r12″,”r13″,”r14″,”r15”]
    -gdb-set disassembly-flavor intel
    -gdb-set print demangle off
    No symbol “disassembly” in current context.
    OK
    -gdb-version
    GNU gdb (GDB) 7.4
    Copyright (C) 2012 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type “show copying”
    and “show warranty” for details.
    This GDB was configured as “–host=i686-pc-mingw32 –target=msp430”.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    OK
    -break-insert -f main
    ^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00008044″,func=”main()”,file=”LEDBlink.cpp”,fullname=”C:\usr\local\GNUBasedApplication2\GNUBasedApplication2/LEDBlink.cpp”,line=”29″,times=”0″,original-location=”main”}
    target sim
    &”target simn”
    Connected to the simulator.
    OK
    load
    &”loadn”
    OK
    -data-evaluate-expression “sizeof(void *)”
    ^done,value=”2″
    -data-evaluate-expression “sizeof(int)”
    ^done,value=”2″
    -data-evaluate-expression “sizeof(short)”
    ^done,value=”2″
    -data-evaluate-expression “sizeof(long)”
    ^done,value=”4″
    -data-evaluate-expression “sizeof(long long)”
    ^done,value=”8″
    -data-evaluate-expression “sizeof(char)”
    ^done,value=”1″
    -data-evaluate-expression “sizeof(wchar_t)”
    No symbol “wchar_t” in current context.
    -data-evaluate-expression “sizeof(float)”
    ^done,value=”4″
    -data-evaluate-expression “sizeof(double)”
    ^done,value=”4″
    -data-evaluate-expression “sizeof(long double)”
    ^done,value=”8″
    info target
    &”info targetn”
    Symbols from “C:usrlocalGNUBasedApplication2GNUBasedApplication2/DebugGNUBasedApplication2.elf”.
    simulator:
    Attached to sim running program C:usrlocalGNUBasedApplication2GNUBasedApplication2/DebugGNUBasedApplication2.elf
    # instructions executed 0
    # cycles 0
    # Interrupts 0
    While running this, GDB does not access memory from…
    Local exec file:
    `C:usrlocalGNUBasedApplication2GNUBasedApplication2/DebugGNUBasedApplication2.elf’, file type elf32-msp430.
    Entry point: 0x8000
    0x00008000 – 0x0000805c is .text
    0x00001c00 – 0x00001c02 is .bss
    0x00001c02 – 0x00001c04 is .noinit
    0x0000ff80 – 0x00010000 is .vectors
    OK
    -break-insert -f C:/usr/local/GNUBasedApplication2/GNUBasedApplication2/LEDBlink.cpp:29
    ^done,bkpt={number=”2″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00008044″,func=”main()”,file=”LEDBlink.cpp”,fullname=”C:\usr\local\GNUBasedApplication2\GNUBasedApplication2/LEDBlink.cpp”,line=”29″,times=”0″,original-location=”C:/usr/local/GNUBasedApplication2/GNUBasedApplication2/LEDBlink.cpp:29″}
    info symbol 0x8044
    &”info symbol 0x8044n”
    main + 6 in section .text
    OK
    info line *0x8044
    &”info line *0x8044n”
    Line 29 of “LEDBlink.cpp” starts at address 0x8044 and ends at 0x804e .
    OK
    -file-list-exec-source-files
    ^done,files=[{file=”LEDBlink.cpp”,fullname=”C:\usr\local\GNUBasedApplication2\GNUBasedApplication2/LEDBlink.cpp”},{file=”c:\sysgcc\msp430\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/cc430f5137.h”,fullname=”c:\sysgcc\msp430\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/cc430f5137.h”},{file=”../../gcc-4.6.3/gcc/config/msp430/crt0.S”},{file=”../../gcc-4.6.3/gcc/config/msp430/crt0.S”},{file=”../../gcc-4.6.3/gcc/config/msp430/crt0.S”},{file=”../../gcc-4.6.3/gcc/config/msp430/crt0.S”},{file=”../../gcc-4.6.3/gcc/config/msp430/crt0.S”},{file=”../../gcc-4.6.3/gcc/config/msp430/crt0.S”}]
    -exec-run

    in reply to: Debugging problems #2444
    dadi
    Participant

    Hello,
    If you have intended I have to change the default generated main:

    int main()
    {
    MainLoop();
    }

    just with yours, without changing any other part (that compiles well):

    int unused;
    int main()
    {
    volatile int test = unused;
    }

    I’ve done it, but it produces the same ko.

    Just for do a question? But the sample program, as explained on the tutorial, shouldn’t it work without modifications?

    in reply to: Debugging problems #2442
    dadi
    Participant

    That’s the log file for the test program:

    VisualGDB is licensed to MYNAMESURNAME
    C:SysGCCmsp430binmsp430-gdb.exe –interpreter mi “C:usrlocalGNUBasedApplication2GNUBasedApplication2/DebugGNUBasedApplication2.elf”
    -list-features
    =thread-group-added,id=”i1″
    GNU gdb (GDB) 7.4
    Copyright (C) 2012 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type “show copying”
    and “show warranty” for details.
    This GDB was configured as “–host=i686-pc-mingw32 –target=msp430”.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>…
    Reading symbols from C:usrlocalGNUBasedApplication2GNUBasedApplication2/DebugGNUBasedApplication2.elf…
    done.
    ^done,features=[“frozen-varobjs”,”pending-breakpoints”,”thread-info”,”data-read-memory-bytes”,”breakpoint-notifications”,”ada-task-info”]
    -gdb-set stop-on-solib-events 1
    OK
    -gdb-set new-console on
    A syntax error in expression, near `new-console on’.
    -data-list-register-names
    ^done,register-names=[“r0″,”r1″,”r2″,”r3″,”r4″,”r5″,”r6″,”r7″,”r8″,”r9″,”r10″,”r11″,”r12″,”r13″,”r14″,”r15”]
    -gdb-set disassembly-flavor intel
    No symbol “disassembly” in current context.
    -gdb-set print demangle off
    OK
    -gdb-version
    GNU gdb (GDB) 7.4
    Copyright (C) 2012 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type “show copying”
    and “show warranty” for details.
    This GDB was configured as “–host=i686-pc-mingw32 –target=msp430”.
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    OK
    -break-insert -f main
    ^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x00008042″,func=”main()”,file=”LEDBlink.cpp”,fullname=”C:\usr\local\GNUBasedApplication2\GNUBasedApplication2/LEDBlink.cpp”,line=”27″,times=”0″,original-location=”main”}
    target sim
    &”target simn”
    Connected to the simulator.
    OK
    load
    &”loadn”
    “C:usrlocalGNUBasedApplication2GNUBasedApplication2/DebugGNUBasedApplication2.elf” has no bss section.
    &”unable to load programn”
    unable to load program
    -data-evaluate-expression “sizeof(void *)”
    ^done,value=”2″
    -data-evaluate-expression “sizeof(int)”
    ^done,value=”2″
    -data-evaluate-expression “sizeof(short)”
    ^done,value=”2″
    -data-evaluate-expression “sizeof(long)”
    ^done,value=”4″
    -data-evaluate-expression “sizeof(long long)”
    ^done,value=”8″
    -data-evaluate-expression “sizeof(char)”
    ^done,value=”1″
    -data-evaluate-expression “sizeof(wchar_t)”
    No symbol “wchar_t” in current context.
    -data-evaluate-expression “sizeof(float)”
    ^done,value=”4″
    -data-evaluate-expression “sizeof(double)”
    ^done,value=”4″
    -data-evaluate-expression “sizeof(long double)”
    ^done,value=”8″
    info target
    &”info targetn”
    Symbols from “C:usrlocalGNUBasedApplication2GNUBasedApplication2/DebugGNUBasedApplication2.elf”.
    Local exec file:
    `C:usrlocalGNUBasedApplication2GNUBasedApplication2/DebugGNUBasedApplication2.elf’, file type elf32-msp430.
    Entry point: 0x8000
    0x00008000 – 0x000080c8 is .text
    0x00001c00 – 0x00001c02 is .noinit
    0x0000ff80 – 0x00010000 is .vectors
    OK
    -break-insert -f C:/usr/local/GNUBasedApplication2/GNUBasedApplication2/LEDBlink.cpp:18
    ^done,bkpt={number=”2″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x000080a6″,func=”MainLoop()”,file=”LEDBlink.cpp”,fullname=”C:\usr\local\GNUBasedApplication2\GNUBasedApplication2/LEDBlink.cpp”,line=”18″,times=”0″,original-location=”C:/usr/local/GNUBasedApplication2/GNUBasedApplication2/LEDBlink.cpp:18″}
    info symbol 0x80a6
    &”info symbol 0x80a6n”
    _Z8MainLoopv + 22 in section .text
    OK
    info line *0x80a6
    &”info line *0x80a6n”
    Line 18 of “LEDBlink.cpp” starts at address 0x80a6 and ends at 0x80b0 .
    OK
    -file-list-exec-source-files
    ^done,files=[{file=”LEDBlink.cpp”,fullname=”C:\usr\local\GNUBasedApplication2\GNUBasedApplication2/LEDBlink.cpp”},{file=”c:\sysgcc\msp430\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/cc430f5137.h”,fullname=”c:\sysgcc\msp430\bin\../lib/gcc/msp430/4.6.3/../../../../msp430/include/cc430f5137.h”},{file=”../../gcc-4.6.3/gcc/config/msp430/crt0.S”},{file=”../../gcc-4.6.3/gcc/config/msp430/crt0.S”},{file=”../../gcc-4.6.3/gcc/config/msp430/crt0.S”},{file=”../../gcc-4.6.3/gcc/config/msp430/crt0.S”},{file=”../../gcc-4.6.3/gcc/config/msp430/crt0.S”},{file=”../../gcc-4.6.3/gcc/config/msp430/crt0.S”}]
    -exec-run
    &”warning: No program loaded.n”

    in reply to: specify include and static libraries directories #2142
    dadi
    Participant

    Hi bazis,

    and thanks a lot for your help: the project compiles now well or at least Build Succeeded is now written on the bottom of VS10: now I will strart with download and debug issues using an Olimex. What to do was simply:
    1) remove the start path delimiter / of the include files directories
    2) do not use “” (quotes) you wrote to surround the example strings
    3) specify the name without lib for the library

    Byye
    Davide

    in reply to: specify include and static libraries directories #2140
    dadi
    Participant

    Hello bazis,

    I use the VisualGDB MakeFile and I have made no changes on it. I’ve changed only the flags.mak values as explained on your guide:

    #Generated by VisualGDB project wizard.
    #Feel free to modify any flags you want
    #Visit http://visualgdb.com/makefiles for more details

    CC := C:/SysGCC/msp430/bin/msp430-gcc.exe
    CXX := C:/SysGCC/msp430/bin/msp430-g++.exe
    LD := $(CXX)
    AR := C:/SysGCC/msp430/bin/msp430-ar.exe
    OBJCOPY := C:/SysGCC/msp430/bin/msp430-objcopy.exe
    CP := cp

    COMMON_MACROS :=
    DEBUG_MACROS := DEBUG
    RELEASE_MACROS := NDEBUG RELEASE

    MCUFLAGS := -mmcu=cc430f5137

    INCLUDE_DIRS := /rac /kal /hal /at
    LIBRARY_DIRS :=
    LIBRARY_NAMES :=

    CFLAGS := -ggdb -ffunction-sections
    DEBUG_CFLAGS := -O0
    RELEASE_CFLAGS := -O3

    CXXFLAGS := $(CFLAGS) -ffunction-sections
    DEBUG_CXXFLAGS := $(DEBUG_CFLAGS)
    RELEASE_CXXFLAGS := $(RELEASE_CFLAGS)

    MACOS_FRAMEWORKS :=

    LDFLAGS := -Wl,-gc-sections
    DEBUG_LDFLAGS :=
    RELEASE_LDGLAGS :=

    START_GROUP := -Wl,–start-group
    END_GROUP := -Wl,–end-group

    USE_DEL_TO_CLEAN := 1
    GENERATE_BIN_FILE := 0
    ADDITIONAL_MAKE_FILES :=
    IS_LINUX_PROJECT := 0

    include $(ADDITIONAL_MAKE_FILES)

Viewing 12 posts - 1 through 12 (of 12 total)