FujiNetWIFI / fujinet-firmware

8-bit systems to ESP32 WiFi Multifunction Firmware
https://fujinet.online
GNU General Public License v3.0
227 stars 68 forks source link

Need help: Can connect to TCP/UDP server, but data gets corrupted #427

Closed 8bit-Dude closed 3 years ago

8bit-Dude commented 3 years ago

Hi Thomas and crew,

I am implementing Fujinet in 8bit-Unity, and got the HTTP mode working. However, I am struggling with the TCP/UDP modes: I can connect to my Linux box and exchange packets, but the data sent from Fujinet is not what I commanded.

Would you mind taking a quick look at the attached debug.c and fujinet.c, and lemme know if you can spot anything wrong in my code? (To repeat again, URL/HTTP code works but not TCP/UDP)

Thanks in advance!

debug-fujinet.zip

8bit-Dude commented 3 years ago

I updated the firmware and could confirm tht netcat works correctly. So I will try to figure out what is different with my code.

8bit-Dude commented 3 years ago

I could get everything working with the help of Thomas! Basically, when using the AtariXL config in cc65, should not be located under the ROM (otherwise they are inaccessible when ROM is turned ON).