This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

three problems of msp430F5438 with sys/bios 6.31.0.4.27 and ccs v5.0.3.

Other Parts Discussed in Thread: MSP430F5438, SYSBIOS

Hello.

I have a working project on msp430F5438 with sys/bios 6.31.0.4.27 and ccs v5.0.3I come across many problems which I can’t solve.

1.    I add a Idle function with the following methods in the *.cfg file ,

var Idle = xdc.useModule('ti.sysbios.knl.Idle');

Idle.addFunc("&myIdleFxn");

but when I add a breakpoint in ‘myIdleFxn’ function,the breakpoint is gray. The breakpoint can’t work and graph Exec Gragh also can’t see the myIdleFxn working.

2.     when I add the load module ,log module,logbuf modele and rta module in default.I can see the graph Exec working with runing threads.But I can’t

See the cpu load and thread load.Then I change the configuration sets the

Agent.transport property to Agent.Transport_USER.but it didn’t work too.

How can I get the load graph?

 

3. When I want to use the Port2 interrupt,I use the 430 special hwi module with following configuration. But I can’t enter the interrupt service routines when I give port2 a failling edge. Then I try to use Hwi_enableInterrupt(42) and ti_sysbios_family_msp430_Hwi_enableInterrupt__E(42),but they don’t work any more, besides the program is being halt with the console toolbay indicate that

 “implemented: Hwi_enableInterrupt

 xdc.runtime.Error.raise: terminating execution “.

 

var ti_sysbios_family_msp430_Hwi = xdc.useModule('ti.sysbios.family.msp430.Hwi');

var Hwi = xdc.useModule('ti.sysbios.family.msp430.Hwi');

var instHwi0Params0 = new Hwi.Params();

instHwi0Params0.eventId = 42;

instHwi0Params0.priority = 5;

var instHwi0 = Hwi.create(42, "&myHwiFxn", instHwi0Params0);

 

when I configure the register with the following sentence and give port2 a failling edge. Then I can enter the interrupt service routines!

P2DIR  = 0x00;                     

P2OUT  = 0x00;                      

P2IES  = 0xff;                 

P2IE   = 0xff;                      

P2IFG  = 0x00;        

But I think it is not a good way to make interrupt work.Can you give me a detail description about how to use the special hwi interrupt (including how to start and stop) and give me a code example? And where can I get the sample program for msp430.

 

Think you very much!