-
I am trying to implement some code that I found here into my own project that relates to creating a custom framer/deframer workflow for a UART device (in my case, a radio): topology.fpp: connections RadioToDriver{
# From Radio to Driver
radio.dataOutAllocate -> staticMemory.bufferAllocate[Ports_StaticMemory.radio]
radio.dataOutToRadio -> radioFramer.bufferIn
radioFramer.bufferDeallocate -> staticMemory.bufferDeallocate[Ports_StaticMemory.radio]
radioFramer.framedAllocate -> staticMemory.bufferAllocate[Ports_StaticMemory.radioFramer]
radioFramer.framedOut -> radioDriver.send
radioDriver.deallocate -> staticMemory.bufferDeallocate[Ports_StaticMemory.radioFramer]
# From Driver to Radio
radioDriver.allocate -> staticMemory.bufferAllocate[Ports_StaticMemory.radioDriver]
radioDriver.$recv -> radioDeframer.framedIn
radioDeframer.framedDeallocate -> staticMemory.bufferDeallocate[Ports_StaticMemory.radioDriver]
radioDeframer.bufferAllocate -> staticMemory.bufferAllocate[Ports_StaticMemory.radioDeframer]
radioDeframer.bufferOut -> radio.dataInFromRadio
radio.dataInDeallocate -> staticMemory.bufferDeallocate[Ports_StaticMemory.radioDeframer]
} I am trying to work with static memory, and routing everything memory related through there, but I am getting the following error:
Is there a way to increase the number of allowed ports, or am I just instantiating too many ports to staticMemory that are unnecessary? Should I create another staticMemory instance and use that, or is there a better workaround? I could also potentially just use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Try looking at |
Beta Was this translation helpful? Give feedback.
Try looking at
config/AcConstants.fpp
there you can define the number of ports for static memory.