 |
| Author |
Message |
|
|
Posted: Apr 27, 2012 - 02:04 PM |
|

Joined: Jul 19, 2011
Posts: 1
|
|
I sent e-mail to FAE having no response. Just post here see if someone has any insight.
My goal is to test the option of running application and and using heap off-chip for my future design.
My Result: malloc allocates buffer into internal RAM, the .heap was clearly 0xd000xxxx.
== procedure==
I start off with EVK1104, using bootloader provided in literature (AVR32825: Executing code from external SDRAM)
I created application based on AVR32733: (Placing data and the heap in external SDRAM on 32-bit AVR UC3 )
1. modify crt0.s: take out init_startup, take out data_sdram, bss_sdram;
2. extsadram_example.c: comment out sec-1 and sec-3 since I am only focus on malloc
3. in linker command: take out tranpoline
4. in linker command script:replacing the original script with "AVR32825", and modify the heap to use external SDRAM
The output lss file indicates all .text, .heap are placed on SDRAM (d000176c)
Serial Terminal resuls:
Malloc OK at address:
0x00000668
0x00001670
0x00002678
0x00003680
=== Questions:
1) where is the source code for malloc?
2) does AVR32UC3 has no MMU has any impact?
Appreciated |
|
|
| |
|
|
|
|
|
|
|