Search found 2165 matches

by majenko
Wed Aug 30, 2017 5:37 pm
Forum: chipKIT Boards
Topic: POST call on a mx7ck
Replies: 10
Views: 170

Re: POST call on a mx7ck

Maybe the DNS lookup is failing? I think the function will return a `true` if it has worked, or `false` if it fails.
by majenko
Wed Aug 30, 2017 5:17 pm
Forum: chipKIT Boards
Topic: POST call on a mx7ck
Replies: 10
Views: 170

Re: POST call on a mx7ck

The DIIPcK class contains the function "resolveDomainName(const char *name, IPv4& ip)" which you can use to look up a domain name.

Code: Select all

IPv4 serverIP;
deIPcK.resolveDomainName("www.mywebserver.com", serverIP);
"serverIP" now should contain the IP address of the server.
by majenko
Wed Aug 30, 2017 5:10 pm
Forum: chipKIT Boards
Topic: chipKit MX7 schematic
Replies: 5
Views: 114

Re: chipKit MX7 schematic

You can't get the complete schematic. The debugger is closed source and licensed from Microchip. On the schematic (https://reference.digilentinc.com/_medi ... x7_sch.pdf) it would be on page 9, which is (oxymorinically) "intentionally left blank".
by majenko
Tue Aug 22, 2017 9:42 pm
Forum: chipKIT Boards
Topic: chipkit mx7ck calling "hello world" from webserver
Replies: 11
Views: 242

Re: chipkit mx7ck calling "hello world" from webserver

The content would look like this: POST /path/to/page.php HTTP/1.1 Host: www.mywebsite.com Connection: close Content-Length: 21 Content-Type: application/x-www-form-urlencoded name=Bob+Smith&age=34 Note that the "Content-Length" must match what you put in the "body" (everything that follows the blank...
by majenko
Tue Aug 22, 2017 9:22 pm
Forum: chipKIT Boards
Topic: chipkit mx7ck calling "hello world" from webserver
Replies: 11
Views: 242

Re: chipkit mx7ck calling "hello world" from webserver

You won't get anything back from a web server without sending it a request for a web page first.

For instance, for Google, send it:

Code: Select all

GET / HTTP/1.1
Host: www.google.com
Connection close:
[extra blank line]
by majenko
Mon Aug 07, 2017 11:57 am
Forum: chipKIT Boards
Topic: ChipKit WiFire NMI support
Replies: 1
Views: 82

Re: ChipKit WiFire NMI support

I have never tried it with the MZ, only the MZ. If it's the same (and I guess it will be) you just need to enable this bit of code in crt0MZ.S: ################################################################## # If entered because of an NMI, jump to the NMI handler. ################################...
by majenko
Tue Jul 25, 2017 10:09 am
Forum: General Discussion
Topic: Using ChipKit programmer on DIY board
Replies: 2
Views: 241

Re: Using ChipKit programmer on DIY board

"writing to bootloader" doesn't mean it's actually writing a bootloader to the chip, just that it's writing to that portion of the flash memory. The chip's flash is split into two parts - the main program flash, and the (3K) bootloader flash. The chip always boots from the bootloader flash, so somet...
by majenko
Mon Jul 24, 2017 5:04 pm
Forum: Libraries
Topic: Troubleshooting MCP23S17 and the(?) solution.
Replies: 3
Views: 219

Re: Troubleshooting MCP23S17 and the(?) solution.

If they have a unique CS pin they have no need of a unique hardware address. The hardware address only makes any sense when you have multiple chips on a single CS pins, as in my 32-port IO expander.
by majenko
Thu Jul 20, 2017 10:26 pm
Forum: Libraries
Topic: Compilation error 'panic: runtime error: index out of range'
Replies: 43
Views: 2117

Re: Compilation error 'panic: runtime error: index out of range'

The fix has been rolled into the newly released chipKIT Core 1.4.2.