Skip to main content
life758
Associate III
November 20, 2015
Question

no definition for ''__iar_data_init3''

Posted on November 20, 2015 at 14:14

Hello everybody

I want to declare a vector to save data on it (in assembly code).

I use this declaration:

      SECTION MYDATA:DATA (2)

        DATA

Result DS8   3 ;  allocates space (3 bytes)

When I compile, IAR give me this error:

Error[Lp001]: no definition for ''__iar_data_init3'' [needed to initialize section MYDATA (asm.o #6)] 

Anyone have any idea how to fix this?

regards
    This topic has been closed for replies.

    2 replies

    Amel NASRI
    ST Technical Moderator
    November 26, 2015
    Posted on November 26, 2015 at 17:14

    Hi engkyr,

    If you didn't yet find a solution for this issue, I suggest you describe it in

    https://www.iar.com/support/#%21?tab=resources

    .

    -Mayla-

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
    life758
    life758Author
    Associate III
    November 27, 2015
    Posted on November 27, 2015 at 11:55

    Thanks Mayla,

    At the end I didn't use any directive. I did it ''manually''