11 years ago.

Problem while running a simple PWM code from LPCXpresso IDE

We're getting a run time error anytime when trying to run code on our customer PCB that includes PwmOut via the LPCxpresso compiler - No compiler error occured- it works fine with the mbed. The binary code given by mbed compiler works fine on our customer PCB.

An image of the error is below.

This is the simple program that evokes this error. Again, the initialization of PwmOut causes it in LPCxpresso.

#include mbed.h
PwmOut pwm(p26);

int main() {
   pwm=0.5;
}

Any ideas?

/media/uploads/ece477team6/error.png

We used the mbed SDK instead of the binary build library and think we were able to pinpoint the problem. Looks like the hardware exception occurs. The following image should be helpful:

/media/uploads/ece477team6/sdk.png

I understand that mbed could not give support to all the offline toolchains. But if someone knows something about it, We appreciate it very mych

Question relating to:

Be the first to answer this question.