Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use C Compiler AND Bootloader / Pic32-Pinguino
08-11-2012, 06:10 PM,
#1
Use C Compiler AND Bootloader / Pic32-Pinguino
Hi.
Just new with Pinguino.
Have received my Pic32-Pinguino-Micro board.

Tried some examples with IDE -> works

I would like to use C compiler and keep the bootloader.
Is it possible to write some C Code.
Compile it and link it
Make a .hex with it
Flash it into proc with mphidflash.exe ?

Thanks
Reply
08-11-2012, 08:22 PM,
#2
RE: Use C Compiler AND Bootloader / Pic32-Pinguino
You're more or less writing C in the IDE.

Or just write a short pde file with
#include "my.c"

and off you go.

Or it's easy to look at the python code if you really want to do it all from a command line.

Any particular reason why you want to?

John
Reply
08-11-2012, 08:34 PM,
#3
RE: Use C Compiler AND Bootloader / Pic32-Pinguino
Well, I am new with Pinguino.
Up to now I worked with pic24 and mplabx, and I am rather happy with it.

Don't have the bootloader src, but seems sarts it calls 0x9d006000. Right ?
Don't know what the space between 0x9d005000-0x9d006000 is used for, as it looks available.

the blink example shows
:020000049D005D
:04518000000000002B
:0C5300004B1C400B0000000000000000EF
:0C5500008E1C400B0000000000000000AA
:0C560000D11C400B000000000000000066
:0C566000141D400B0000000000000000C2
:10600000009D1A3C90645A270800400300000000DD
:046380000000000019
:1064900000601A40C0045A7F020040130000000050
:1064A0000000000001A01D3C0080BD2701A01C3C95
seems that @0x9d005xxxx are used.


So I guess that we could make a build on mplabs with a linker file to put start code at 0x9d006000, flash it on the board, and start it with the bootloader.

I have a pickit3, but for quick tests download through USB and bootloader looks interesting for me...

About the python, not familiar with it, but I can give a look...

Thanks
Reply
08-11-2012, 09:32 PM,
#4
RE: Use C Compiler AND Bootloader / Pic32-Pinguino
If you're not used to PIC32 and the various other things involved why make your life much harder than it needs to be?

It should be obvious that the address space is set by Microchip and so to look at their data.

John
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)