News for hackers. Stuff that matters.
Re:FTDI FT232RL: Real vs. Fake (2014) by throwaway81523 on Tuesday June 15, 2021 @07:38PM (#27523032)
Thanks, what I'm wondering is whether you can program one of those boards as a USB converter one time and be done with it. It really shouldn't take KLOC, I hope, and it even seems likely that such code is already out there. The idea then is that you can use a board with that code instead of an FTDI cable from then on.
Re:FTDI FT232RL: Real vs. Fake (2014) by exmadscientist on Thursday June 17, 2021 @02:49AM (#27536816)
Unfortunately USB stacks are pretty heavyweight. On a Cortex-M3 class part they end up around 6kB compiled. You have three basic options for getting them going:

1. Trust your vendor's libraries/ROM drivers/example code. This is the fastest to bring up, the least flexible, the buggiest (it's vendor code!) and the hardest to debug. (Trust me on the debugging part.)

2. Use a library like tinyUSB. This can actually go pretty quickly, since you've got full source control. If your part is popular enough that someone else has already done most of the work, this is by far the best choice. Even if you have to get personal with the hardware, I still like this option. (tinyUSB is much better than what came before... I wish it'd been around last time I had to do this.)

3. Write your own. Don't do this. (You might have to do parts of this if you tried #1 and it isn't panning out.)

All of these are doable. Any of them are enough work that if you're only making one, just put the FTDI down and call it done.