hcs08

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

hcs08

842 Views
Francois
Contributor I

Hello,

 

I've a little issue with CodeWarrior on HCS08SG32:

When compiling the following lines, in the first case, the compiler make a reference to a strange location (0x0232).

I think that if the line 0x8be8 (LDA 0x232 which has nothing to do here  was replaced by CLRA, it would be OK.

Any comment would be appreciated.

 

Francois

 

Case not OK

n = (long)(RamRO.Tle[1].TleValueAvg) * (Data.Tle[0].Range);

 

8bdd:   CD9BD5 JSR 0x9BD5 _SEXT16_32 (0x9bd5)

8be0:   C68017 LDA 0x8017

8be3:   CE8016 LDX 0x8016

8be6:   87 PSHA

8be7:   89 PSHX

8be8:   C60232 LDA 0x0232

8beb:   87 PSHA

8bec:   87 PSHA

8bed:   95 TSX

8bee:   89 PSHX

8bef:   8B PSHH

8bf0:   AF04 AIX #4

8bf2:   CD9B7F JSR 0x9B7F _LMUL (0x9b7f)

 

 

Case OK

n = (long)(RamRO.Tle[1].TleValueAvg) * Data.DummyUint;

 

8bdd:   CD9BD0 JSR 0x9BD0 _SEXT16_32 (0x9bd0)

8be0:   328020 LDHX 0x8020

8be3:   4F CLRA

8be4:   89 PSHX

8be5:   8B PSHH

8be6:   87 PSHA

8be7:   87 PSHA

8be8:   95 TSX

8be9:   89 PSHX

8bea:   8B PSHH

8beb:   AF04 AIX #4

8bed:   CD9B7A JSR 0x9B7A _LMUL (0x9b7a)

 

typedef struct

{

/* DataFlash area */

/* Parameters for Tle */

StructDataTle Tle[2];

uint DummyUint;

}

StructData;

Labels (1)
0 Kudos
7 Replies

665 Views
Francois
Contributor I

Bonjour Pascal,

I've upgraded to cw 10.6.4 and now I do no find the same problem.

I don't know what hes been fixed in Cw also.

If it appears again I'll let you know.

Best regards

francois

0 Kudos

665 Views
trytohelp
NXP Employee
NXP Employee

you're welcome.

Have a great day,
Pascal
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

665 Views
Francois
Contributor I

Hello Pascal,

Thank you for your help.

The version I have is :

Installed Products:

- CodeWarrior for MCU

  Version: 10.6

  Build Id:140329

I'll check for patches ffor MCU.

Best regards

francois

0 Kudos

665 Views
trytohelp
NXP Employee
NXP Employee

Bonjour Francois,

The last tool version is:

Installed Products:

- CodeWarrior for MCU

    Version: 10.6.4

    Build Id:150416

The compiler version used is:

    ANSI-C/cC++ Compiler for HC08 V-5.0.45 Build 14019, Jan 20 2014

It should be the same version used on MCUI V10.6.

What is the definition of StructDataTle ?

Else can you please correct the attached file ?

By this way you could check the code on our side.


Have a great day,
Pascal
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

665 Views
Francois
Contributor I

There is no error message in CodeWarrior, the program compiles and runs but the result of the operation of the first case  is completely wrong.

francois

0 Kudos

665 Views
trytohelp
NXP Employee
NXP Employee

Francois,

What is the tool version you're using ?

To do that you must:

  Under CodeWarrior IDE (classic)

                Start the IDE and click on Help | About Freescale CodeWarrior.

                Click on Installed Products

                Provide us all info displayed.

                Or you can save them in a txt file.

  Under Eclipse IDE

    1-        Start Eclipse and click on Help ¦ Freescale Licenses

                The Status column gives the status of the license.

                The Version Column gives the tool version used.

Under Product, select it and click on details.

                A new dialog show up giving license details.

    2-        Start Eclipse and click on Help ¦ About CodeWarrior Development Studio

Under Installed Products, you will see the version used.

    3-        Some patches can be installed too.

Most of the time Release_Notes should be added in the \MCU (for CW for MCU) folder.

If the Installed Products is not available for older version you should find information in the welcome.txt

under the installation folder.

Have a great day,
Pascal
NXP Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

665 Views
BlackNight
NXP Employee
NXP Employee

What is the exact error message?

Erich

0 Kudos