Poll: Am I an idiot?
Yes
You shouldn't have been messing
Hacking is the spirit of Pinguino
[Show Results]
 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
me + ubw32 = killed pinguino32
27-02-2012, 02:09 PM, (This post was last modified: 27-02-2012, 02:12 PM by gregoryfenton.)
#1
me + ubw32 = killed pinguino32
Title says it all.

I was playing in linux trying to get ubw32 working so I can upload from the command line.

./ubw32 -w -r ~/Blink1.hex

Writing hex file '/home/greg/Blink1.hex':...............

And it goes no further.

It worked the first time Sad

Now I can't get bootloader to kick in, just the red power LED is active.

Any chance of a remedy being at hand?
Boards:
Arduino uno full, 2009 barebones
* Arduino version: 1.0.3 beta
* Processing version: 2.-0a4
PIC32-Pinguino MX440F rev. c
* Pinguino version: svn latest x.3
STM32F-Discovery
Arduino shields:
W5100 Ethernet and SD
OS: ubuntu 12.10 64 bit
Reply
27-02-2012, 02:39 PM, (This post was last modified: 27-02-2012, 02:41 PM by pingotg.)
#2
RE: me + ubw32 = killed pinguino32
I wanted to vote multiple ways!

I had hoped (and indeed expected) that the bootloader would protect its own memory area, i.e. would require a special command or the like before it would replace itself. Despite this being - to me - a BLINDINGLY OBVIOUS requirement, sounds like it doesn't do that Sad

You probably need a PICkit3 or the like to reflash the bootloader.

BTW, I have successfully uploaded from the command line. Works fine if you have a hex file with the appropriate memory layout.

John
Reply
27-02-2012, 02:46 PM,
#3
RE: me + ubw32 = killed pinguino32
That is what I thought, I am checking ebay as I type this for a programmer, and checking schematics to breadboard my own.

This cheap hobby is getting more expensive every day Big Grin
Boards:
Arduino uno full, 2009 barebones
* Arduino version: 1.0.3 beta
* Processing version: 2.-0a4
PIC32-Pinguino MX440F rev. c
* Pinguino version: svn latest x.3
STM32F-Discovery
Arduino shields:
W5100 Ethernet and SD
OS: ubuntu 12.10 64 bit
Reply
27-02-2012, 04:22 PM,
#4
RE: me + ubw32 = killed pinguino32
I'm wondering how the hex concerned actually would hit the bootloader address.

If you still have the hex please upload it and I'll take a look.

I reckon you'll still need the PIC32 programmer, sadly. Sorry but I don't know what's cheapest. Maybe someone does?

John
Reply
27-02-2012, 04:55 PM,
#5
RE: me + ubw32 = killed pinguino32
I think that the problem was that the hex was compiled from mplabX and I have uploaded the wrong one.

I am trying to see how stuff works to make functionally equivalent libraries.

