2017-02-22 05:05 AM
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
and generating the application code I got my linker file updated like this:
So far so good.
When I try to flsh my application, I got an error message during the erase phase:
Why is that?
Is there anything I need to do other than changing the load address, regenerating the application and recompiling?
Thank you.
Alessandro
Solved! Go to Solution.
2017-03-09 02:53 AM
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
2017-02-23 02:10 AM
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
2017-02-23 09:09 AM
2017-02-24 02:13 AM
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
2017-03-06 10:35 AM
2017-03-08 08:02 AM
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
2017-03-09 02:32 AM
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
2017-03-09 02:53 AM
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