Can't get pwm_out working

I’m trying to get a pwm output on one of the 3 wire ports but I keep getting a memory permission error on the screen. I just created a blank program and put the following code:

If I delete the pwm_out line and the lines in the loop I don’t get the error. Am I doing something wrong or is this just some weird bug?

The error is: “Memory Permission error! 03800D88”

See this

7 Likes

Thank you! I just couldn’t figure out what was wrong but it’s working now.