Skip to content

Commit 4bdf4c1

Browse files
committed
ThreadDebug: add memory definition for nRF52840
1 parent 6110a78 commit 4bdf4c1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

libraries/ThreadDebug/src/ThreadDebug.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ void Platform_CommSendChar(int character)
693693

694694

695695

696-
696+
#ifdef STM32H747xx
697697
static const char g_memoryMapXml[] = "<?xml version=\"1.0\"?>"
698698
"<!DOCTYPE memory-map PUBLIC \"+//IDN gnu.org//DTD GDB Memory Map V1.0//EN\" \"http://sourceware.org/gdb/gdb-memory-map.dtd\">"
699699
"<memory-map>"
@@ -714,6 +714,17 @@ static const char g_memoryMapXml[] = "<?xml version=\"1.0\"?>"
714714
"<memory type=\"flash\" start=\"0x90000000\" length=\"0x10000000\"> <property name=\"blocksize\">0x200</property></memory>"
715715
"<memory type=\"ram\" start=\"0xc0000000\" length=\"0x800000\"> </memory>"
716716
"</memory-map>";
717+
#endif
718+
719+
#ifdef NRF52840_XXAA
720+
static const char g_memoryMapXml[] = "<?xml version=\"1.0\"?>"
721+
"<!DOCTYPE memory-map PUBLIC \"+//IDN gnu.org//DTD GDB Memory Map V1.0//EN\" \"http://sourceware.org/gdb/gdb-memory-map.dtd\">"
722+
"<memory-map>"
723+
"<memory type=\"flash\" start=\"0x00000000\" length=\"0x100000\"> <property name=\"blocksize\">0x1000</property></memory>"
724+
"<memory type=\"ram\" start=\"0x20000000\" length=\"0x40000\"> </memory>"
725+
"<memory type=\"ram\" start=\"0x00800000\" length=\"0x40000\"> </memory>"
726+
"</memory-map>";
727+
#endif
717728

718729
uint32_t Platform_GetDeviceMemoryMapXmlSize(void)
719730
{

0 commit comments

Comments
 (0)