Skip to main content
tino1
Associate II
Oct 14, 2016 9:12 AM UTC
Question

Bug CubeMX 4.17 STM32F303 after emigration

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
    Oct 14, 2016 12:54 PM UTC
    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
    Oct 14, 2016 2:00 PM UTC
    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
    Oct 14, 2016 3:09 PM UTC
    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
    Oct 14, 2016 4:02 PM UTC
    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
    Oct 22, 2016 1:19 PM UTC
    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
    Oct 27, 2016 2:56 PM UTC
    Posted on October 27, 2016 at 16:56

    Hi panczak.maciej,

    my workaround was to remove the loop.

    stm32cube-t
    ST Employee
    Nov 8, 2016 11:13 AM UTC
    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
    Nov 21, 2016 3:10 PM UTC
    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
    Nov 21, 2016 3:36 PM UTC
    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