Where is the startup code for memory clear/copy?

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
ohyama toshinari
Offline
Last seen:10 months 21 hours ago
加入:2016-09-27 03:29
Where is the startup code for memory clear/copy?

Hi, I'm checking startup sequence in SDK6.0.2.
我think Reset_Handler in boot_vectors.s is the startup code.
But Reset_Handler does not have a routine of memory clear/copy (such like .bss .dat section for gcc).
在哪里做?

Device:
Qinjiny_Dialog
Offline
Last seen:2 weeks 2 days ago
工作人员
加入:2016-11-01 05:47
你好高手,

你好高手,

The booting code is burned in ROM and you're not able to see it from anywhere in the SDK. You may refer to chapter 4.3.3 in the Datasheet to get the workflow of DA14585's boot sequence.

ohyama toshinari
Offline
Last seen:10 months 21 hours ago
加入:2016-09-27 03:29
Hi, Qinjiny

Hi, Qinjiny

Thank you for very quick reply.

我think you mean "4.4.3 BootROM Sequence "in the Datasheet.
我t is written Remap SysRAM to addr 0x00 and SW reset at the end of BootROM Sequence(Figure 12: BootROM Sequence).

Do you mean startup memory clear/copy is done by burned ROM before SW reset?
我think C startup routine works after reset generally.

ohyama toshinari
Offline
Last seen:10 months 21 hours ago
加入:2016-09-27 03:29
我found the following in the

我found the following in the map file.

__scatterload 0x07fc828d Thumb Code 28 init.o(.text)
__scatterload_rt2 0x07fc828d Thumb Code 0 init.o(.text)
__scatterload_copy 0x07fc82b1 Thumb Code 14 handlers.o(i.__scatterload_copy)
__scatterload_null 0x07fc82bf Thumb Code 2 handlers.o(i.__scatterload_null)
__scatterload_zeroinit 0x07fc82c1 Thumb Code 14 handlers.o(i.__scatterload_zeroinit)

我guess these handle memory clear/copy.
And these are not provided in the source code as Qinjiny says.
But probably, these works correctly according to the scatter file.

Now I understand I do not need to care about it.
Thank you.