Page 1 of 1

Internal DAC error FC8

Posted: Thu Feb 06, 2020 2:56 pm
by pollob
sir,
Internal DAC of atxmega32a4 doesn't work.it's giving error while compiling.

Re: Internal DAC error FC8

Posted: Thu Feb 06, 2020 9:24 pm
by kersing
Can you post (attach as file) a flowchart that shows the problem?

Re: Internal DAC error FC8

Posted: Fri Feb 07, 2020 11:53 am
by Benj
Hello,

There is nothign available in the channel drop down so either the device does not have an internal DAC or we don't currently support it.

Looking at the datasheet I see it does have a DAC so I'll see how easy a job it is to add support for it.

Re: Internal DAC error FC8

Posted: Fri Feb 07, 2020 2:49 pm
by Benj
Hello,

I've now added support for the two DAC channels onboard the ATXMEGA16A4 and ATXMEGA32A4 devices, if you do a full update (Help -> Check for updates) then you should get all the files required.

For help see here.
https://www.matrixtsl.com/wiki/index.ph ... _all_files

Let me know how you get on.

Re: Internal DAC error FC8

Posted: Fri Feb 07, 2020 5:17 pm
by pollob
this is the output from com compiler
Target folder: C:\Users\pollob\Desktop\NEWFOL~2
Source name: C:\Users\pollob\Desktop\New folder (2)\Flowcode1.fcfx
Title:
Description:
Device: AVR.ATXMEGA.ATXMEGA32A4
Generated by: Flowcode v8.2.1.13
Date: Friday, February 07, 2020 22:16:31
Users: 1
Registered to:
License key: *****
https://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\avr\batchfiles\avra.bat atxmega32a4 "C:\Users\pollob\Desktop\NEWFOL~2\Flowcode1.elf" "C:\Users\pollob\Desktop\NEWFOL~2\Flowcode1.c" "C:\Users\pollob\Desktop\NEWFOL~2\Flowcode1.lst"

C:\Users\pollob\Desktop\NEWFOL~2>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atxmega32a4 -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\pollob\Desktop\NEWFOL~2\Flowcode1.elf" "C:\Users\pollob\Desktop\NEWFOL~2\Flowcode1.c" -lm -Wl,-gc-sections
C:\Users\pollob\AppData\Local\Temp/cc53vcpk.o: In function `main':
Flowcode1.c:(.text.main+0x0): undefined reference to `FC_CAL_DAC_Enable_1'
Flowcode1.c:(.text.main+0x8): undefined reference to `FC_CAL_DAC_SetOutput_1'

Error returned from [avr-gcc.exe]

C:\Program Files (x86)\Flowcode\Common\Compilers\avr\batchfiles\avra.bat reported error code 1

Autoclose turned off


FINISHED

Re: Internal DAC error FC8

Posted: Fri Feb 07, 2020 5:33 pm
by pollob
now its work fine.thanks :D