Skip to main content

Topics

This section allows you to view all Topics made by this member. Note that you can only see Topics made in areas you currently have access to.

Topics - TomE

1
USB Infrared Toy / Flashing the firmware with an PIC programmer?
Hi,

I have my IR Toy in firmware upgrade mode but it looks like the macOS Sierra grabs the USB HID device exclusively:
My self-compiled and and log statement enriched version of fw_update says it fails to open the USB port.
trying fw_update with a Windows7 or Windows 10 VM on that Sierra machine also fails.

It looks like the only way for me is to use an PIC programmer to flash the IR Toy.
I tried to flash the firmware with an PIC KIT 2 programmer. However, I can not get a working device with my firmware flash attempts.
I tried:

- Flash the v22 firmware .hex => Seems missing the boot loader
- Flash the Bootloader afterwards -> Seems to overwrite the firmware
- Flash a firmware created by merging boot loader + firmware.v22 merged with the python intelhex package.

All three options just 'brick' my IRToy. Restoring an firmware dump extracted poor to flaming brings it back in the "HID firmware upgrade mode".

Any hints how to:
- get it out of firmware upgrade mode with ah PIC programmer
- create a firmware I can upload with the PIC KIT programmer?
- which regions to program? the PicKit programmer has the options

 memory regions:
  P = Program memory
  E = EEPROM
  I = ID memory
  C = Configuration memory

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01522249232session_write_close ( )...(null):0
20.01572380832ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01572381608Database_MySQL->query( ).../DatabaseHandler.php:119
40.06512520344Database_MySQL->error( ).../Db-mysql.class.php:273