On Mon, Jun 20, 2011 at 3:31 AM, Anders Lindgren wrote:
> On 2011-06-18 19:08, Saira wrote:
> > hi! i am a final year student working on project based on MSP430f5437.
> > we are tring to build a pulseoximeter following besed on the design
> > given on TI site but with a few alterations and added applications. we
> > need to check a simple C code that configures the uart, adc and the
> > timer and is used to sample the input at 1024sps and transmit the
> > samples via uart. the problem is that we cannot figure out how to
> > simulate the interrupts on the IAR workbench so that we can verify the
> > code by simulating it before verifying it by burning onto the hardware.
> > when the following code is run in the debig session the registers of the
> > timer are configured but the timer does not count. any help would be
> > extremely appreciated!
>
> Unfortunately, the IAR tools does not simulate peripheral units.
>
> If you really would like to run your system in the simulator, it is
> possible to build a model of peripheral units using advanced breakpoints
> and the C-SPY macro system.
>
> However, as this is not an easy task, I would recommend that you use
> real hardware to debug the low-level parts of your application and use
> the simulator for higher-level verification (whenever it's possible to
> use stubs instead of the real functions).
>
> On the other hand, I would like to point out that unlike TI's own
tools,
> IAR do come with a simulator.
> While we're on the subject of simulating peripheral units -- I've
always
> thought that it would be a perfect community project to implement macro
> modules for simulating peripheral units. I'm sure many of you has put
> together macros for some modules, all that is needed to do is to share
> them between each other.
>
> -- Anders Lindgren, IAR Systems
> --
> Disclaimer: Opinions expressed in this posting are strictly my own and
> not necessarily those of my employer.
>
>
On 2011-06-18 19:08, Saira wrote: > hi! i am a final year student working on project
based on MSP430f5437.
> we are tring to build a pulseoximeter following besed on the design
> given on TI site but with a few alterations and added applications. we
> need to check a simple C code that configures the uart, adc and the
> timer and is used to sample the input at 1024sps and transmit the
> samples via uart. the problem is that we cannot figure out how to
> simulate the interrupts on the IAR workbench so that we can verify the
> code by simulating it before verifying it by burning onto the hardware.
> when the following code is run in the debig session the registers of the
> timer are configured but the timer does not count. any help would be
> extremely appreciated!
Unfortunately, the IAR tools does not simulate peripheral units.
If you really would like to run your system in the simulator, it is
possible to build a model of peripheral units using advanced breakpoints
and the C-SPY macro system.
However, as this is not an easy task, I would recommend that you use
real hardware to debug the low-level parts of your application and use
the simulator for higher-level verification (whenever it's possible to
use stubs instead of the real functions).
On the other hand, I would like to point out that unlike TI's own tools,
IAR do come with a simulator.
While we're on the subject of simulating peripheral units -- I've
always
thought that it would be a perfect community project to implement macro
modules for simulating peripheral units. I'm sure many of you has put
together macros for some modules, all that is needed to do is to share
them between each other.
-- Anders Lindgren, IAR Systems
--
Disclaimer: Opinions expressed in this posting are strictly my own and
not necessarily those of my employer.
Reply by Saira●June 19, 20112011-06-19
hi! i am a final year student working on project based on MSP430f5437. we are
tring to build a pulseoximeter following besed on the design given on TI site
but with a few alterations and added applications. we need to check a simple C
code that configures the uart, adc and the timer and is used to sample the input
at 1024sps and transmit the samples via uart. the problem is that we cannot
figure out how to simulate the interrupts on the IAR workbench so that we can
verify the code by simulating it before verifying it by burning onto the
hardware. when the following code is run in the debig session the registers of
the timer are configured but the timer does not count. any help would be
extremely appreciated!
include "msp430x54x.h"
unsigned char temp[20];
unsigned int count = 0;
unsigned int led=0; //variable to identify which led should be on
//when led is 0 switch RED led ON
//When led is 1 switch IR LED ON