⚠️
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.
2 posts / 0 new
Last post
defrankv
Offline
Last seen:2 years 6 months ago
加入:2018-07-18 04:09
UART handler mode issue

We are developing some applications based on the DSPS sample code. The firmware is loaded onto the DA14580 chip from an external M4 processor via UART. A few seconds later after the Dialog chip boots successfully, the M4 processor send some message through the UART, the DA14580 M0 processor immediately enters into the Handler Mode around address 0x00028158. The debugger cannot display what c code is running. It is running some instructions from Disassembly (see below). Is there anyway to figure out what is the code doing and why the processor enters into this handler mode? Thanks.

0x00028158 6B00 LDR r0, [r0, #0x30]
0x0002815A 4700 BX r0

0x0002815C B510 PUSH {r4,lr}SystemInit
0x0002815E 4822 LDR r0,[pc,#136] ; @0x000281E8
0x00028160 6881 LDR r1,[r0,#0x08]
0x00028162 0709 LSLS r1,r1,#28]
0x00028164 0F09 LSRS r1,r1,#28main
0 x00028166 2901 CMP r1,#0x0184] ; @0x20003A80
0x00028168 D01A BEQ 0x000281A0

Keywords:
Device:
MT_dialog
Offline
Last seen:1 month 2 weeks ago
工作人员
加入:2015-06-08 11:34
Hi defrankv,

Hi defrankv,

You can see the address of the instruction and then check from the .map file to see the function that this address corresponds to. From the addresses that you are pasted i
suppose that you have run in ROM code, and you wont be able to see source code in that case.

Thanks MT_dialog