keil hakkında yardım (yeni basladım)

Başlatan mstfozkan, 16 Ocak 2014, 02:25:59

mstfozkan

keil e yeni basladım ve sürekli şu hatayı alıyorum
   
#error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"

yardımlarınızı bekliyorum teşekkurler

Gökhan BEKEN

Cihazı seçmemişsiniz sanırım.
Aşağıdaki görüntüde STM32F407VG kullandığım için onu seçtim, eğer farklı ise başka bir chip seçin:
Özel mesaj okumuyorum, lütfen göndermeyin.

mstfozkan

alakanıza teşekkur ederim dedğnizi yaptım fakat sadece hata sayısı azaldı



tam olrak gönderiyorum  umarım yardımcı olabilirsiniz 
Build target 'STM32stabil'
compiling misc.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\misc.c: 0 warnings, 1 error
compiling stm32f4xx_adc.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_adc.c: 0 warnings, 1 error
compiling stm32f4xx_can.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_can.c: 0 warnings, 1 error
compiling stm32f4xx_crc.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_crc.c: 0 warnings, 1 error
compiling stm32f4xx_cryp.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_aes.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp_aes.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_des.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp_des.c: 0 warnings, 1 error
compiling stm32f4xx_cryp_tdes.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_cryp_tdes.c: 0 warnings, 1 error
compiling stm32f4xx_dac.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dac.c: 0 warnings, 1 error
compiling stm32f4xx_dbgmcu.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dbgmcu.c: 0 warnings, 1 error
compiling stm32f4xx_dcmi.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dcmi.c: 0 warnings, 1 error
compiling stm32f4xx_dma.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dma.c: 0 warnings, 1 error
compiling stm32f4xx_dma2d.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dma2d.c: 0 warnings, 1 error
compiling stm32f4xx_exti.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_exti.c: 0 warnings, 1 error
compiling stm32f4xx_flash.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_flash.c: 0 warnings, 1 error
compiling stm32f4xx_fmc.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fmc.c: 0 warnings, 1 error
compiling stm32f4xx_fsmc.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_fsmc.c: 0 warnings, 1 error
compiling stm32f4xx_gpio.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_gpio.c: 0 warnings, 1 error
compiling stm32f4xx_hash.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_hash.c: 0 warnings, 1 error
compiling stm32f4xx_hash_md5.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_hash_md5.c: 0 warnings, 1 error
compiling stm32f4xx_hash_sha1.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_hash_sha1.c: 0 warnings, 1 error
compiling stm32f4xx_i2c.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_i2c.c: 0 warnings, 1 error
compiling stm32f4xx_iwdg.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_iwdg.c: 0 warnings, 1 error
compiling stm32f4xx_ltdc.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_ltdc.c: 0 warnings, 1 error
compiling stm32f4xx_pwr.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_pwr.c: 0 warnings, 1 error
compiling stm32f4xx_rcc.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_rcc.c: 0 warnings, 1 error
compiling stm32f4xx_rng.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_rng.c: 0 warnings, 1 error
compiling stm32f4xx_rtc.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_rtc.c: 0 warnings, 1 error
compiling stm32f4xx_sai.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_sai.c: 0 warnings, 1 error
compiling stm32f4xx_sdio.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_sdio.c: 0 warnings, 1 error
compiling stm32f4xx_spi.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_spi.c: 0 warnings, 1 error
compiling stm32f4xx_syscfg.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_syscfg.c: 0 warnings, 1 error
compiling stm32f4xx_tim.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_tim.c: 0 warnings, 1 error
compiling stm32f4xx_usart.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_usart.c: 0 warnings, 1 error
compiling stm32f4xx_wwdg.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_wwdg.c: 0 warnings, 1 error
compiling system_stm32f4xx.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c: 0 warnings, 1 error
compiling main.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
main.c: 0 warnings, 1 error
compiling system_stm32f4xx.c...
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(101): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
   #error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\Driver.Platform\CMSIS\Device\ST\STM32F4xx\Source\Templates\system_stm32f4xx.c: 0 warnings, 1 error
".\obj\test.axf" - 38 Error(s), 0 Warning(s).
Target not created

Gökhan BEKEN

Hangi chip ya da kit ile çalışıyorsunuz? stm32F4discovery kit kullanıyorsanız hazır proje dosyası olarak gönderebilirim.
Özel mesaj okumuyorum, lütfen göndermeyin.

mstfozkan


engineer42

bende keil de bi hata alıyorum. önce st-link debugger bulunamadı diyor ardından target dll has been cancelled diyor. bir iki şey kurcaladım ama olmadı. bi kaç gün önce st32f4 e keil example dan bi kaç bişey çalıştırdım şimdi niye böyle diyor anlamadım..

micelow

Alıntı yapılan: engineer42 - 21 Ocak 2014, 14:46:31
bende keil de bi hata alıyorum. önce st-link debugger bulunamadı diyor ardından target dll has been cancelled diyor. bir iki şey kurcaladım ama olmadı. bi kaç gün önce st32f4 e keil example dan bi kaç bişey çalıştırdım şimdi niye böyle diyor anlamadım..
Yanılmıyorsam şöyle bir yöntemi vardı  reset butonuna basılı tutuyosun keil de debug a tıklayıp butonu bırakıyosun ilk denemende olmayabilir forumda bir kaç yerde vardı bu yöntem.
"Bir tek şeye ihtiyacımız var çalışkan olmak."

engineer42

o yöntemi de denedim ancak sonuç alamadım. ST-link utility programı kartı görüyor ancak keil de st-link bulunamadı diyor.

diot

@mstfozkan



Sanırım c/c++ tabındaki  preprocessor grubundaki define tanımlı değil sanırım. ben 407vg kullandığım için bu şekilde tanımladım.


gulcinuzun922

iyi günler
bende sürekli aynı hatayı alıyorum device da  seçiyorum fakat sonuç değişmiyor.  STM32F4 Discovery kitinde STM32F4VG6 kullanıyorum. Bu hata hakkında fikri olan birisi varsa yardımcı olabilir mi şimdiden teşekkürler.

.\user\stm32f4xx.h(102): error:  #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"

mstfozkan

Hatirladigim kadariyla kutuphane dosyalrini eklemedigim icin o hatalri aliyordum stmcube  kullanarak  projenizi hazirlamanizi oneririm

drmp

ilk başlarda böyle hazır proje kullanmaktan kaçının başlangıç olarak hem zor hem de aşırı zaman kaybı veriyor  ,   Z hocamızın vermiş olduğu örnekleri takip edebilirsiniz daha çabuk ilerlersiniz

SysTick

Sorunun üzerinden epey geçmiş fakat böyle hatayla karşılaşanlar için çözüm yazayım
Aldığınız hatanın sebebi "stm32f4xx.h" dosyasında hangi aygıtı kullanacağınızı belirtmemiş olmanız
Resimde işaretli bölgenin yorum satırından çıkarılması gerekiyor eğer 407VG yi kullanacaksanız başka bir işlemciyi kullanacaksanız ilgili yorum satırını kaldırmanız gerekiyor.