Can't flash mc68evb912bc32

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

Can't flash mc68evb912bc32

Jump to solution
2,865 Views
Evgenij
Contributor III
Hello.
I have a problem - I can't correctly write my programms to flash of EVB. Please, help, I'm very confused about it and don't know what to do yet.
I generate .s19 file with CodeWarrior, it looks right. Connect computer to EVB via COM port, connect +12 V to EVB, set Vfp on EVB, set bootload mode (J3 and J4 to pos A), press RESET on EVB. Then I have message "(E)rase, (P)rogramm, (L)oad" at my computer terminal. It's right. So I press E and get message "Erase" (it's right too). Then I write my .s19 file to EVB and for some time and a lot of stars (*) get message "Programmed". It's right too. So, as I think, all done correctly and I cut +12 V, set Vpp on EVB, change mode to 'EVB' (J3, J4 to pos. B) and reset controller (or turn off/on) and get nothing! I don't know what to do. I've already tried to programm EVB with different programms, changed settings of .s19 file generation, nothing help.
Please help me, give some advice. In my programms I changed interrupts to alternative addresses (0xf7c0 - 0xf7ff), also I have pair of EVBs and noone works, so it's problem of .s19 files (but it looks right and programm succesfull) or bootload modes. May it be that controller don't jump to startup vector 0xf7ef?
Thanks.
Labels (1)
Tags (1)
0 Kudos
1 Solution
755 Views
Evgenij
Contributor III
Thanks for reply.
My table is correct, because I have example, that works. But COP.. Realy, I forgot about this. I watch example once more and find string _DISABLE_COP ();. So, may be, problem is here. I'll complement my projects with disabling COP and write result.
Thank you.

View solution in original post

0 Kudos
7 Replies
755 Views
J2MEJediMaster
Specialist I
Have you tried downloading one of the CodeWarrior example programs and see if that works? If so, then the problem is definitely in your code. I'd guess that you setting up your interrupt vector table incorrectly, or maybe the COP timeout is taking the program out.

---Tom
0 Kudos
756 Views
Evgenij
Contributor III
Thanks for reply.
My table is correct, because I have example, that works. But COP.. Realy, I forgot about this. I watch example once more and find string _DISABLE_COP ();. So, may be, problem is here. I'll complement my projects with disabling COP and write result.
Thank you.
0 Kudos
755 Views
Evgenij
Contributor III
The problem isn't in COP and I don't know in what is. I'm first in such situation. So, I'll try to find person who worked with such evaluation board. If something will go from dead point I'll wright here.:smileyindifferent:
0 Kudos
755 Views
J2MEJediMaster
Specialist I
You can try searching these forums because similar problems have been posted here before. I'd try searching with the strings "vector" "table" "restart" and variations of these, such as "exception" and "interrupt" instead of "vector".

Just to confirm: the program was working before you made the changes?

---Tom

0 Kudos
755 Views
Evgenij
Contributor III
Thanks. I've already search this forum for different combinations and find a lot of posts with alike problems of flashing or interrupts problems, but all of them belong to 'microcontrollers' but not to 'evaluation board with microcontroller'. Difference is that evaluation board and single microcontroller programming by different ways, so the main combination for searching for me are "evb" or "evaluation board", or may be "bootloader". There are only little information about EVBs and most about single microcontrollers on forum.
I've find person, who worked with such EVBs and got from him project, that must works. But it has no interrupts. I'll try to replace his code by mine and flash it. After this I'll write results.
Best regards.

0 Kudos
755 Views
Evgenij
Contributor III
I solve my problem. All works fine now.
The problem was in some string in main file that don't generate when new project creates and no in examples. But there was in project, that I got from a person and I rewrite it to my project. And it works! It flashing to EVB and works correctly.
The string is "#pragma MESSAGE DISABLE  C1420". For what is it? To right disabling COP, may be..
0 Kudos
755 Views
J2MEJediMaster
Specialist I
According to the HC12 Compiler settings panel, this is a warning message, stating that the 'Result of function-call is ignored'. It sounds like there's function in the code that's in bad need of a function prototype.

---Tom
0 Kudos