cancel
Showing results for 
Search instead for 
Did you mean: 

SPC56EL60L3 - change flash load address

alessandro2
Associate III
Posted on February 22, 2017 at 14:05

Hello everyone, I'm working with SPC56EL60L3 and SPC5Studio (v5.0).

I'd like to change the address at ewhich my application is stored in the flash memory, from 0x00000000 to 0x00004000, in order to place a bootloader in the first flash sector.

I changed the project settings as you can see in the screenshot

0690X00000606NUQAY.png

and generating the application code I got my linker file updated like this:

0690X00000606NZQAY.png

So far so good.

When I try to flsh my application, I got an error message during the erase phase:

0690X00000606NeQAI.png

Why is that?

Is there anything I need to do other than changing the load address, regenerating the application and recompiling?

Thank you.

Alessandro

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on March 09, 2017 at 10:53

Hello Erwan,

I think we solved the problem.

I checked the taget settings, as per your suggestion and indeed the target was set to SPC56EL70.

Setting it to SPC56EL60 it works.

Just a side note: perhaps the original EL70 settings originated from the initial SPC5STUDIO application configuration. I used SPC5Studio wizard and SPC56EL70 was chosen since SPC56EL60 was not available among the SPC5STUDIO wizard options. Then I changed the setting  to SPC5EL60 from the platform settings menu, but regenerating the application with the new settings did not change the UDE STK configuration file.

OK, now the next question:

The aim of flashing the application starting from 0x00004000 was to place a bootloader application in the first flash sector. So now I need to flash this application in the first sector. how do I change the flash settings in the linker script? Something like this would work (the first sector is only 16 k long)?

MEMORY

{

flash : org = 0x00000000, len = 16K

ram : org = 0x40000000, len = 128K

}

Thank you.

Regards

Alessandro

View solution in original post

7 REPLIES 7
Erwan YVIN
ST Employee
Posted on February 23, 2017 at 11:10

Hello Alessandro ,

Could you enable logs in PLS UDE in message view ?

you can put log level maximal.

I have no problem in my side

  Best regards

              Erwan

Posted on February 23, 2017 at 17:09

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6eX&d=%2Fa%2F0X0000000bsV%2FN39Jboa68kWjduhEzO5pxlQYDGk_49Xrc8PIb2WZx_I&asPdf=false
Posted on February 24, 2017 at 10:13

Hello Allessandro ,

Could you try the last version of PLS 4.8 ?

https://www.pls-mc.com/download-spc5-udestk/downloads-a-1626.html

 

No problem is noticed on my side

Warning : you have to recreate the PLS Workspace

               Best regards

                        Erwan

Posted on March 06, 2017 at 18:35

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6pQ&d=%2Fa%2F0X0000000bwK%2Fs6cipgc1O944xg7ETy0c6Gy0SQtShq0g6uShqUDvd6o&asPdf=false
Erwan YVIN
ST Employee
Posted on March 08, 2017 at 17:02

Hello Alesssandro ,

Could you send me your PLS Workspace and cfg file used for PLS 4.8 ?

you have to choose EL60 not EL70

(There are 2 differents config files in PLS 4.8)

i have validated on EL70 not EL60

the difference is the size of the flash.

      Best regards

                                                      Erwan

Erwan YVIN
ST Employee
Posted on March 09, 2017 at 11:32

Good news ;)

we have a change request to align all the platform components for UDE STK 4.8

'Then I changed the setting  to SPC5EL60 from the platform settings menu, but regenerating the application with the new settings did not change the UDE STK configuration file.'

I am checking if there is a generation issue in EL60.

if you want to create your own ld file, create user.ld at the same level application.ld

               Best Regards

                                Erwan

Posted on March 09, 2017 at 10:53

Hello Erwan,

I think we solved the problem.

I checked the taget settings, as per your suggestion and indeed the target was set to SPC56EL70.

Setting it to SPC56EL60 it works.

Just a side note: perhaps the original EL70 settings originated from the initial SPC5STUDIO application configuration. I used SPC5Studio wizard and SPC56EL70 was chosen since SPC56EL60 was not available among the SPC5STUDIO wizard options. Then I changed the setting  to SPC5EL60 from the platform settings menu, but regenerating the application with the new settings did not change the UDE STK configuration file.

OK, now the next question:

The aim of flashing the application starting from 0x00004000 was to place a bootloader application in the first flash sector. So now I need to flash this application in the first sector. how do I change the flash settings in the linker script? Something like this would work (the first sector is only 16 k long)?

MEMORY

{

flash : org = 0x00000000, len = 16K

ram : org = 0x40000000, len = 128K

}

Thank you.

Regards

Alessandro