Page 1 of 1

EBM007 ENCODER compile error

Posted: Thu Mar 25, 2021 10:18 pm
by DAVIDJOINER
Hi

Problem with EBM007 rotary encoder created in FC9 does not appear to compile as per enclosed attachments

Note however appears to compile okay if same program is compiled in FC8

Can you advise

Regards
David

Re: EBM007 ENCODER compile error

Posted: Thu Mar 25, 2021 11:44 pm
by medelec35
Hi, David.
Your flowchart compiles for me OK.

Code: Select all

Target folder: C:\Users\medel\Downloads
Source name:   C:\Users\medel\Downloads\EBM007_ENCODER_TEST.fcfx
Title:         
Description:   
Device:        ARD.ATMEGA.ATMEGA2560
Generated by:  Flowcode v9.0.0.23
Date:          Thursday, March 25, 2021 23:33:51
Users:         1
Registered to:
Licence key: 
  https://www.flowcode.co.uk
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\batchfiles\avra.bat  atmega2560 "C:\Users\medel\Downloads\EBM007_ENCODER_TEST.elf" "C:\Users\medel\Downloads\EBM007_ENCODER_TEST.c" "C:\Users\medel\Downloads\EBM007_ENCODER_TEST.lst"

C:\Users\medel\Downloads>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avrv5\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega2560 -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\medel\Downloads\EBM007_ENCODER_TEST.elf" "C:\Users\medel\Downloads\EBM007_ENCODER_TEST.c" -lm -Wl,-gc-sections 

C:\Users\medel\Downloads>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avrv5\BATCHF~1\..\bin\avr-objdump.exe" -S "C:\Users\medel\Downloads\EBM007_ENCODER_TEST.elf"  1>"C:\Users\medel\Downloads\EBM007_ENCODER_TEST.lst" 

C:\Users\medel\Downloads>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avrv5\BATCHF~1\..\bin\avr-size.exe" -B -d "C:\Users\medel\Downloads\EBM007_ENCODER_TEST.elf" 
   text	   data	    bss	    dec	    hex	filename
    586	      0	     13	    599	    257	C:\Users\medel\Downloads\EBM007_ENCODER_TEST.elf

Compilation successful!

Launching the linker/assembler...
C:\Program Files (x86)\Flowcode\Common\Compilers\avrv5\batchfiles\avrb.bat  "C:\Users\medel\Downloads\EBM007_ENCODER_TEST.elf" "C:\Users\medel\Downloads\EBM007_ENCODER_TEST.hex" "C:\Users\medel\Downloads\EBM007_ENCODER_TEST.cof"

C:\Users\medel\Downloads>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avrv5\BATCHF~1\..\bin\avr-objcopy" -O ihex -R .eeprom  "C:\Users\medel\Downloads\EBM007_ENCODER_TEST.elf" "C:\Users\medel\Downloads\EBM007_ENCODER_TEST.hex" 

HEX file creation successful!


FINISHED

Can you check your components are up to-date & Sensors pack is enabled?

Re: EBM007 ENCODER compile error

Posted: Fri Mar 26, 2021 7:44 am
by DAVIDJOINER
Hi

Thats strange especially as i said before it runs okay on FC8

I did only recently buy the sensor pack for FC9 specifically for the rotary sensor function

But as per your sugestion I rechecked the license and it is showing sensor pack is enabled

Re run the compile again and same result

Any other ideas

David

Re: EBM007 ENCODER compile error

Posted: Fri Mar 26, 2021 9:11 am
by medelec35
Hi, David.
I tried an experiment and deleted the EBM007_RotaryEncoder component from the v9 components folder.
So, of course I will get the same results as you after I reloaded flowchart.
The interesting thing to note is, I then ran an update, and EBM007_RotaryEncoder was not flagged as missing.
For now can you try something?
In file explorer address bar, paste this:

Code: Select all

C:\ProgramData\MatrixTSL\FlowcodeV9\Components
Extract the component within the attached file and save it into the above hidden folder.
Can you let me know if it asks if OK to replace the file in the destination or not?
Just select Replace the file in the destination if it asks.
If you got Flowcode loaded when file was placed the the components directory, you must select the reload icon before compiling again.

Re: EBM007 ENCODER compile error

Posted: Fri Mar 26, 2021 11:47 am
by BenR
Hello,

I'm afraid that the rotary encoder is part of the mechatronics pack and not the sensors pack. I think this might be what is causing your issue.

Looking at our licensing information it appears to be included as BasicIO and another as part of Sensors but currently these are part of the Machatronics pack.

We are investigating what has gone wrong here.

Re: EBM007 ENCODER compile error

Posted: Fri Mar 26, 2021 2:50 pm
by DAVIDJOINER
Ben

If true I need the mechatronics pack thats not good at all

The only reason i bought the sensor pack recently was that on the component selection window FC9 it stated that you needed the sensor pack to run the EBM007 component

Trust you will honour your documentation and enable the EBM007 in the sensor pack in this case

Best Regards

David

Re: EBM007 ENCODER compile error

Posted: Tue Mar 30, 2021 8:28 am
by DAVIDJOINER
Hi Ben

Any progress on this yet as need to get the EBM007 activated / working

Best Regards
David

Re: EBM007 ENCODER compile error

Posted: Tue Mar 30, 2021 11:37 am
by AlfieD
Hi David,

I have switched the Sensors pack for Mechctronics on your licence.

You may need to refresh your licence to enable this, which you can do by going into Flowcode 9: Help >> Manage Licences >> My Flowcode Licence and type the username and password again.

If you have further problems here you are welcome to email me: Alfie.dobson@matrixtsl.com

Re: EBM007 ENCODER compile error

Posted: Tue Mar 30, 2021 1:44 pm
by DAVIDJOINER
Hi Alfie

Activated the new license

Tried out the component and now all working fine

Many thanks

David