Page 1 of 1

Solved: Macro not found in interrupt properties??

Posted: Sun Sep 15, 2024 5:39 pm
by MJU20
I wanted to test a macro call on an interrupt on timer1 in FC10.

I have a macro "PWM2" that exists and can be edited, but when I try to point the timer interrupt to this macro, it does not appear in the drop down box.

Before I've tried to create a new macro to which the interrupt should jump, but the macro was created, but was not visible in the dropdown box.
Macro.jpg
Macro.jpg (104.97 KiB) Viewed 4325 times

Re: Macro not found??

Posted: Sun Sep 15, 2024 6:28 pm
by chipfryer27
Hi

I've just tested with a PIC16F18877 and creating the Macro first and then selecting it in the Interrupt works fine as does creating a new macro from within the Interupt Properties.

What chip are you using? Is it an old chart you are "upgrading"?

Regards

Re: Macro not found in interrupt properties??

Posted: Sun Sep 15, 2024 9:35 pm
by MJU20
Hello Chipfryer,

This chart was made a few hours ago for a ESP32 C3 mini board.
This is the first time that I've seen this behaviour.

All the FC10 updates are in place..

Re: Macro not found in interrupt properties??

Posted: Mon Sep 16, 2024 7:47 am
by chipfryer27
Hi

I created a blank chart using your chip and then a Macro.

Appears to work for me.

ESP_C3_Mini.jpg
ESP_C3_Mini.jpg (64.71 KiB) Viewed 4227 times

Regards

Re: Macro not found in interrupt properties??

Posted: Mon Sep 16, 2024 5:14 pm
by MJU20
New attempt:

- New chart.
- Enable interrupt and choose "create new macro".
- Create new macro and edit
Fine until now. The interrupt shows the new macro..
- Create a new macro and try to point the interrupt to this second one..
- The list of existing macro's in the interrupt properties is empty.
macro.jpg
macro.jpg (65.07 KiB) Viewed 4148 times

Re: Macro not found in interrupt properties??

Posted: Mon Sep 16, 2024 5:21 pm
by Steve-Matrix
Does your "PWM" macro have parameters? If so, it will not show in the list. This is because there is no way of populating the parameters with values when the interrupt occurs. Only macros with no parameters will be shown in the drop-down list.

Re: Macro not found in interrupt properties??

Posted: Mon Sep 16, 2024 6:48 pm
by MJU20
Thanks Steve!

This was the issue!

Maybe something to point out when selecting a macro that has parameters in the interrupt properties?
Like, the macro is shown in the dropdown box but there is a warning that this will not work?

Thanks!