I am trying to build applets for SAM-BA 2.7. I know this is an old version, but the project I am working on is already old and if possible I don't want to upgrade to a new SAM-BA version, because then also production needs to be updated, which is no simple task.

The problem that I have is that I am compiling the extram applet for the at91sam9rl64-ek target and the compiled applet does not work. The original one is working however. What I have been able to do is compile and successfully run the Dataflash applet, which I think should mean that I have a working compiler setup.

When I run my SAM-BA batch file with the newly compiled Extram applet (and also the new Dataflash applet), the only output I get is on the console:

I see this output when I kill the SAM-BA process in my task manager, if I don't kill it, it never stops. When I open my Segger J-Link control panel window, I see that there is something going on, but I don't know what. On the status bare bottom right, I see the seconds counting and the number of calls increasing.

I don't see any output on the debug UART.

Running the SAM-BA batch file with the old Extram applet but with the new Dataflash applet, I see the following output on the console:

My setup:
------------------------------------------------------------------------------------------------
- Target connected to the PC using a Segger J-Link interface connected to a USB port
- SAM-BA 2.7
- The applets seem to be from SAM-BA 2.8 (judging from what the Extram Applet reports and the directory name in my code repository where the Dataflash applet source code is located)
- The source code repository does not have the source code for the Extram applet, so I got that from the internet for SAM-BA 2.8 and from the installed SAM-BA 2.7, but both don't work
- I am running on Windows 7
- I use Cygwin for compilation
- I have tried 2 compilers sofar:

What I have tried so far is:
- Use different compilers
- Change the applet so that it does not do anything but set the pMailbos->status to APPLET_FAIL and then return. I had hoped this would show an error in the console, but this still hangs the SAM-BA application. Which t me indicates that there is a problem in the code that is running before the main of the applet is running, but this should be the same as for the Dataflash applet, which is working.

Is there anyone that can point me towards the problem or has any tips on how I could find the problem ?
This is the first time that I am using SAM-BA and its applets, so I am a novice in this field.