Created Thu, 20 Jun 2013 13:04:52 +0000 by Jimstrong
Thu, 20 Jun 2013 13:04:52 +0000
Dear all
I downloaded the 'PIC32-avrdude-bootloader-master' and open the example bootloaders in MPLAB. Of all the projects, only one can successfully be built.
Only ' Uno32' can be successfully built.
I built ' MX4-USB', error is as follows:
BUILD FAILED
Any ideas? Thanks a lot.
Thu, 20 Jun 2013 14:56:00 +0000
Unfortunately, you need the full paid for version of the compiler to build the bootloaders as we have them set up right now. That was the only way that we could make them fit. The full version of the compilers allows for an optimization level of -Os which gives the smallest size. I'm pretty sure that's why you're seeing the problem you are.
You can, however, use the 'split' bootloader, where part of it resides in the 12K boot flash and the rest lives in the main flash with the free compiler. But you'll have to arrange the projects and code a bit yourself to create a version of the bootloader for the specific board you have.
*Brian
Fri, 21 Jun 2013 00:51:48 +0000
Well, there is a way to turn the free version of MPLAB XC32 into a PRO version with full optimizations. You can make this change anytime (not just during installation) by going to this web page:
http://www.microchip.com/MPLABXCEvaluationLicense
Once you make this change, you'll have 60 days to use the PRO version. After that, it reverts to a free version. You can only do this once, so its best to wait until you really need it.
Hope this helps,
Guy
Fri, 21 Jun 2013 05:26:55 +0000
can any one help me build my project. I can send you the whole project. Then I can use the built project to program my device.
If yes, please Pm me. thanks a lot.
Fri, 21 Jun 2013 06:46:13 +0000
Update:
I use MPLAB X to build my project.
When I use the XC32 as compiler, I can successfully compile. But the programed device is wrong.
When I use the C32 2.02 compiler, I still get the same error.
Where could I get the full version of C32 2.02. Has the bootloader to be compiled with C32?
thanks alot
Jin
Fri, 21 Jun 2013 12:40:42 +0000
Jim,
I've always compiled the bootloader with C32 v2.02. That's what the code and projects are set up for. I'm not sure if Guy's suggestion helps you unless you want to debug what's wrong when using XC32.
I'm happy to try and compile your project for you. Just PM me a link to your files and I'll get HEX file back to you.
*Brian