It is currently 20 Apr 2018 03:51

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 03 May 2016 06:13 
Offline

Joined: 07 Oct 2014 21:45
Posts: 3
Hi Gents

First time here so be gentle :wink:

Hardware: mikroMedia for Xmega. ATXMEGA128A1 rev H. (No relevant errata)
Debugger: JTagICE 3
Compiler: mikroPascal Pro v6.1.1

I was busy this weekend getting back to my MMB for XMega as I have found a project for it.
Long story short, I used the bootloader example project and it's first fault was that it used UARTC0 and not UARTF0 like it should. Fixed that and I got my gggg's in my terminal.
But every time I would program the bootloader, it would just loop, irrespective of the bootloader fuse.

Looking at the hex file it creates, it adds an interrupt vector jump table (Which I don't believe it should do).
The problem is that address 0x00000 jumps to 0x20000 and the bootloader jumps back to 0x00000. This will happen if the bootloader is programmed after the application.
(Yip, why program the bootloader after the application? Well because the hex file format provides that exact ability to program parts of memory without affecting other parts if it's right)

This makes no sense anyway as the bootloader fuse selects whether it should boot from 0x00000 (application) or 0x20000 (bootloader) and not the compiler.
The problem is the hex file output. It should not have a interrupt vector jump table. That is for the firmware application to decide. The boot select fuse is for the bootloader.

To reproduce: Select the bootloader option in edit project and disassemble the hex file produced to see the jump table.

I hope this enough information.

Regards,
Rudi


Top
 Profile  
 
PostPosted: 06 May 2016 16:06 
Offline
mikroElektronika team
User avatar

Joined: 25 Jan 2008 09:56
Posts: 9692
Hi,

Please, can you attach here this project along with the Fuse settings ?

Regards,
Filip.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: