Open dcrystalj opened 11 years ago
Which target are you compiling for? owhal.h is a file that needs to be adapted for the target and compiler that you're using. I assume you are using owhal.h from the stm32f4_sourcery directory, which I have written for my STM32F4-Discovery board and the CodeSourcery compiler. I have never used IAR myself but I assume it's a different syntax for inline assembler.
so, can you help me how do you run project like yours?
I'm not sure what you need help with but if you install the Sourcery CodeBench compiler (which was used to be called CodeSourcery) from http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/ and download my project you should be able to build the example project for STM32F4-Discovery by running make in the stm32f4_sourcery directory
thank you very much, but I installed this CodeSourcery and imported your project in. Now i'm getting strange errors http://d.pr/i/swRx (Symbol 'RCC_AHB1Periph_GPIOA' could not be resolved.
I cannot run make file as you said
RCC_AHB1Periph_GPIOA is defined in the STM32 standard peripheral libraries (stm32f4xx_rcc.h) included in the project. I'm guessing you have messed up the makefile or the include paths
when i try to compile your project in IAR i get this errors from owhal.h Error[Pe079]: expected a type specifier C:\Users\Crystal\Desktop\arm1\Project\Peripheral_Examples\DS18B20\owhal.h 62 Error[Pe260]: explicit type is missing ("int" assumed) C:\Users\Crystal\Desktop\arm1\Project\Peripheral_Examples\DS18B20\owhal.h 62 Error[Pe141]: unnamed prototyped parameters not allowed when body is present C:\Users\Crystal\Desktop\arm1\Project\Peripheral_Examples\DS18B20\owhal.h 62 Error[Pe130]: expected a "{" C:\Users\Crystal\Desktop\arm1\Project\Peripheral_Examples\DS18B20\owhal.h 63 Error[Pe020]: identifier "us" is undefined C:\Users\Crystal\Desktop\arm1\Project\Peripheral_Examples\DS18B20\owhal.h 67 Error[Ta081]: Inline assembler constraint "r" is incompatible with operand expression C:\Users\Crystal\Desktop\arm1\Project\Peripheral_Examples\DS18B20\owhal.h 71 Error while running C/C++ Compiler