cancel
Showing results for 
Search instead for 
Did you mean: 

Fix for CUBE with STM32L476R processor

mattreed9
Associate II
Posted on March 18, 2016 at 20:19

There is a mistake with the STM32L476R processor in CUBE.

This affects the Nucleo-L476RG board.

The size of the memory it wrong, as a result CUBE will place the stack in memory that does not exist.  The result being that you can't run or debug the program. In the debugger you are always in an infinite loop as soon as a subroutine call is made.

To fix it:

To get CUBE working correctly with the STM32L476RG:

Edit the file ''families.xml'' (C:\Program Files (x86)\STMicroelectronics\STM32Cube\STM32CubeMX\db\mcu\families.xml)

Line 20608, in the entry:

<Mcu Name=''STM32L476R(C-E-G)Tx'' PackageName=''LQFP64'' RefName=''STM32L476RGTx'' RPN=''STM32L476RG''>

The field:

<Ram>

Was 128, change it to 96.

-Matt
2 REPLIES 2
Nesrine M_O
Lead II
Posted on March 22, 2016 at 17:00

Hi Matt,

Thank you for your feedback. The issue has been reported internally.

-Syrine-

stm32cube-t
Senior III
Posted on October 07, 2016 at 12:08

Dear user,

Please note the issue is fixed now as:

FLASH (rx)

     

: ORIGIN = 0x8000000, LENGTH = 1024K

RAM (xrw)

     

: ORIGIN = 0x20000000, LENGTH = 96K

(the second RAM is ignored)

Starting with STM32CubeMX 4.17:

RAM (xrw)

     

: ORIGIN = 0x20000000, LENGTH = 96K

RAM2 (xrw)

     

: ORIGIN = 0x10000000, LENGTH = 32K

FLASH (rx)

     

: ORIGIN = 0x8000000, LENGTH = 1024K

Best regards