porting bootloader from AT32UC3B0256 to AT32UC3B0512

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

Hi,

 

So I have a bootloader that was based off the USB DFU bootloader for the uc3b0256.

I now need to port this to the uc3b0512.

What I have tried is changing the chip type in the project, and changing the memory ranges in the .lds linker file to match the ranges of the uc3b0512.

However the project is not building when it is set to uc3b0512.  It claims about

 

\src\boot.S(237,1): error: non-constant expression in ".if" statement
\src\boot.S(237,1): error: non-constant expression in ".elseif" statement
\src\boot.S(292,1): error: non-constant expression in ".if" statement
\src\boot.S(292,1): error: non-constant expression in ".elseif" statement

 

I have attached a zip of this offending file.  It appears that some define is no longer working properly, but the line numbers reported do not appear to line up with the file correctly either.

 

Can someone help me with fixing these issues please ?

Also, if anyone knows where I can find the original USB DFU source code for the uc3b series, I would be very pleased as I have lost this and am not able to find it on Atmels site via google.

 

Thanks,

 

Steed.

 

Attachment(s):