The hex is:
Code:
:020000040000fa
:020000041fc01b
:10000000c0bf1a3c10005a2708004003000000003f
:1000100000601a40c0045a7f050040130000000031
:10002000009d1a3c90045a2708004003000000007d
:1000300000a01d3cf07fbd2700a01c3cf07f9c274a
:100040000260094020582001801e2a7d8449497d94
:1000500002608940c000000000e0dc4102608b408b
:10006000009d083c0405082509f800010000000077
:1000700000a0083c0000082500a0093c0c00292530
:100080000600001000000000000000ad040000adfc
:10009000080000ad0c0000ad100008252b08090178
:1000a000f9ff201400000000009d083ce80408252a
:1000b0000000098d180020110400082500000a8d99
:1000c0000400082500000b8d0900601104000825bc
:1000d00000000c91ffff4a250100082500002ca11b
:1000e000fbff40150100292505000010000000005d
:1000f000000020a1ffff4a25fdff40150100292532
:1001000003000825fcff0a24244048010000098d53
:10011000e7ff2015000000000000093c0000292531
:1001200010002011000000000100093c008029257a
:1001300088bf0a3c10204a25000049ad0100093c57
:100140000080292588bf0a3c20204a25000049adaf
:100150000100093c0080292588bf0a3c30204a253f
:10016000000049ad00488040ffff0a2400588a4043
:10017000c09f093c00102925017889400000093cf6
:100180000100292500000a2444492a7d01608a4093
:100190008000093c00688940008008408005097d96
:1001a000404c0900006008405800013c2440010117
:1001b0002540280100608840009d083c0c0508256a
:1001c00009f800010000000000600840bfff013c8a
:1001d000ffff21342440010100608840000084308a
:1001e0000000a530009d083cd80408250800000147
:0401f000000000000b
:020000040000fa
:020000041fc01b
:10038000009d1a3cf8045a270800400300000000b2
:020000040000fa
:020000041fc01b
:10118000009d1a3c0c035a27080040030000000091
:020000040000fa
:020000041d00dd
:10000800a0ffbd275c00bfaf5800beaf21f0a00322
:1000180081bf033c00f2628cc418027c00f262ac1f
:10002800c404023c00b442341000c2afffff0224f3
:100038001400c2af4501400f000000001800c2af15
:1000480088bf023c40000324042043ac1400c28f44
:1000580001004230ff0042301d0040100000000047
:100068001000c28f1c00c2af2000c0af2700400b99
:10007800000000002000c28f010042242000c2af0f
:100088001c00c38f36fe023c803c423421106200c3
:100098001c00c2af1c00c38fc901023c81c342349b
:1000a8002b106200f3ff4010000000004501400fd4
:1000b800000000002400c2af88bf023c2000c38fac
:1000c800004043ac2400c48f1d01400f0000000015
:1000d8001400c28f02004230680040100000000087
:1000e8001000c28f2800c2af2800c28f2c00c2aff8
:1000f8002800c38fc404023c01b442342b106200b0
:1001080008004014000000000800023c3000c2afa4
:100118002c00c28f421002002c00c2af4c00400bd2
:10012800000000003000c0af3000c28f3400c2af02
:100138004501400f000000003800c2af88bf023cf4
:100148000030428c0003427cff0042303c00c2afca
:100158003c00c28f090040140000000088bf023c28
:1001680000100324083043ac88bf023c0030428ca6
:1001780000104230fcff4010000000003c00c28f1d
:100188004000c2af81bf023c30f240ac81bf023cac
:1001980099aa033c5566633430f243ac81bf023cf4
:1001a8006655033caa99633430f243ac81bf023ce4
:1001b80000f0428c5400c2af5400c28fc4a4027c29
:1001c8005400c2af5400c38f3400c28f25106200a0
:1001d8005400c2af5400c38f81bf023c00f043ac4f
:1001e80081bf023c00f0428c5400c2af81bf023c88
:1001f8003333033c3333633430f243ac4000c28fb3
:100208004400c2af4400c28f130040100000000039
:1002180088bf023c0030428c0003427cff00423021
:100228004800c2af4800c28f100040140000000010
:1002380088bf023c00100324083043ac88bf023c4e
:100248000030428c00104230fcff401000000000db
:100258009e00400b0000000088bf023c00100324f1
:10026800043043ac9e00400b00000000000000007a
:100278003800c48f1d01400f000000001400c28f19
:10028800040042300c0040100000000088bf023c0f
:100298000040428c4c00c2af4c00c28f3000423448
:1002a8004c00c2af88bf023c4c00c38f004043ac37
:1002b8003001400f000000001000c28f5000c2af94
:1002c80081bf023c00f0428cc00c427cff004230ef
:1002d8005000c38f061043005000c2af1800c48fef
:1002e8001d01400f000000001501400f0000000034
:1002f800212000000901400f00000000c100400b50
:0403080000000000f1
:020000040000fa
:020000041d00dd
:10030c00a8ffbd270400a1af0800a2af0c00a3af4b
:10031c001000a4af1400a5af1800a6af1c00a7af27
:10032c002000a8af2400a9af2800aaaf2c00abafc7
:10033c003000acaf3400adaf3800aeaf3c00afaf67
:10034c004000b8af4400b9af4800bfaf1240000046
:10035c004c00a8af104000005000a8af006804404b
:10036c0000600540f700400f000000005000a88f0f
:10037c00110000014c00a88f130000010400a18f94
:10038c000800a28f0c00a38f1000a48f1400a58f5f
:10039c001800a68f1c00a78f2000a88f2400a98fff
:1003ac002800aa8f2c00ab8f3000ac8f3400ad8f9f
:1003bc003800ae8f3c00af8f4000b88f4400b98f2f
:1003cc004800bf8f5800bd27c00000001800004235
:020000040000fa
:020000041d00dd
:1003dc00f0ffbd270c00beaf21f0a0030048024087
:1003ec000000c2af006802401f004230108082af94
:1003fc0000700240188082af00600340ff0f023c87
:10040c00feff42342410620000608240c0000000f5
:08041c000701400b0000000085
:020000040000fa
:020000041d00dd
:10042400006803408000023c25106200006882409e
:10043400040080100010032488bf023c0800e0037d
:10044400041043ac88bf023c0800e003081043ac2e
:020000040000fa
:020000041d00dd
:10045400f8ffbd270400beaf21f0a00321e8c003cc
:100464000400be8f0800bd270800e0030000000060
:020000040000fa
:020000041d00dd
:100474000100843003008014000000000800e00341
:0c048400006060410800e003206060415f
:020000040000fa
:020000041d00dd
:1004900000601a40bfff1b3cffff7b3724d05b038b
:0804a00000609a4018000042c0
:020000040000fa
:020000041d00dd
:1004a800f8ff022400800340241062000200423456
:0804b8000800e003008082400f
:020000040000fa
:020000041d00dd
:1004c000f8ff02240080034024106200030042343d
:0804d0000800e00300808240f7
:020000040000fa
:020000041d00dd
:1004d8000200400f00000000ffff001000000000b5
:020000040000fa
:020000041d00dd
:1004e800000000a00c000000000000000000000058
:020000040000fa
:020000041d00dd
:0c04f8003f0000703f01400b00000000be
:020000040000fa
:020000041d00dd
:080504000800e0030000000004
:020000040000fa
:020000041d00dd
:08050c000800e00300000000fc
:020000040000fa
:020000041d00dd
:080514000800e00300606241f1
:00000001FF
Boards:
Arduino uno full, 2009 barebones
* Arduino version: 1.0.3 beta
* Processing version: 2.-0a4
PIC32-Pinguino MX440F rev. c
* Pinguino version: svn latest x.3
STM32F-Discovery
Arduino shields:
W5100 Ethernet and SD
OS: ubuntu 12.10 64 bit
Reply
27-02-2012, 07:08 PM, (This post was last modified: 27-02-2012, 07:09 PM by pingotg.)
#6
RE: me + ubw32 = killed pinguino32
That has data areas starting at 0x1d000000 and at 0x1fc00000

IIRC, the former is where the user program is expected to be but the latter is the bootloader area Sad

I suspect this means an unintended procdefs.ld (or other .ld file) was used but do check carefully.

I'm fairly sure the bootloader hex is on the ubw32 site once you have a suitable programming tool.

John
Reply
27-02-2012, 07:58 PM,
#7
RE: me + ubw32 = killed pinguino32
Thanks John

I have seen a download on this forum for the pic32 firmware. I can give it a go when I get the programmer.

I can justify the programmer as it will open the world of 15F's et cetera Smile
Boards:
Arduino uno full, 2009 barebones
* Arduino version: 1.0.3 beta
* Processing version: 2.-0a4
PIC32-Pinguino MX440F rev. c
* Pinguino version: svn latest x.3
STM32F-Discovery
Arduino shields:
W5100 Ethernet and SD
OS: ubuntu 12.10 64 bit
Reply
27-02-2012, 10:11 PM, (This post was last modified: 27-02-2012, 10:12 PM by pingotg.)
#8
RE: me + ubw32 = killed pinguino32
I think any in this forum will NOT be for the ubw32. I may be wrong, though.

Try Brian's site http://www.schmalzhaus.com/UBW32/

John
Reply
27-02-2012, 11:39 PM,
#9
RE: me + ubw32 = killed pinguino32
You misunderstood me, ubw32 the program rather than ubw32 the hardware Smile
Boards:
Arduino uno full, 2009 barebones
* Arduino version: 1.0.3 beta
* Processing version: 2.-0a4
PIC32-Pinguino MX440F rev. c
* Pinguino version: svn latest x.3
STM32F-Discovery
Arduino shields:
W5100 Ethernet and SD
OS: ubuntu 12.10 64 bit
Reply
28-02-2012, 12:35 AM,
#10
RE: me + ubw32 = killed pinguino32
Oh, sorry. The program "just works". It's used by the IDE. It's mphidflash with a new name as far as I can see.

John
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)