cancel
Showing results for 
Search instead for 
Did you mean: 

IAP Remapping of RAM @0x0/AN2078 for IAR

robertmarsche9
Associate II
Posted on April 18, 2006 at 21:57

IAP Remapping of RAM @0x0/AN2078 for IAR

8 REPLIES 8
robertmarsche9
Associate II
Posted on January 09, 2006 at 12:01

Hi!

Did anyone as mentioned in AN2078(last page) remap his RAM to address 0x0! What does that mean? Is there an example available? And did anyone convert AN2078 source-code to IAR compiler?

THX

Bertl

ivan3
Associate II
Posted on January 24, 2006 at 09:41

Than differ between Program_A and Program_B?

And that spread that Boha IAP_V2.0 does not work in IAR?

lgiordano2
Associate II
Posted on January 24, 2006 at 10:54

Hi,

have you ported it to CrossStudio?

Regards,

ivan3
Associate II
Posted on January 25, 2006 at 02:21

As I have understood a file IAR_RAM_Remapping Allows to load STR7 through UART all FLASH under IAR. there two folders Program_A and Program_B what difference in programs laying in these folders?

Boha too gave the similar program IAP_V2.0 I so have understood she does not work under IAR?

darren23
Associate II
Posted on April 05, 2006 at 09:14

Hi Risc,

I downloaded your source code for the IAR compiler and the presentation which helped me understand remapping a lot.

The code seems to be working in my application as it jumps to program B ok, but when the switch is set to stay in program A i have no luck. When I download the flash of Program A using the IAR-ARM IDE via a J-Link in debug mode, the IAR embedded workbench errors with ''Warning: Target inconsistency detected at Memory address 0x40000858'' and several more of the same error at other addresses.

Have you any ideas on why this occurs ??

Thanks.

fbordeleau
Associate II
Posted on April 10, 2006 at 11:30

Hi Risc,

I have the same problem as DBowden.

I am using a IAR environment.

thanks,

fbordeleau
Associate II
Posted on April 12, 2006 at 10:45

Q1. Do you know a document that explains about the memory remapping? I want to know more about it. I want to know when you remap the RAM at 0x0 for example, is the RAM copied there or is it a kind of pointer that redirect t0 0x20000000?

Q2. If RAM is entirely copied in Q1, the memory located at address 0x0 shall be RAM, even in case that Flash ramapping?.

I'm confuse about this subject so if you know a document that i could read, let me know.

Thanks

prabath
Associate II
Posted on April 18, 2006 at 21:57

ok how do I initialise some thing like this when writing it to flash? looks like what i read from flash is non initialised data.

const struct sDatabaseEntry

{

char cName[16]; //nameLength

char cValue[12]; //valueLength

char cUpper[12];

char cLower[12];

char cDefault[12];

};

// struct sDatabaseEntry sTempDatabase[DatabaseEntries] = {

//added volatile while debugging no telephone after ads integration 27-01-06. no change.

volatile struct sDatabaseEntry sTempDatabase[] =

{

''UnitId\0'', ''\0'', ''*\0'', ''*\0'', ''SoftTestID1\0'',

''UnitDate\0'', ''\0'', ''*\0'', ''*\0'', ''16august05\0'',

''Frequency\0'', ''487075000\0'', ''500000000\0'', ''400000000\0'', ''450000000\0'',

''\0'', ''\0'', ''\0'', ''\0'', ''\0'',

''SlCh1A_Status\0'', ''\0'', ''\0'', ''\0'', ''\0'',

''SlCh1A_voc\0'', ''\0'', ''\0'', ''\0'', ''8559\0'',

''SlCh1A_ilim\0'', ''\0'', ''\0'', ''\0'', ''8\0'',

''SlCh1A_ringamp\0'', ''\0'', ''\0'', ''\0'', ''224\0'',

''\0'', ''\0'', ''\0'', ''\0'', ''\0'',

''**************\0'', ''***********\0'', ''***********\0'', ''***********\0'', ''***********\0''};