Skip to main content

Messages

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

Messages - dpropicweb

318
Web platform / Re: New uIP code features
[quote author="bonybrown"]
Would be good to know if it works with other people's SD cards.
[/quote]

Kingston 4Gb

Code: [Select]
>ls /
Error finding partition start

>sddump 1
Error reading sector. Response code:01

A small amomaly that took me a while to figure out: the uIP stack fails to initialise (ie it hangs immediately after "timer init" and a blank line) if I use the reset button or after a firmware upload. The heartbeat LED is on solid. The only way to get it to work is to remove the power and then it's fine.
321
Project development, ideas, and suggestions / Re: Seeed Studio Adjustable Power Supply
[quote author="ian"]
I'm really fond of the 2.1mm DC barrel jacks though, I never have 'JST' or female pin header connectors handy.
[/quote]

I've only been able to find 2.5mm plugs - even Seeed only seem to carry 2.5mm (along with Futurlec where I get most of my components). The jack I'm using for the web platform (removed from an unused plug pack) has internal "grippers" that grab the 2.1mm centre spigot of the barrel socket, so works well re-attached to an old Sony-Ericsson 4.9v mobile phone charger.

As for breadboard PSUs, I particularly liked the Seeed one because the 4 pin connectors for the power rails on both sides of the board would have allowed me to have 3.3v on one side and 5v on the other, and the 4 pins would have kept it "plugged in" and very stable compared with the 2 pin versions I've previously seen. There's usually enough wires floating round the board that I didn't mind giving up some board real estate for the PSU.

The only options for making it universal seem to be (1) keeping it a separate board and attaching fly leads to the breadboard power rails or (2) having the board straddle the centre ditch, but this option takes up even more space unless it is also done with fly leads, in which case see option 1 :)
322
Project development, ideas, and suggestions / Re: Seeed Studio Adjustable Power Supply
[quote author="IPenguin"]
It would help us customers if the shops would provide following information for their breadboard power supplies:
b) which of the breadboards they offer their powersupply will fit on
[/quote]

There's a post by Seeed in their forum (http://www.seeedstudio.com/forum/viewto ... ?f=4&t=596) in reply to a specific question about this stating that the breadboard PSU in question fits the breadboard in question. It doesn't of course. When I queried this with them, they came back and said it fits one but not the other (the one it fits is the smaller transparent plastic one). Not very helpful.
323
Bus Pirate Support / Re: Synthetos BP Case
[quote author="rhyde"]
The Seeed case fits well, but covers too many lights, and covers the legend.  Which my feeble brain needs.
[/quote]

I have the Seeed case and was going to do some hole surgery for the LEDs, but I found that they were so bright, they show through the plastic pretty well without holes. The legend would be handy though...
324
Web platform / Re: New uIP code features
[quote author="bonybrown"]
Hopefully I can do some telnet option negotiation soon, and that should help improve the interoperability.
[/quote]

Don't waste your time on the Windows default telnet.exe - you can't get it out of char-by-char mode. It only supports the following operating parameters:

    *     WILL AUTH (NTLM Authentication)
    *     WONT AUTH
    *     WILL TERM TYPE
    *     WONT TERM TYPE
    *     LOCALECHO off
    *     LOCALECHO on

Yep, pretty much a broken client and lost cause.
326
Web platform / Re: Readin Registers from ethernet
Unless I'm missing something, it seems easy enough to display the registers. Setup your own custom page handler (see CustomHTTPApp.c), read the registers and output the results in an HTML page or using the existing ~variable~ parsing method. You could even use inline asm in C :)
329
Web platform / Re: Can't load programs to Flash
[quote author="jeffman54"]
My dump printout was using the debug option under advanced mode in the bootloader GUI software.
[/quote]

My ds30loader GUI version is 1.3.1. I don't have a debug option under advanced. Are you sure that you are using the version of ds30loader that came with the web platform software archive?

It is, at the very least, misreading the hex file. The number of program words is exactly half what it should be, but the number of rows is the same. This looks to me like it's expecting a different microcontroller part.

Quote
So the problem seems to be when I try to write to flash - it doesn't respond because the memory is already loaded with a program.

It is flash memory. Seeedstudio was not shipping the web platform with other than the bootloader pre-programmed. In the normal course of events, any program in the flash memory would simply be overwritten when you loaded a new one. That's not the problem.

Quote
If I try to overwrite the bootloader program I get :

The hex file does not include a replacement bootloader. The original bootloader should not be overwritten. Normally ds30loader would not let you try to overwrite it.

Quote
So it would appear that I have a flash write problem (hardware ?) or else the bootloader is corrupted somehow.

I think the bootloader is still ok, the hex file is ok, but there's an issue with what you're using to load it. The number of program words is out by exactly 50%. I would:

0. test the integrity of your web platform archive;
1. delete the existing files and re-extract the files from the archive;
1. ensure you are using the ds30loader that came in the web platform firmware archive;
2. ensure your hex file is 489,816 bytes in size;
3. delete any .xml files in the same directory as the ds30loader;
4. setup the ds30loader, pic family, actual pic part, com port and baud rate (115200);
5. load the hex file.

and try again. It should work :)
330
Web platform / Re: Can't load programs to Flash
[quote author="jeffman54"]
I just received my pre-built board from Seeed Studio, and I am trying to load the first network function test demo. The board appears to already have the bootloader installed but whenever I try to load the demo I get a response timeout when trying to erase page 0.
Debug mode tells me that 43520 program words were found in 680 rows and that the bootloader start address is 0x15400.
The dp-wp-stackdemo.v0a.hex hex file is validated ok and the goto user address is 0x153FC and user app address is 0x200.
[/quote]

There is something not quite right about that. Here's what happens when I load the dp-wp-stackdemo.v0a.hex file to my web platform from ds30loader:

Code: [Select]
Initiating download...
      Searching for bl .
      Found dsPIC33FJ128GP204 fw ver. 1.0.2
      Waiting for bootloader to be ready...ok
      Parsing hex-file...
            Validating hex-file...ok
            Hex-file successfully parsed

            87040 program words found in 680 rows
            0 eeprom words found
            8 config words found
      Writing flash...ok
      Download finished
      Tx 132kB / Rx 769 bytes / 24.8s

Quote
Am I missing something ? Shouldn't it just overwrite the program at the correct address ? How do I get it to erase the existing program and load the new program ?

Are you using the copy of ds30loader that came with the web platform? Your output looks rather different to mine (see above).

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