Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 8 months 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?
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:
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