Menu

#11 Bugs & remarks for STM32F4 template

1.0
open
None
2014-04-03
2014-04-03
AlexX
No

... duplicate, moved to #2, 'STM32F4 template'

Discussion

  • Liviu Ionescu (ilg)

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,63 +1 @@
    -Hi, Liviu!
    -Thanks for the invitation to test updated software!
    -For the last few month I have been working with other projects, and I didn't have time to work with STM32 & Eclipse. So, I'm a little bit "outdated".
    -As I see, there is major changes with gnuarmeclipse plugin, as well as with "SPL", now known as "HAL".
    -For today, I didn't have much time to test it. Just few remarks:
    -
    -I. I tried to compile Blink template for STM32F429 and instantly got errors in file "vectors_stm32f4xx.c", such as undeclared "UART7_IRQHandler, UART8_IRQHandler, SPI5_IRQHandler, SPI6_IRQHandler..." This problems caused by this line:
    -
    -
    -~~~~~~
    -    #if defined(STM32F427_437xx) || defined(STM32F427_429xx)
    -~~~~~~
    -
    -This should be something like:
    -
    -~~~~~~
    - #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx)
    -~~~~~~
    -
    -because of later
    -
    -~~~~~~
    - #elif defined(STM32F429xx)
    -~~~~~~
    -
    -
    -II. After the line: 
    -
    -
    -~~~~~~
    -     #if defined(STM32F427_437xx) || defined(STM32F427_429xx)
    -~~~~~~
    -
    -you defined SPI4_IRQHandler second time:
    -
    -~~~~~~
    - void __attribute__ ((weak, alias ("Default_Handler")))
    - SPI4_IRQHandler(void);
    -~~~~~~
    -
    -It also have been defined a couple of lines earlier.
    -
    -After that compilation went ok and the led blinked.
    -
    -Then I tried to compile with this new library & template my previous project, which requires 150 K of RAM. But i didn't succeed, so I couldn't test it for you at the moment.
    -After all I tried to compile some simple example projects from STM32Cube for STM32F407 and STM32F429 chips. That was also unsuccessful, I got tons of errors like
    -
    -~~~~~~
    - unknown type name 'SPI_HandleTypeDef'
    - unknown type name 'I2C_HandleTypeDef'
    - 'HAL_SPI_STATE_RESET' undeclared (first use in this function)
    - request for member 'Instance' in something not a structure or union
    - 'SPI_BAUDRATEPRESCALER_16' undeclared (first use in this function)
    - ...
    -~~~~~~
    -
    -and so on. They were connected, as I understand, with I2C and SPI modules.
    -I should remark, that was new examples specially written for work with "HAL" library.
    -I don't know, what the problem is, but I couldn't figure it out quickly, may be it was my fault, but they were identical both for STM32F407 and STM32F429.
    -After all of these, I'm a little bit sad with this new experience.
    -I also have some remarks to new template structure, but I will write it to you later, I should investigate them more carefully.
    -By the way, thanks for such huge amount of work!
    -Best regards.
    +... duplicate, moved to #2, 'STM32F4 template'
    
    • assigned_to: Liviu Ionescu (ilg)
     
  • Liviu Ionescu (ilg)

    Alex, please send your further comments in the thread associated with #2, where F4 issues are located.

    Thank you,

    Liviu

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.