Tim Hutt

Results 319 comments of Tim Hutt

I have implemented this before (not for libusb), although sadly I can't find the code now. :-/ As I recall, it's awkward on Windows because the way you detect device...

Syntax checking would be a great start. I would love it if Rusqlite could also deduce the correct type from the schema too (SQLite's "it's a feature" is a feeble...

Yes I think having a live database is rather overkill. I would rather specify the schema I expect in the source code. For example in SQLite you can do this:...

By the way, even if there isn't support for validating queries against a schema, just checking the SQL syntax would be good. I keep getting extra commas by writing queries...

You're too fast! I didn't know that, but in any case I think it would be nice to get something that works at compile time. I honestly have no idea...

Ah I decided to try updating the firmware on the DipDap (instructions below for random travellers since it's super confusing). I get a bit further but now it can't erase...

I tried another identical board and it gets a bit further but just seems to get stuck when I try to erase or flash it (I realised I was using...

Uhmm.... ``` C:\Users\Tim>pyocd erase --chip -t k22f -vv 0001662:DEBUG:pemicro:Opened PEMicro library: c:\python38\lib\site-packages\pypemicro\libs\Windows\unitacmp-64.dll Waiting for a debug probe to be connected... 0002351:DEBUG:pemicro:Opened PEMicro library: unitacmp-64.dll 0002938:DEBUG:pemicro:Opened PEMicro library: unitacmp-64.dll 0003535:DEBUG:pemicro:Opened PEMicro...

Ok I think the main issue is the security bit: ``` C:\Users\Tim>pyocd flash "Downloads\0244_k20dx_bl_0x8000.bin" -t k22f -vv 0001738:DEBUG:pemicro:Opened PEMicro library: c:\python38\lib\site-packages\pypemicro\libs\Windows\unitacmp-64.dll 0001819:DEBUG:session:Project directory: C:\Users\Tim 0001823:INFO:board:Target type is k22f 0001827:DEBUG:dap_access_cmsis_dap:CMSIS-DAP probe...

> Do you know what firmware was on the K20 interface chip to begin with? Mostly I'm interested if it was the PEMicro firmware that shipped on some FRDM boards,...