Skip to main content

Show Posts

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

Messages - MikeSmith

1
General discussion / Re: PIC12LF1840T48A MCU with Integrated Sub-GHz Trasmitter
If you're looking for a micro with integrated transceiver, the SiLabs Si1000 is worth considering.

It's available on (very) cheap boards from a number of suppliers (HopeRF, for example), has a more powerful transmitter (+20dBm), more code space, more RAM, etc. etc.

http://www.silabs.com/products/wireless ... i1000.aspx

(Also a shameless plug; work-in-progress firmware for the Si1000 at https://github.com/MikeSmith/SiK)

 = Mike
2
General discussion / Re: New Microchip PIC32 chips in DIP packages are coming
[quote author="octal"][quote author="arhi"]I'd like to see CortexM3 in 28DIL[/quote]

TI already offers CortexM3 in DIP packages (originally made by Luminary).[/quote]

Can you cite a part number?  TI's parametric search claims otherwise.

Sadly, the NXP part is also still "in development".  It would be super-amusing if it had a pinout compatible with the 28-pin AVRs (it really should, since the AVR pinout is virtually the only logical layout for a DIP CPU at that sort of speed).

 = Mike
3
Open Bench Logic Sniffer / Re: Does Mac version of ols-loader work?
FWIW, I tried the 'robots' tool as well (built from the head of the GIT repo).  It fails verifying the bitstream:

Code: [Select]
[heavyweight:Mike/OLS/ols-fwloader] msmith% ./src/ols_fwloader -f APP -P /dev/tty.usbmodemfd3131 -V -W -w ../logic_sniffer.bit -t BIN
Found OLS HW: 1, FW: 2.3, Boot: 2
Found flash: WINBOND W25X40
Reading file '../logic_sniffer.bit'
Erasing flash ...
Chip erase ... done :)
Will write 662 pages
.....................
Checking flash ...
Failed :(

And of course it can't update the PIC firmware at all:


Code: [Select]
[heavyweight:Mike/OLS/ols-fwloader] msmith% sudo ./src/ols_fwloader -f BOOT -P /dev/tty.usbmodemfd3131 -V -W -w ../OLSv1.firmware.v3.0.hex
...

libusb:info [process_new_device] found device with address 11 at 011-04d8-fc90-00-00
libusb:info [darwin_open] device open for access
libusb:error [darwin_claim_interface] USBInterfaceOpen: another process has device opened for exclusive access
Cannot claim USB device
Unable to set alternative interface
libusb:info [darwin_async_io_callback] an async io operation has completed
libusb:info [op_handle_events] checking fd 4 with revents = 0
libusb:info [op_handle_events] checking fd 6 with revents = 1
libusb:info [darwin_handle_callback] handling control completion with kernel status 0
libusb:info [ep_to_pipeRef] converting ep address 0x81 to pipeRef and interface
libusb:warning [ep_to_pipeRef] no pipeRef found with endpoint address 0x81.
libusb:error [submit_bulk_transfer] endpoint not found on any open interface
Other error - recv
4
Open Bench Logic Sniffer / Re: Does Mac version of ols-loader work?
Ian, sorry for the delay.

This is with the ols-loader from the thread you linked.  The thread says 0.4, but as you can see the sign-on says 0.3.

Code: [Select]
[heavyweight:~/work/Mike/OLS] msmith% ./ols-loader -p:/dev/tty.usbmodemfd3131 -wB:logic_sniffer.bit -write
Logic Sniffer ROM loader v0.3 (November 9, 2010)
Opening serial port '/dev/tty.usbmodemfd3131' @ 921600 ... OK
Found OLS HW: 1, FW: 2.3, Boot: 2
Found flash: WINBOND W25X40
Reading BIN file 'logic_sniffer.bit' ... OK! (binary size = 169314)
Will write 662 pages
Page 0x0000 write ... (0x0000 0x0000)OK
...

Page 0x0295 write ... (0x0002 0x0095)OK
[heavyweight:~/work/Mike/OLS] msmith% ./ols-loader -p:/dev/tty.usbmodemfd3131
Logic Sniffer ROM loader v0.3 (November 9, 2010)
Opening serial port '/dev/tty.usbmodemfd3131' @ 921600 ... OK
Found OLS HW: 1, FW: 2.3, Boot: 2
Found flash: WINBOND W25X40

How do I tell whether that's updated or not?

Also, assuming I have a pickit2 and a Bus Pirate, how would I go about updating the PIC firmware?
5
Open Bench Logic Sniffer / Re: Does Mac version of ols-loader work?
Ian, thanks. 

I'm quite keen to update my OLS, as the new bitstream's capabilities sound fantastic, so if anyone has suggestions I should be trying (e.g. using a Bus Pirate, pickit2, etc) then I'd be more than happy to try them out and report back...
6
Open Bench Logic Sniffer / Does Mac version of ols-loader work?
Has anyone had any success with the Mac OS version of ols-loader?

It reports v0.3 rather than v0.4, and despite claiming to run to completion:

Code: [Select]
msmith% ./ols-loader -p:/dev/tty.usbmodem3a21 -wH:OLSv1.firmware.v3.0.hex -write -eraseLogic Sniffer ROM loader v0.3 (November 9, 2010)
Opening serial port '/dev/tty.usbmodem3a21' @ 921600 ... OK
Found OLS HW: 1, FW: 2.3, Boot: 2
Found flash: WINBOND W25X40
Chip erase ... done :)
Reading HEX file 'OLSv1.firmware.v3.0.hex' ... OK! (binary size = 16376)
Will write 64 pages
Page 0x0000 write ... (0x0000 0x0000)OK
...
Page 0x003f write ... (0x0000 0x003f)OK

the firmware on the device has not been updated:

Code: [Select]
msmith% ./ols-loader -p:/dev/tty.usbmodem3a21 -statusLogic Sniffer ROM loader v0.3 (November 9, 2010)
Opening serial port '/dev/tty.usbmodem3a21' @ 921600 ... OK
Found OLS HW: 1, FW: 2.3, Boot: 2
Found flash: WINBOND W25X40
OLS status: 00

It's also worth noting for anyone trying, that any update that requires access to the device in HID mode seems like it cannot be performed on Mac OS X, as the HID stack will unconditionally claim any HID device.
7
CPLD programmable logic / Re: Divide by 10 logic
In general when dividing it can help to cascade dividers.

For example, to divide by 10, you want to divide by 2 first, then take the result of that operation and divide by 5.  Likewise to get /100 with a /10 tap, just use two /10 dividers.

There's lots of material too be googled on dividers; a little patience will get you plenty of examples.  You can do divide by 5 with three JK flops and some combinatorial logic.  If you follow that with a D flop in a divide-by-2 arrangement you can get /10 with a 50% duty cycle.

This is something you can implement fairly easily with discrete high-speed logic, too.

( ! ) 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.01452342952session_write_close ( )...(null):0
20.01482474528ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01482475304Database_MySQL->query( ).../DatabaseHandler.php:119
40.06092614024Database_MySQL->error( ).../Db-mysql.class.php:273