Hi
bonjour
j'ai réinstallé code warrior special edition sur mon PC.
I have reinstalled code warrior special edition on my PC.
en assembleur : aucun problem
With assembler no problem all is work correctly
en C , il compile et charge correctement le mpu au travers de multilink universal depuis un ancien program écrit en C
With C langage code Warrior work correctly whitout error with an old little programme writing in C
mais quand je crée un nouveau programme en C et ou C++ , il me donne un message d'erreur
Then when I want create a new program in C, I get this error.
"Failed to resume target process., The debugger download size has been exceeded. This limit is specified in the license file."
De plus, le fichier licence n'existe pas.
When I open the window about licence, no licence is show.. I think that is normal because codeWarrior sepcial edition don't use it
le source est celui-ci:
The program I want to create is the follow:
#include <hidef.h> /* for EnableInterrupts macro */
#include "derivative.h" /* include peripheral declarations */
/********************************************* page zero forçage */
#pragma DATA_SEG __SHORT_SEG MY_ZEROPAGE
#pragma DATA_SEG DEFAULT
void main(void)
{
EnableInterrupts;
SOPT1_COPE = 0;
SOPT1_RSTPE = 0;
PTADD = 0xff;
PTAD = 255;
for(;;)
{
PTAD = 255;
}
}
Merci pour votre aide
For which version/product microcontroller are you compiling for? I do not know if it is the cause or not, but I do not think the special edition does not have support for all versions of the microcontrollers, and perhaps you are targeting a version of MC9S08 controller that is not included by the compiler?
it is the product s08QD4. Code warrior work correctly with another program of an old project for the same product QD4.
When I try to compile a new project that I get this error.
may be it is since I reinstalled code warrior special edition.
thank and sorry for my bad english.
Votre Anglais est bien, mais mon Francais est bien pire!
I have switched from using CW to another vendor for project compatability reasons, but I will see if I can recreate your error as I still have CW installed on my PC.
I *think* that the problem is with the use of your line :
#pragma DATA_SEG __SHORT_SEG MY_ZEROPAGE
Though I would have expected it to be flagged as error during compilation and not downloading.
If you go to the CW help and type in: #prgama DATA_SEG __SHORT_SEG
it actually shows a file with textgiving that as incorrect usage when used with the #pragma DATA_SEG DEFAULT
I think that one of the Freescale support people may be along soon to render aid, but as for now, this is the only advice that I can think of.
It is work only with compiler C but not if I select C++ !
So codewarrioir special edition seem not accepted C++
May be it is write into documentation.. I have don't seen
again thank for your help
best regards
Yes, it is correct that C++ support is only allowed with the paid, professional edition of the CW tools. I do not find it in the help documentation but it does give a small notice on the bottom of the project properties dialog if you change selection from "C" to "C++" when creating a new project. Since the Special Edition runs without the professional paid license, I can see where this would cause an error/failure.
So, hopefully this will be the last of the problems for your project!
Actually, for a small device like 9S08QD4, I like to remain in "C" and not "C++" as C++ can add extra collection/management code (as it should) that I do not always think about, and I might run out of code space faster than I expect.
A plus tard!
I had already try without "pragma.." but it is again the same error
I will check the program for wich code warrioir accepts compile else I will work with assembler ...
Realy the C++ is not indispensable for my little development.
If I find a solution later , I will do know to you.
thank you for your responses and reactivity.