Problem of simulate S12g demo by Trace32

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Post Reply
hossein
Newbie
Posts: 5
Joined: Wed May 04, 2016 8:06 am

Problem of simulate S12g demo by Trace32

Post by hossein » Wed May 04, 2016 10:48 am

Hi,
I tried to simulate ORTI with Trace32 but I wasn't successful. I performed the following steps:
1. make a default project of RT_Droid with MC9S12G128 Example and Cygwin GCC Toolchain.
then select menu FILE> New > RT_Droid OIL and C/C++ Project > Select with templates: S12g >codewarrior > multistack_event_demo
2.Active ORTI in OIL file:
OS EE { ...
/* This generates the ORTI File used by lauterbach Trace32! */
ORTI_SECTIONS = ALL;
... }
3. I built a project and compiled it successfully.But Eclipse generated only 'system.orti' file and didn't generate any .cmm file
4. Start Trace32 HC12 SIMULATOR demo with 't32.cmm' script that has included 'Data.LOAD.ELF s12.elf' and 'Task.ORTI system.orti' and 'System.CPU MCS12G128' syntax.
5. Click "GO" Then code started to run.
But Program Counter waits in the following line :
while(!CPMUFLG_UPOSC || !CPMUFLG_LOCK); // wait for ext osc to stabilize and pll to lock
I can set PC to the next line and run again, But Alarms counter is not active.

Could you please help me for solving this problem?

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Problem of simulate S12g demo by Trace32

Post by paolo.gai » Wed May 04, 2016 11:09 am

Dear Hossein,

We never supported officially Trace32 with S12.

But as Evidence we will be happy to provide commercial support for doing that. If you are working for a company, just contact us on info "at" evidence "dot" eu "dot" com, and we could discuss some possibility of collaboration.

Regards,

PJ

Post Reply