my upgrade CodeWarrior DSC v8.3 (Classic IDE)

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

my upgrade CodeWarrior DSC v8.3 (Classic IDE)

825 Views
PitOn
Contributor III

Example

Copy current directory

  c:\Freescale\CW MCU v10.5\MCU\DSP56800x_EABI_Tools\command_line_tools\

to

c:\Program Files (x86)\Freescale\CodeWarrior for DSC56800E v8.3\DSP56800x_EABI_Tools\command_line_tools\

Labels (1)
0 Kudos
5 Replies

490 Views
TICS_Fiona
NXP Employee
NXP Employee

When build in IDE, CodeWarrior v8.3 does not run the command line tools under:

c:\Freescale\CW MCU v10.5\MCU\DSP56800x_EABI_Tools\command_line_tools\

0 Kudos

490 Views
PitOn
Contributor III

Hi Fiona

How to determine at compile time memory model ? DCS Codewarrior

0 Kudos

490 Views
TICS_Fiona
NXP Employee
NXP Employee

To accesses all data by 24-bit addressing modes:

If you build with command line tool, please use -largedata option.

If you build in CodeWarrior IDE, please open target settings by 'ALT'+'F7', and go to Code Generation -> M56800E Processor panel, enable option Large Data Model

0 Kudos

490 Views
PitOn
Contributor III

The question is not  set addressing modes . How to determine the memory model at compile time ?

#if(MEMORY_MODEL)

/*    Large Memory Model defines */

#define LoadRx    move.l

#define StoreRx   move.l

#define TestRx    tst.l

#define PTR_SIZE  2

#else

/*   Small Memory Model defines */

#define LoadRx    moveu.w

#define StoreRx   move.w

#define TestRx    tst.w

#define PTR_SIZE  1

#endif

0 Kudos

490 Views
PitOn
Contributor III

Answer himself. Рredefined masros __m56800E_lmm__

#if __m56800E_lmm__

/*    Large Memory Model defines */

#define LoadRx    move.l

#define StoreRx   move.l

#define TestRx    tst.l

#define portPOINTER_SIZE_TYPE unsigned portLONG

#else

/*   Small Memory Model defines */

#define LoadRx    moveu.w

#define StoreRx   move.w

#define TestRx    tst.w

#define portPOINTER_SIZE_TYPE unsigned portSHORT

#endif

0 Kudos