ΣSigmaStudio Ask AI Русский Log in

Read/Write on Memory Register

Processors & DSP SVarghaei385 Oct 30, 2019 00:00 6 replies Original on forum ↗
Subscribe
SVarghaei385 Question
Oct 30, 2019 00:00

Hi,

I want to write a value on a memory register. The reason I am asking because from my bootloader I want to read the version number of my application, and I think it can be done by writing a version number on a memory register and from bootloader read the value. Does it make sense?

I am using BF706, CCES

Thanks

bf706

cces 2.3.0

blackfin

SVarghaei385 Reply
Nov 6, 2019 00:00

Anyone???

ADIApproved Reply
Nov 8, 2019 00:00

Hi,

Can you please explain the meaning of "version number of application". Are you asking of the silicon revision of a particular processor ?

Regards,
Anand Selvaraj.

SVarghaei385 Reply
Nov 8, 2019 00:00

Hi,

I have two projects, the first one is my application with some function and the second one is bootloader. The first project generates an output file .ldr, which from bootloader project I use the .ldr to write/read into flash (By doing write/read the .ldr into flash I am able to boot the flash then and run my application).

From the first project I define application/software version number as:

asm("R0 = 0x19(X);");
asm("B[0x11800014] = R0;"); // writing value 25 on register 0x11800014

The value is saved on register from application project. Then I write/read the generated .ldr file into flash from bootloader project.

From bootloader project I want to read the value (value 25 saved on register 0x11800014).

I don't know if it makes sens or not.

ADIApproved Reply
Nov 21, 2019 00:00

Hi,

This issue is already handled through private support. To avoid duplication of efforts, you can continue the discussions through private support and we will post the final resolution here if appropriate.

Regards,
Anand Selvaraj.

SVarghaei385 Reply
Nov 21, 2019 00:00

No, it is not.

ADIApproved Reply
Dec 6, 2019 00:00

Hi,

Apology for the long delay.

In this case you have to use permanent memory for storing the software versions, otherwise we would suggest you to look on the SSL which helps to store the .ldr file in different sector in SPI flash and boot from a selection of mapped applications. For more details on SSL Please refer the EE-374 from the below link,
www.analog.com/.../EE374v01.pdf

Best Regards,
Anand Selvaraj.