cancel
Showing results for 
Search instead for 
Did you mean: 

AD7924, BSPI, STR710 + Hitex Hitop (need help with code for BSPI0 or BSPI1)

aeternitas26
Associate II
Posted on August 20, 2007 at 13:34

AD7924, BSPI, STR710 + Hitex Hitop (need help with code for BSPI0 or BSPI1)

6 REPLIES 6
aeternitas26
Associate II
Posted on July 31, 2007 at 12:28

hi

has anyone experience with hitop and the str710? i'm trying to get the bspi working with an AD7924 12-Bit AD-Converter, but I always get error messages using the software library.

error messages are: directory or file not found, although i have linked them in the header files.

any idea how i can do my project without buying new hardware? i tried to set a simple project with starteasy, but it is using different librarys, so when i replace them, i have the same errors again... ?!?

[ This message was edited by: Konfi on 15-08-2007 15:16 ]

aeternitas26
Associate II
Posted on July 31, 2007 at 13:52

here is the error for one of the multiple header files

arm-hitex-elf-gcc.exe -c -gdwarf-2 -MD -O1 -mapcs-frame -mcpu=arm7tdmi -w -mthumb-interwork -I.\source\ -I.\C:\startEasyforARM\BSPIself\ -I.\C:\startEasyforARM\BSPIself\source\ -I.\C:\startEasyforARM\BSPIself\include\ -o .\objects\adco ..\BSPIself\source\adcc

..\BSPIself\source\adcc:21:19: error: adch: No such file or directory

..\BSPIself\source\adcc: In function 'ADC12_Init':

..\BSPIself\source\adcc:34: error: 'ADC12' undeclared (first use in this function)

..\BSPIself\source\adcc:34: error: (Each undeclared identifier is reported only once

..\BSPIself\source\adcc:34: error: for each function it appears in.)

..\BSPIself\source\adcc: At top level:

..\BSPIself\source\adcc:44: error: parse error before 'Adc12_clk'

..\BSPIself\source\adcc: In function 'ADC12_PrescalerConfig':

..\BSPIself\source\adcc:47: error: 'ADC12' undeclared (first use in this function)

..\BSPIself\source\adcc:47: error: 'vu16' undeclared (first use in this function)

..\BSPIself\source\adcc:47: error: 'RCCU_PCLK' undeclared (first use in this function)

..\BSPIself\source\adcc:47: error: 'Adc12_clk' undeclared (first use in this function)

..\BSPIself\source\adcc: At top level:

..\BSPIself\source\adcc:58: error: parse error before 'NewState'

..\BSPIself\source\adcc: In function 'ADC12_ITConfig':

..\BSPIself\source\adcc:60: error: 'NewState' undeclared (first use in this function)

..\BSPIself\source\adcc:60: error: 'ENABLE' undeclared (first use in this function)

..\BSPIself\source\adcc:63: error: 'ADC12' undeclared (first use in this function)

..\BSPIself\source\adcc:68: error: 'ADC12_IT0_Mask' undeclared (first use in this function)

..\BSPIself\source\adcc:69: error: 'ADC12_IT1_Mask' undeclared (first use in this function)

..\BSPIself\source\adcc:70: error: 'ADC12_IT2_Mask' undeclared (first use in this function)

..\BSPIself\source\adcc:71: error: 'ADC12_IT3_Mask' undeclared (first use in this function)

..\BSPIself\source\adcc:77: error: 'ADC12_IT_Mask' undeclared (first use in this function)

________________

Attachments :

linker.jpg : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtAM&d=%2Fa%2F0X0000000aJp%2FrcBDlhE7ZsLtW5bMSX1lsbVGIs7iPE57p0Ote27I7ds&asPdf=false
wolfen
Associate II
Posted on July 31, 2007 at 14:00

The problems are because of the line ''..\BSPIself\source\adc12.c:21:19: error: adc12.h: No such file or directory''. You have to verify this file is in the right place, and added correctly in your project. Maybe the #define in the .c file is not written well, with <> instead of '''', some things like that occur sometimes.

What is the IDE you use ?

aeternitas26
Associate II
Posted on August 03, 2007 at 04:37

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6XL&d=%2Fa%2F0X0000000bqA%2FZ.46nSqG7D.Ge3Sw0jefJhGVPB_GP2h6gTlqmSXZ8KU&asPdf=false
aeternitas26
Associate II
Posted on August 15, 2007 at 11:45

does anyone have any ideas, what I can do to get my AD working?

aeternitas26
Associate II
Posted on August 20, 2007 at 13:34

does work now. *CLOSED*