AnsweredAssumed Answered

S1ZVMC CW11.0 crash when loading EEPROM const

Question asked by phil74 Employee on Mar 27, 2019
Latest reply on Apr 25, 2019 by ZhangJennie

Hello,

 

My customer (Sonceboz) cannot debug anymore while initializing S12ZVMC EEPROM.

I have also reproduced it myself:  CW11.x crash when trying to flash a .elf file containing const value while debugging.

So debugging is not possible anymore if using "const".

This is not the case when Flashing the .sw file using "Flash file to target"  menu.

 

I use CW11.0 + P&E Multilink FX + S12ZVMC EVB.

Find attached the project to reproduce the behavior

 

Const is define as :

#pragma CONST_SEG MY_EEPROM
   volatile const long  EEP = 0xAA;
#pragma CONST_SEG DEFAULT

 

and     MY_EEPROM   INTO  EEPROM;  in the *.prm file

 

if    "MY_EEPROM INTO   EEPROM" is removed the crash does not occurs .

 

Did I miss something ?

 

Thanks in advance for your help

BR,

Philippe

Attachments

Outcomes