cancel
Showing results for 
Search instead for 
Did you mean: 

Assembling

andreasbuehler19
Associate II
Posted on April 12, 2005 at 06:08

Assembling

5 REPLIES 5
andreasbuehler19
Associate II
Posted on April 07, 2005 at 15:12

Hallo,

I started new with programming ST-MCU's and I really couldn'd

get on with the 'ST7 Visual Develop'.

I wrote a simple ASM-programm and got many errors wich I don't

understand. (see in the attached file 'boot.asm')

st7/

#include ''st72f521r6.inc''

segment byte at: FFFE 'vector' ; RESET

dc.w BANK0

BANK0:

NOP

NOP

ld a,#10

END

I put the code and all the other files as a attachment. Do anyone

have an idea why this code could not be assembled.

Thanks for any idea!

venkateswara
Associate II
Posted on April 08, 2005 at 07:05

This modified file may help. You can see the st7 software examples provided on the st web site for more help.

st7/

#include ''st72f521r6.inc''

WORDS

segment byte at F000 'Sector0'

BANK0:

NOP

NOP

ld a,#10

segment byte at: FFFE 'vector' ; RESET

dc.w BANK0 ; reset vector points to 0xF000

END

andreasbuehler19
Associate II
Posted on April 09, 2005 at 12:57

Hallo venky,

Quote:

On 08-04-2005 at 10:35, venky wrote:

st7/

#include ''st72f521r6.inc''

WORDS

segment byte at F000 'Sector0'

BANK0:

NOP

NOP

ld a,#10

segment byte at: FFFE 'vector' ; RESET

dc.w BANK0 ; reset vector points to 0xF000

END

thanks for your idea, but even that simple programme doesn't work. One error is:

E:\PROJEKT\CarSig\Tutorial\Test2\boot.asm(7): as1 : Error 28: More than four characters in single quote! 'at F000 'Sector0'

and there are many more! At the moment I'm really not shure

using the right development enviroment? I've downloaded

'ST7 Toolset' from the ST site, now I'm going to use try the older

version STVD7 V2.5.4 or do a new installation.

:-[

venkateswara
Associate II
Posted on April 11, 2005 at 02:19

Hi abou,

Can you send the workspace and all the related asm files?

May be then I can tell you the exact problem...

bye

venky

andreasbuehler19
Associate II
Posted on April 12, 2005 at 06:08

Hallo venky,

I have found the main reason for my problem so far.

It is really a bad trap that directives are not allowed to stand

in the first column!

But I have still another problem. I want to check code with the

Simulator. The following error occurs then starting the debugger:

'Simulator error: unknown mcu name'

I'm using the ST72F521R6 and this also configured in

[Project Settings]->[MCU Selection] and I put '-d' in the [Defines]

(under [ST7-ASM]) field.

So where does the Simulator get the information which mcu

will be used?

Does for this also exist any strange rules?