Picproje Elektronik Sitesi

DERLEYİCİLER => Diğer Derleyiciler => KEIL => Konuyu başlatan: mstfozkan - 16 Ocak 2014, 02:25:59

Başlık: keil hakkında yardım (yeni basladım)
Gönderen: mstfozkan - 16 Ocak 2014, 02:25:59
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
Başlık: Ynt: keil hakkında yardım (yeni basladım)
Gönderen: Gökhan BEKEN - 16 Ocak 2014, 10:39:39
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:
(http://s7.postimg.cc/6riksa2ln/cihaz.png)
Başlık: Ynt: keil hakkında yardım (yeni basladım)
Gönderen: mstfozkan - 16 Ocak 2014, 10:55:36
alakanıza teşekkur ederim dedğnizi yaptım fakat sadece hata sayısı azaldı

(http://s27.postimg.cc/vdp8xb5tb/Ads_z.jpg) (http://postimg.cc/image/vdp8xb5tb/)

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
Başlık: Ynt: keil hakkında yardım (yeni basladım)
Gönderen: Gökhan BEKEN - 16 Ocak 2014, 13:51:32
Hangi chip ya da kit ile çalışıyorsunuz? stm32F4discovery kit kullanıyorsanız hazır proje dosyası olarak gönderebilirim.
Başlık: Ynt: keil hakkında yardım (yeni basladım)
Gönderen: mstfozkan - 16 Ocak 2014, 16:01:22
stm32f429zi kullanıyorum
Başlık: Ynt: keil hakkında yardım (yeni basladım)
Gönderen: 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..
Başlık: Ynt: keil hakkında yardım (yeni basladım)
Gönderen: micelow - 21 Ocak 2014, 15:09:08
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.
Başlık: Ynt: keil hakkında yardım (yeni basladım)
Gönderen: engineer42 - 21 Ocak 2014, 15:25:10
o yöntemi de denedim ancak sonuç alamadım. ST-link utility programı kartı görüyor ancak keil de st-link bulunamadı diyor.
Başlık: Ynt: keil hakkında yardım (yeni basladım)
Gönderen: diot - 21 Ocak 2014, 15:40:50
@mstfozkan

(http://s27.postimg.cc/toy5zxu9r/keil.jpg) (http://postimg.cc/image/toy5zxu9r/)

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.

Başlık: Ynt: keil hakkında yardım (yeni basladım)
Gönderen: gulcinuzun922 - 02 Şubat 2015, 11:08:17
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)"
Başlık: Ynt: keil hakkında yardım (yeni basladım)
Gönderen: mstfozkan - 02 Şubat 2015, 12:00:37
Hatirladigim kadariyla kutuphane dosyalrini eklemedigim icin o hatalri aliyordum stmcube  kullanarak  projenizi hazirlamanizi oneririm
Başlık: Ynt: keil hakkında yardım (yeni basladım)
Gönderen: drmp - 02 Şubat 2015, 19:49:58
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
Başlık: Ynt: keil hakkında yardım (yeni basladım)
Gönderen: SysTick - 23 Mayıs 2016, 11:18:01
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.(http://s33.postimg.cc/vipt8u11r/cnf.jpg)