Dear Dialog,
I want to change the scatter file of DSPS project (DSPS_v_5.150.2) because the code size is not enough.
So, I just changed ER_IROM5 size, is it OK ?
1. Before
---------------------------------------------------------------------------------------------------------------------------------------------------------
LR_IROM5 0x20000440 0x93c0 {
ER_IROM5 0x20000440 0x7ac0 {
*(InRoot$$Sections) ; All library sections that must be in a
; root region, for example, __main.o,
; __scatter*.o, __dc*.o, and * Region$$Table
boot_vectors.o (+RO)
system_ARMCM0.o (+RO)
;*armlib* (+RO)
.ANY (+RO)
.ANY (+RW)
}
---------------------------------------------------------------------------------------------------------------------------------------------------------
2. After
---------------------------------------------------------------------------------------------------------------------------------------------------------
LR_IROM5 0x20000440 0x93c0 {
ER_IROM5 0x20000440 0x7bc0 {
*(InRoot$$Sections) ; All library sections that must be in a
; root region, for example, __main.o,
; __scatter*.o, __dc*.o, and * Region$$Table
boot_vectors.o (+RO)
system_ARMCM0.o (+RO)
;*armlib* (+RO)
.ANY (+RO)
.ANY (+RW)
}
---------------------------------------------------------------------------------------------------------------------------------------------------------

Hi hogyunkim,
You can do that, without changing anything else in the scatterfile, but be aware that the room that you have reserved for the extra space is used by the OTP header (there is an option that copies the OTP header from the OTP to the sysram), so you wont be able to use the that option and read back the OTP header values from your sysram.
Thanks MT_dialog