Replies: 2 comments 1 reply
-
@mosa11aei |
Beta Was this translation helpful? Give feedback.
-
Funnily enough, this is a very similar issue to another issue that was just posted. In general, this problem is caused by passing a buffer to StaticMemory's bufferDeallocate port that didn't come from StaticMemory's bufferAllocate port. You can think of Buffers as being required to follow a loop, starting from StaticMemory (or my preferred alternative, BufferManager), going through various components, and ending up at StaticMemory/BufferManager again. I would take a look at the setup and my answer for #3079 . In general, the flow you want is:
|
Beta Was this translation helpful? Give feedback.
-
I am trying to set up a TCP client through F', and I'm modeling it off of the setup for the TCP client setup for the default communication driver in-built. I am able to connect to the TCP server and receive data, but I'm getting a weird error when trying to send data. The following assertion is failing:
Svc > StaticMemory > bufferDeallocate_handler
I can't really make heads or tails of it, but I think it has to do with memory runoff. As in, it's trying to deallocate memory that wasn't allocated in the first place, which is a bit confusing. Here is how I am trying to send data to the TCP driver I've made, named
py2c
:Here's my
topology.fpp
file:py2c.allocate -> staticMemory.bufferAllocate[Ports_StaticMemory.py2c] // defined in the StaticMemory enum py2c.$recv -> bme680.dataIn bme680.dataOut -> py2c.send bme680.dataInDeallocate -> staticMemory.bufferDeallocate[Ports_StaticMemory.py2c] py2c.deallocate -> staticMemory.bufferDeallocate[Ports_StaticMemory.py2c]
...and my Topology.cpp file:
Beta Was this translation helpful? Give feedback.
All reactions