Hi Maarten, 

srecord it is. Thanks once again
George

On 19 Dec 2011, at 22:22, Maarten Brock wrote:

> Hi George,
> 
> What happens in crtbank.asm is under your control when 
> you write your own. So you can get the correct value in 
> PSBANK. But what will go wrong is the LSW of the 
> physical/virtual address. The linked code will jump to 
> 0x0000 when it needs to go to 0x10000 instead of the 
> bank at 0x8000.
> 
> Post-processing is probably easy with a tool like 
> srecord (srecord.sourceforge.net).
> 
> Maarten
> 
>> Hello all,
>> 
>> When using mcs51 bank switching: To specify segment locations through -Wl-b, 
>> we must use the -virtual- address. So for instance for the cc2430 we pass 
>> 0x018000 for BANK1, 0x028000 for BANK2 and 0x038000 for BANK3.
>> 
>> So far so good. I now have to deal with a programmer which expects physical 
>> addresses in the hex file (0x008000, 0x010000 and 0x018000 respectively). We 
>> can do this easily by post-processing the hex with srecord.
>> 
>> I just want to double check that the addresses supplied to sdld MUST be 
>> virtual and that passing physical addresses will result in a non-working 
>> image (I suspect we'll end up writing wrong values to PSBANK among other 
>> possible bad things). In other words, post-processing is my only solution 
>> here, correct?
>> 
>> Thank you for your time
>> George
>> ------------------------------------------------------------------------------
>> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
>> Microsoft is holding a special Learn Windows Azure training event for 
>> developers. It will provide a great way to learn Windows Azure and what it 
>> provides. You can attend the event by watching it streamed LIVE online.  
>> Learn more at http://p.sf.net/sfu/ms-windowsazure
>> _______________________________________________
>> Sdcc-user mailing list
>> Sdcc-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create 
> new or port existing apps to sell to consumers worldwide. Explore the 
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to