Skip to content

Trying to build STM32F411 Nucleo #196

Closed

Description

@FredPraca

Hello,
I'm trying to build a runtime for STM32F411RE Nucleo board.
One of the problems I face is that for example, stm32-timers.ads refers to TIM6_Base, TIM7_BASE, TIM12_Base, TIM13_Base and TIM14_Base which do not exist in the SVD file I got for STM32F411.
For stm32-usarts.ads from uart_stm32f4, the same kind of problem appears with USART1_Peripheral .
What is the right way to proceed and correct these problems?

Thanks for help

Activity

  1. pat-rogers commented on May 23, 2017

    @pat-rogers
    Contributor
  2. FredPraca commented on May 23, 2017

    @FredPraca
    Author

    Sorry for this surely dumb question but what do you mean by classifier functions ?

  3. pat-rogers commented on May 23, 2017

    @pat-rogers
    Contributor
  4. FredPraca commented on May 24, 2017

    @FredPraca
    Author

    Ok, thanks.
    I'll take a look at it, it will allow me to better understand the way everything is linked.

    Without taking a look, I wondered this morning on my way to work if a child package or a separate unit would do the trick. What do you think about it ?

  5. pat-rogers commented on May 24, 2017

    @pat-rogers
    Contributor

    For the STM32.Timers package and the STM32.Device package, the difficulty with a child package of either one, or even a separate package altogether, is that the Timer package spec is where the references to these functions occur, so circular unit dependencies are unavoidable if we move the functions out directly. I'm still looking at it, but I am beginning to believe we'll have to have a different version of the Timers and USARTs packages for the F411. (We'd want a dedicated Devices package (and RCC package presumably) anyway, to complement those in arch/ARM/STM32/devices/ currently.) We already do that sort of thing for other devices' drivers by putting them in distinct directories under the drivers/ dir.

  6. FredPraca commented on Jun 6, 2017

    @FredPraca
    Author

    Is the approach taken by Levraichacal here the good one ?
    I mean, creating specific versions for each driver is the good way to do from now as you already done?
    If so, bringing his version up to date might be a solution :)

  7. pat-rogers commented on Jun 8, 2017

    @pat-rogers
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions