The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.
IAR EW5 ASM project troubleshootings - stefandk63 - Aug 28 10:28:35 2008
Hi , people,
I'm confused and need help. What is problem :
I try to move one ASM project from MSP430F449 to MSP430F2481.
Programm memory after linking is a little bit less than 48kB.
RAM is under 2kB.
When i start Debugger (from IDE, with Texas FET-LPT)
debugger starts downloading/verigying and at end reports fatal error:
=====================
Thu Aug 28 17:12:46 2008: Interface dll version 2.3.5.0
Thu Aug 28 17:12:46 2008: Device : MSP430F2481
Verify error at address 0x118d on target 0xfa in file 0x0
Verify error at address 0x11f7 on target 0x64 in file 0x0
Verify error at address 0x13b9 on target 0x67 in file 0x0
Verify error at address 0x1483 on target 0x41 in file 0x0
Verify error at address 0x157b on target 0x12 in file 0x0
Verify error at address 0x118D. Value should be 0x00 but is 0xFA.
Verify error at address 0x11F7. Value should be 0x00 but is 0x64.
Verify error at address 0x13B9. Value should be 0x00 but is 0x67.
Verify error at address 0x1483. Value should be 0x00 but is 0x41.
Verify error at address 0x157B. Value should be 0x00 but is 0x12.
Failed to load debugee: C:\msp_f413\new217\Debug\Exe\e5_v4a.d43
=====================
Interesting - why RAM is checked?!
Same recompiled program loads normally into F449, so i've maked
experiment:
- on other computer i install latest IAR-Kickstart (from TI
website);
- i load workspace with FLASH_LED_examples. Compile,load, execute
project "msp430x2xx(C)-Debug" with same FET and target board.
- when i try other project "msp430x2xx(ASM)-Debug" debugger
reports as follow:
=====================
Thu Aug 28 17:20:42 2008: Fatal error: Failed to initialize.
Check if hardware connected.
Check if drivers are installed.
Try to restart the computer.
Tools using the parallel port are not supported on Windows Vista
Session aborted!
Thu Aug 28 17:20:45 2008: Failed to load debugee: C:\430
\msp430x2xx\asm-source\Debug\Exe\msp430x2xx (asm).d43
=====================
Where is problem?
regards
Stefan
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
Re: IAR EW5 ASM project troubleshootings - Tom Baugh - Aug 28 11:15:07 2008
> I try to move one ASM project from MSP430F449 to MSP430F2481.
Stefan,
Great question! The flash on the F2481 starts at 0x4000, so the code
needs to be re-orged to build into valid addresses. I think that would
clear up a lot of the address-related problems but of course the
peripherals would still need porting.
Tom
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
Re: IAR EW5 ASM project troubleshootings - stefandk63 - Aug 28 11:28:43 2008
Hi Tom,
Code is
ORG 0x5000
I exclude vector table and map file contans as follow
SEGMENT SPACE START ADDRESS END ADDRESS SIZE
TYPE ALIGN
======= ===== ============= =========== ====
==== =====
DATA16_I 1100 - 1598 499
rel 1
5000 - FB45 AB46
aseg
Now i try to load "d43" file trough Elprotonic FET-Pro430 lite.
This program reports that code exceeds FLASH amount and "shrinks"
code. Same with "txt" (TI-MSP-txt format). I checked file
and see RAM "zeroing" at 0x1100 . After deleting of this passage
Elprotonic loads without warnings.
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
Re: IAR EW5 ASM project troubleshootings - Tom Baugh - Aug 28 11:37:10 2008
Hi Stefan,
Can you find any connection in the map file between 0x1100 and any
segment or module, etc.? If not, could there be some linker setting,
like a memory fill, that didn't port well to the new project?
If you want, send the map and linker command file to our info address.
Tom
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
Re: IAR EW5 ASM project troubleshootings - stefandk63 - Aug 28 11:42:57 2008
--- In m...@yahoogroups.com, "Tom Baugh"
wrote:
Hi Tom,
What is email address?
What files to send - one is "myproject.map", which is other - with wath
extension?
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )Re: IAR EW5 ASM project troubleshootings - Tom Baugh - Aug 28 12:01:26 2008
Hi Stefan,
You can use info or tom and our domain name. Or send me an email with
the little envelope icon under the user name and I'll reply.
For Kickstart the other file will be .xcl, but you may be using a
default command file which will be in the project options. Let me know
if you are using a default and if so which one.
Tom
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
Re: IAR EW5 ASM project troubleshootings - stefandk63 - Aug 28 12:10:32 2008
Hi Tom,
Just sended email.
I'm stil wondering why C-exampleLED is loaded normally (and debuged),
but not ASM-example. In workspace i changed only "target" processor
into project_options_generaloptions.
regards
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
Re: IAR EW5 ASM project troubleshootings - old_cow_yellow - Aug 28 13:17:42 2008
The FLASH in F449 is at 1100-FFFF. The FLASH in F2481 is at 4000-FFFF.
When you use c compiler, it generate code at a symbolic segment called
CODE. The Linker will look up in the appropriate *.xcl to find out
that CODE means 4000 for F2481 instead of 1100 for F449.
When you use assembly, you could have done the same, and Linker will
put the code in the right place. But if you use ORG xxxx, Linker will
obey that and put your code (or constants) in the wrong address.
That is, do not use ORG xxxx. Use RSEG CODE for FLASH. Use RSEG
DATA_16_N for RAM.
--- In m...@yahoogroups.com, "stefandk63"
wrote:
>
> Hi Tom,
> Just sended email.
> I'm stil wondering why C-exampleLED is loaded normally (and debuged),
> but not ASM-example. In workspace i changed only "target" processor
> into project_options_generaloptions.
> regards
>
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )Re: IAR EW5 ASM project troubleshootings - stefandk63 - Aug 28 14:18:37 2008
--- In m...@yahoogroups.com, "old_cow_yellow"
wrote:
>
> The FLASH in F449 is at 1100-FFFF. The FLASH in F2481 is at 4000-
FFFF.
>
You are right.
Last i changed data to RSEG DATA_16N , code is still ASEG.
Map file shows correct adresses , i think.
Maybe HEAP/CSTACK or something like this (which i do not use , and
not understand very good) causes generation of "zeroing RAM" in
MSP430-txt format. But same program (corrected to 449 - ORG,peripheral)
is loaded corrctly into 449. For F2481 linker DOES NOT report error
too. Difference is in debugger's behavior. See my first post -
how can be explained "pure" experiment (which uses samples from IAR)
wit LED_BLINK?
Now i'm at home and cant experiment
until tomorrow.
regards
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )Re:resolved IAR EW5 ASM project troubleshootings - stefandk63 - Aug 29 2:05:22 2008
At end:
In start topic I described 2 situations . Offcource problems was in
my mind.
1)C-example worked , but ASM-example not worked - i forget to setup
correctly type of FET.
2)My program loads normally into F449, but not in F2481.
Here i didnt understand whole strusture of F2481. Debugger's options
for INFO memory was in state, requiring FET to do something here.
Somehow , while experimenting, i erased INFO and debugger starts
loading normally. After this i found "TLV structure" chapter , page
645,in user guide.... But IAR's Log messages are too "secret" (see
my 1st post), and helpless.
Thank You for advises!
And ,please , excuse me for "spamming". I really was in panic.
regards
Stefan
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )