More fun with the ChipKit uC32 and the Dragino YUN shield

ltheoret
Posts: 50
Joined: Wed Dec 23, 2015 9:19 pm

More fun with the ChipKit uC32 and the Dragino YUN shield

Post by ltheoret » Mon Feb 06, 2017 7:23 am

Hi,

I have upgraded the firmware in one of my Dragino YUN Shields to the new version 4.1.1.
The good news is the bridge still works as before. but again I cannot program my chipkits.

Here is the link that works with version up to 2.0.7. if the Dragino and the chipkit.
http://chipkit.net/forum/viewtopic.php?f=18&

Here is the like to the Dragino forum where I got the update.
https://groups.google.com/forum/#!topic ... -m_gsDKXSU

Any help would be appreciated.

Luc

User avatar
majenko
Site Admin
Posts: 2164
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: More fun with the ChipKit uC32 and the Dragino YUN shield

Post by majenko » Mon Feb 06, 2017 2:24 pm

In what way can you not program the chipkits at the moment? What method are you using, and what errors if any do you get?
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

ltheoret
Posts: 50
Joined: Wed Dec 23, 2015 9:19 pm

Re: More fun with the ChipKit uC32 and the Dragino YUN shield

Post by ltheoret » Mon Feb 06, 2017 10:11 pm

Hi majenko,

I upgraded my Dragino YUN shield from version 2.0.7 to version 4.1.1.
Then I installed python-MySQL. Then I tested by preloading the ChipKit uC32 with my MySQL test sketch.
everything worked, the test data showed up on a remote database.

The I installed your pic32prog software following the instructions on this blog:
https://hackingmajenkoblog.wordpress.co ... it-yun-yum

I pre-loaded the same board again with Blink from the USB with UECIDE, to avoid bridge conflicts as it would not program through the Dragino YUN shield.

Then I ran UECIDE with the upload via Dragino as target and uC32 as the board.

This is the output of UECIDE:

Code: Select all

Compiling...
• Compiling sketch...
• Compiling core...
‣ api
• Compiling libraries...
• Linking sketch...
Compiling done.
Memory usage
• Program size: 6656 bytes
• Memory size: 996 bytes
• Compilation took 2.046 seconds
Uploading firmware...
Uploading firmware image... 
Programming target... 
killall: init: no process killed
grep: /proc//status: No such file or directory
sh: you need to specify whom to kill
sh: you need to specify whom to kill
Programmer for Microchip PIC32 microcontrollers, Version 2.0
    Copyright: (C) 2011-2015 Serge Vakulenko
Looking at the boards: first the Dragino YUN shield:
The Green PWR and White SYS LED are on solid.
The Blue WLAN LED is blinking non stop.

On the ChipKit uC32:
The green LED5 is on solid
The green LED4 is blinking fast non stop
Unfortunately I do not see the 2 Red LEDs 1 and 2 the RX and TX?

on it stays hung in that state.

Luc

ltheoret
Posts: 50
Joined: Wed Dec 23, 2015 9:19 pm

Re: More fun with the ChipKit uC32 and the Dragino YUN shield

Post by ltheoret » Mon Feb 06, 2017 10:14 pm

hi,

Forgot to mention the jumper from ICSP pin 5 to the RST pin is still on.

Luc

User avatar
majenko
Site Admin
Posts: 2164
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: More fun with the ChipKit uC32 and the Dragino YUN shield

Post by majenko » Tue Feb 07, 2017 12:18 am

It looks like /proc may not be mounted. Not sure how you'd go about doing that on that version...

I'll have to download the update and see if I can get my Dragino going with it...
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

ltheoret
Posts: 50
Joined: Wed Dec 23, 2015 9:19 pm

Re: More fun with the ChipKit uC32 and the Dragino YUN shield

Post by ltheoret » Tue Feb 07, 2017 8:58 pm

Hi,
One word of caution when upgrading the Dragino to version 4.1.1.
Attached is a dump of two Draginos, one with version 4.1.1 on the left and the other with version 2.0.7 on the right.
with version 2.0.7 you get 5.6Mb of space to work with about 860kb used.
with version 4.1.1 you get 1.1Mb of space to work with about the same used.
The core is a lot bigger leaving less room for your packages.

Note: both Draginos have python-MySQL installed.

Luc
Attachments
Dragino.JPG
Dragino.JPG (276.57 KiB) Viewed 447 times

User avatar
majenko
Site Admin
Posts: 2164
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: More fun with the ChipKit uC32 and the Dragino YUN shield

Post by majenko » Tue Feb 07, 2017 11:13 pm

The first thing I always do with any OpenWRT system is to shift /overlay onto an SD or USB flash drive. Gives you gigs of space for your packages then.

https://wiki.openwrt.org/doc/howto/extroot
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

ltheoret
Posts: 50
Joined: Wed Dec 23, 2015 9:19 pm

Re: More fun with the ChipKit uC32 and the Dragino YUN shield

Post by ltheoret » Wed Feb 08, 2017 5:53 am

Hi majenko,

Thank you for the suggestion. My problem is, I bought a pack of 8Gb SanDisk USB sticks, but non of them are bootable. Do the USB stick have to be bootable?

With the raspberry pi non of my SanDisk SD cards work it, it only works with Kinston SD cards.

Luc

User avatar
majenko
Site Admin
Posts: 2164
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: More fun with the ChipKit uC32 and the Dragino YUN shield

Post by majenko » Wed Feb 08, 2017 12:42 pm

No, USB sticks don't need to be bootable for extroot. It boots off the internal flash as per normal then, instead of mounting the internal flash spare space as /overlay (which is then "overlaid" over root) it mounts the SD or USB drive instead.

Early Pis had terrible problems with SD card compatibility. Newer ones are much better. The first Pi boards that came out would only work with a small handful of cards. It was such a sorry mess that you could (and still can) buy Pi specific cards. The Pi is the only device I have ever known to suffer from such shoddy coding as that. I think it was partly because the boot.elf was completely closed source and written by Broadcom (who are completely useless when writing such things - I mean, look at the fiasco I had with their USB WiFi dongles...). I have never know a card (except one that is actually dead and doens't work at all) not work on a Dragino or Yun or any other embedded system.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

ltheoret
Posts: 50
Joined: Wed Dec 23, 2015 9:19 pm

Re: More fun with the ChipKit uC32 and the Dragino YUN shield

Post by ltheoret » Mon Feb 13, 2017 5:21 am

Hi,
Am I the only one using the Dragino shield with the ChipKit boards?

Luc

Post Reply