Skip to main content
tino1
Associate II
October 14, 2016
Question

Bug CubeMX 4.17 STM32F303 after emigration

  • October 14, 2016
  • 9 replies
  • 1738 views
Posted on October 14, 2016 at 11:12

Hello.

i am using Cube MX 1.17 and the firmware package 1.6 on the STM32F303xC. After emigration from the related CubeMX version to the new i am getting a syntax error by new compiling the code. The code phrase is in the created adc.c from CubeMX:

if (__HAL_DMA_REMAP_CHANNEL_ENABLE(HAL_REMAPDMA_ADC24_DMA2_CH34) != HAL_OK)
{
Error_Handler();
}

the error message is:

STM32PBoard/Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal.h:651:57: error: expected expression before 'do'
#define __HAL_DMA_REMAP_CHANNEL_ENABLE(__DMA_REMAP__) do {assert_param(IS_DMA_REMAP((__DMA_REMAP__)))

    This topic has been closed for replies.

    9 replies

    Amel NASRI
    ST Technical Moderator
    October 14, 2016
    Posted on October 14, 2016 at 14:54

    Hi kahl.tino,

    Unfortunately, I wasn't able to reproduce your issue. Could you please share the IOC file that may help me to do it?

    -Mayla-

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
    tino1
    tino1Author
    Associate II
    October 14, 2016
    Posted on October 14, 2016 at 16:00

    The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6Wr&d=%2Fa%2F0X0000000bq1%2FlLTydpKu6sgAGYV6hgFoJ2NnMQDmbooAuYPta0INupU&asPdf=false
    Tesla DeLorean
    Guru
    October 14, 2016
    Posted on October 14, 2016 at 17:09

    In the future please just use the ''Attach File'' option rather than paste the file in-line

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Amel NASRI
    ST Technical Moderator
    October 14, 2016
    Posted on October 14, 2016 at 18:02

    Hi kahl.tino,

    I confirm the reported bug. It is highlighted internally.

    You will be informed if there is any update on this regard.

    Sorry for any inconvenience this may create for you.

    -Mayla-

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
    maciek
    Associate III
    October 22, 2016
    Posted on October 22, 2016 at 15:19

    Hay!

    Got the same bug on the same uC. Is there any workaround? Should I only remove the loop?

    tino1
    tino1Author
    Associate II
    October 27, 2016
    Posted on October 27, 2016 at 16:56

    Hi panczak.maciej,

    my workaround was to remove the loop.

    stm32cube-t
    ST Employee
    November 8, 2016
    Posted on November 08, 2016 at 12:13

    Dear user,

    CubeMX 4.18 coming out in the following weeks will solve the issue.

    Best regards

    engenharia2
    Associate III
    November 21, 2016
    Posted on November 21, 2016 at 16:10

    Hi, where can I find 

    STM32CubeMX v4.16.1 to download? I have problem with the upgrade to v4.17 and can't solve it.

    slimen
    Visitor II
    November 21, 2016
    Posted on November 21, 2016 at 16:36

    Hello jeremy_cis,

    I recommend you to start a new thread describing your issue as you are off topic. This will be more easy for user forum to help/answer you.

    As I know, it's not possible to obtain older versions of CubeMX.

    So, try delete the older version, then re-install the new one from the web.

    If your problem is not resolved, I advice you to create new thread detailing your issue and error message if you have.

    Regards