Lundin:
- Maybe this is an old project which you have ported to newer versions of Codewarrior? The .CMD files were used in earlier versions, I believe they are obsolete nowadays. Have you tried to create a completely new project, then add the source files (and .PRM file) to that project?
I have already made a new project (severals) and I keep having the same problem. But when I change the .ini file flash is erase and written
- Maybe you have the wrong derivate specified somehow. The different S12 derivates have somewhat different flash. Have you tried to program the MCU with Cyclone Pro stand-alone, by creating a load file out of the binaries? (.s19 / .phy)
The derivate is ok, the MCU is MC9S12A256B and that's what I choose in the project wizard. I haven't try your suggestion of loading
Kef:
What you say was my first guess.... But I dismissed that when I realize that flash routine was throwing the error "FLASH_NOT_ERASED" when try to progam it.
EDIT:
I forgot to say that the error was trown only the first time I run it, after downloading the code... All the following times I run it (previously reset) the flash is erased and written. No error is trown and I can see the values written in the memory component