For those curious.... The fix was to update Codesys, and possibly the raspberry pi installation. to 4.6.0.0
I just factory reset my image on my pi and installed Codesys. When trying to add a trend object, it will not download and returns these errors. The trace function works just fine. Program format error HRESULT 0x800700B "Path cannot be Null" I have no idea where to set the path. Theres nothing in the documentation, or online.