Skip to content

Commit

Permalink
stack: 64 kB, heap: 256 kB seems to work (a bit).
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed May 16, 2024
1 parent 52484ab commit be54c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/opcUA_server/opcUA_server.ino
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ extern "C"

UA_Server * opc_ua_server = nullptr;

static size_t const OPC_UA_SERVER_THREAD_STACK_SIZE = 65536*2; /* 64*2 kB */
static size_t const OPC_UA_SERVER_THREAD_STACK_SIZE = 65536; /* 64 kB */
static uint8_t alignas(uint32_t) OPC_UA_SERVER_THREAD_STACK[OPC_UA_SERVER_THREAD_STACK_SIZE];
rtos::Thread opc_ua_server_thread(osPriorityNormal, OPC_UA_SERVER_THREAD_STACK_SIZE, OPC_UA_SERVER_THREAD_STACK);

static size_t const OPC_UA_SERVER_THREAD_HEAP_SIZE = 65536*2; /* 64*2 kB */
static size_t const OPC_UA_SERVER_THREAD_HEAP_SIZE = 65536*4; /* 64*4 kB */
template <size_t SIZE> struct alignas(O1HEAP_ALIGNMENT) OPC_UA_HEAP final : public std::array<uint8_t, SIZE> {};
static OPC_UA_HEAP<OPC_UA_SERVER_THREAD_HEAP_SIZE> OPC_UA_SERVER_THREAD_HEAP;
O1HeapInstance * o1heap_ins = nullptr;
Expand Down

0 comments on commit be54c41

Please sign in to comment.