Solved: Macro not found in interrupt properties??

For general Flowcode discussion that does not belong in the other sections.
Post Reply
MJU20
Posts: 278
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 81 times
Been thanked: 57 times

Flowcode v10 Solved: Macro not found in interrupt properties??

Post 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 271 times
Last edited by MJU20 on Mon Sep 16, 2024 6:48 pm, edited 1 time in total.

chipfryer27
Valued Contributor
Posts: 1281
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 312 times
Been thanked: 452 times

Re: Macro not found??

Post 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

MJU20
Posts: 278
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 81 times
Been thanked: 57 times

Re: Macro not found in interrupt properties??

Post 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..

chipfryer27
Valued Contributor
Posts: 1281
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 312 times
Been thanked: 452 times

Re: Macro not found in interrupt properties??

Post 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 173 times

Regards

MJU20
Posts: 278
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 81 times
Been thanked: 57 times

Flowcode v10 Re: Macro not found in interrupt properties??

Post 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 94 times

Steve-Matrix
Matrix Staff
Posts: 1355
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 182 times
Been thanked: 317 times

Re: Macro not found in interrupt properties??

Post 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.

MJU20
Posts: 278
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 81 times
Been thanked: 57 times

Re: Macro not found in interrupt properties??

Post 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!

Post Reply