Heap in external SDRAM for STUDIO 6

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

just convert old project for AVR32 studio 2.6
to STUDIO 6

it is sample from Atmel Application Note AVR32733 - Placing data and the heap in external SDRAM.

old sample project compile with error - but it can be transfer to EVK1100 board and work well. it is well known issue: allocated section .bss_sdram not in segment, but it can be ignored on AVR32 studio 2.6

now I have problem - on STUDIO 6

I got no error when IMPORT and convert old project (solution). But when I Build solution I got 7 error, all related to _sdram segment:

Quote:

1 demo.elf section `.bss_sdram' will not fit in region `CPUSRAM'
2 region `CPUSRAM' overflowed by 0 bytes
3 undefined reference to `_data_sdram' ../src/SOFTWARE_FRAMEWORK/UTILS/STARTUP_FILES/GCC/crt0.x
4 undefined reference to `_edata_sdram' ../src/SOFTWARE_FRAMEWORK/UTILS/STARTUP_FILES/GCC/crt0.x
5 undefined reference to `_data_sdram_lma'../src/SOFTWARE_FRAMEWORK/UTILS/STARTUP_FILES/GCC/crt0.x
6 undefined reference to `__bss_sdram_start'../src/SOFTWARE_FRAMEWORK/UTILS/STARTUP_FILES/GCC/crt0.x
7 undefined reference to `_bss_sdram_end'../src/SOFTWARE_FRAMEWORK/UTILS/STARTUP_FILES/GCC/crt0.x

is there new sample for this task for STUDIO 6 ?

I need help, please !

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

wow, it was fast !
I got response from Atmel in less then 5 hour !

Quote:

After importing to Atmel Studio 6.0, it takes the default linker script file. So we have to mention the modified linker script file of this project in the linker script options. Also, the heap size should be assigned to define the memory region in the external SDRAM. With the above changes, it builds successfully (Please refer to the attached project with this mail).

To do the above changes, go to:
Project Properties (right click on the project) -> Toolchain -> AVR32/GNU Linker -> Miscellaneous

To add linker script file:
In “Other options (-Xlinker [option])” -> Add “-T../src/SOFTWARE_FRAMEWORK/APPLICATIONS/AVR32733/AT32UC3A0512_EVK1100/GCC/link_uc3a0512_extsdram.lds”

To define the heap size:
In “Linker Flags” -> Add “-Wl,--defsym,__heap_size__=0x00200000”

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi 

I am convert old project for AVR32 studio 2.6 to STUDIO 6.2 following error are occured.

 

AT32UC3A3 series controller.

 

1.) address 0x13800 of YEB1288_TSUNAMIBUOY_FW_1V05.elf section `.stack' is not within region `INTRAM' 

 

2.) region `INTRAM' overflowed by 16384 bytes

 

3.) .heap' will not fit in region `INTRAM'