CE-Programming / toolchain

Toolchain and libraries for C/C++ programming on the TI-84+ CE calculator series
https://ce-programming.github.io/toolchain/index.html
GNU Lesser General Public License v3.0
527 stars 53 forks source link

Crash in usbdrvce #472

Closed mateoconlechuga closed 10 months ago

mateoconlechuga commented 10 months ago

I am trying to read a file from usb and I am getting a crash in usbdrvce:

Download: ce-video.zip

Steps to reproduce (reproducible in both CEmu old/usb-host branch and on hardware):

  1. Format a single primary partition on a usb flash drive with the following command: mkfs.msdos -F 32 -s 128 -S 512 -v /dev/sdb1
  2. Place videos/video.rgb in the root of the FAT32 primary partition
  3. Send CE libraries to calculator
  4. Send DEMO.8xp in the bin directory of the download to the calculator
  5. Run DEMO
  6. Plug in USB drive and select from menu
  7. Press enter until it crashes the calculator

The calculator should not crash - I attempted a fix but @jacobly0 says the fix is wrong so here I am :)