Internal DAC error FC8

Moderator: Benj

Post Reply
pollob
Posts: 14
Joined: Sun Jan 26, 2020 4:26 am
Has thanked: 3 times
Been thanked: 5 times
Contact:

Internal DAC error FC8

Post by pollob »

sir,
Internal DAC of atxmega32a4 doesn't work.it's giving error while compiling.

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Internal DAC error FC8

Post by kersing »

Can you post (attach as file) a flowchart that shows the problem?
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Internal DAC error FC8

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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Internal DAC error FC8

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

pollob
Posts: 14
Joined: Sun Jan 26, 2020 4:26 am
Has thanked: 3 times
Been thanked: 5 times
Contact:

Re: Internal DAC error FC8

Post 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

pollob
Posts: 14
Joined: Sun Jan 26, 2020 4:26 am
Has thanked: 3 times
Been thanked: 5 times
Contact:

Re: Internal DAC error FC8

Post by pollob »

now its work fine.thanks :D

Post Reply