2017-01-09 04:38:20 +00:00
|
|
|
#include "sdkconfig.h"
|
|
|
|
|
2019-06-28 12:36:32 +00:00
|
|
|
#if CONFIG_ESP32S2_ULP_COPROC_RESERVE_MEM
|
|
|
|
#define LOCAL_ULP_COPROC_RESERVE_MEM CONFIG_ESP32S2_ULP_COPROC_RESERVE_MEM
|
|
|
|
#else
|
|
|
|
#define LOCAL_ULP_COPROC_RESERVE_MEM CONFIG_ESP32_ULP_COPROC_RESERVE_MEM
|
2020-11-10 07:40:01 +00:00
|
|
|
#endif
|
2019-06-28 12:36:32 +00:00
|
|
|
|
2017-01-09 04:38:20 +00:00
|
|
|
#define ULP_BIN_MAGIC 0x00706c75
|
|
|
|
#define HEADER_SIZE 12
|
|
|
|
MEMORY
|
|
|
|
{
|
2019-06-28 12:36:32 +00:00
|
|
|
ram(RW) : ORIGIN = 0, LENGTH = LOCAL_ULP_COPROC_RESERVE_MEM
|
2017-01-09 04:38:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
.text : AT(HEADER_SIZE)
|
|
|
|
{
|
|
|
|
*(.text)
|
|
|
|
} >ram
|
|
|
|
.data :
|
|
|
|
{
|
|
|
|
. = ALIGN(4);
|
|
|
|
*(.data)
|
|
|
|
} >ram
|
|
|
|
.bss :
|
|
|
|
{
|
|
|
|
. = ALIGN(4);
|
|
|
|
*(.bss)
|
|
|
|
} >ram
|
2020-04-17 19:34:56 +00:00
|
|
|
|
2017-01-09 04:38:20 +00:00
|
|
|
.header : AT(0)
|
|
|
|
{
|
|
|
|
LONG(ULP_BIN_MAGIC)
|
2020-11-10 07:40:01 +00:00
|
|
|
SHORT(LOADADDR(.text))
|
2017-01-09 04:38:20 +00:00
|
|
|
SHORT(SIZEOF(.text))
|
|
|
|
SHORT(SIZEOF(.data))
|
|
|
|
SHORT(SIZEOF(.bss))
|
|
|
|
}
|
|
|
|
}
|