Hello all, I'll jump straight in to the problem.
I've tried creating an InterruptIn for pins 11, 12, and 29, and each one gives the same result. Everything runs fine unless I call the rise method. It's not as simple as just stopping immediately though, the code actually runs for a few more lines before failing (the code it reaches is unrelated to the interrupt). When it fails it doesn't trigger a useful fault, it just stops dead. If I remove the call to rise then everything is fine.
I was initially suspecting some bad playing with pointers, but I can't see anywhere for that to happen. I can't really post the code as it is quite long and involved, but I'm not sure if the behaviour will occur with a simpler test case.
Has anyone else seen this occur?
Hello all, I'll jump straight in to the problem.
I've tried creating an InterruptIn for pins 11, 12, and 29, and each one gives the same result. Everything runs fine unless I call the rise method. It's not as simple as just stopping immediately though, the code actually runs for a few more lines before failing (the code it reaches is unrelated to the interrupt). When it fails it doesn't trigger a useful fault, it just stops dead. If I remove the call to rise then everything is fine.
I was initially suspecting some bad playing with pointers, but I can't see anywhere for that to happen. I can't really post the code as it is quite long and involved, but I'm not sure if the behaviour will occur with a simpler test case.
Has anyone else seen this occur?