variables flowcode9

For general Flowcode discussion that does not belong in the other sections.
Post Reply
d820513
Posts: 56
http://meble-kuchenne.info.pl
Joined: Thu Aug 19, 2021 1:14 pm
Has thanked: 2 times
Been thanked: 1 time

variables flowcode9

Post by d820513 »

Why can't the flowcode 9 variables be visible in the proteus ???
Attachments
exp_verb.png
exp_verb.png (187.19 KiB) Viewed 2359 times

OlegKRS
Posts: 9
Joined: Wed Dec 16, 2020 9:32 am
Been thanked: 3 times

Re: variables flowcode9

Post by OlegKRS »

Hi,

To see the variables in proteus * .elf file you need in the file avra.bat instead of the key "-Os", register the key "-g". It should turn out like this:

"%~dp0..\bin\avr-gcc.exe" -mmcu=%1 -g -ffunction-sections -fdata-sections -funsigned-char -o %2 %3 -lm -Wl,-gc-sections.

In this case , the compiler will create a file .elf without optimization and proteus will be able to see the variables.
File avra.bat is located in the folder: "C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\batchfiles".

d820513
Posts: 56
Joined: Thu Aug 19, 2021 1:14 pm
Has thanked: 2 times
Been thanked: 1 time

Re: variables flowcode9

Post by d820513 »

thanks, it worked

d820513
Posts: 56
Joined: Thu Aug 19, 2021 1:14 pm
Has thanked: 2 times
Been thanked: 1 time

Re: variables flowcode9

Post by d820513 »

Oleg, thank you, could you tell me how I can send text to uart through the flowcode console?
I can not find it

OlegKRS
Posts: 9
Joined: Wed Dec 16, 2020 9:32 am
Been thanked: 3 times

Re: variables flowcode9

Post by OlegKRS »

Hi

Sorry, but I do not know how send text to uart through the flowcode console.

BenR
Matrix Staff
Posts: 1774
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 452 times
Been thanked: 612 times

Re: variables flowcode9

Post by BenR »

Hello,

Ive created a new component that should simplfy this for you.

To get the new component simply go to the Help -> Library updates and then change files in use to full database.

Here is an example using the new component.
ConsoleDemo.fcfx
(8.35 KiB) Downloaded 99 times
Then simple type your data to transmit into the User Data console.

Post Reply