Port for SAM3U under Keil µVision

Hi, I try to port FreeRTOS on a SAM3U-EK board with Keil toolchain.
I use an existing working project and I have included FreeRTOS sources.
Unfortunately, portASM.s file i use (from CORTEX_AT91SAM3U256_IARSourceportableRVDSARM7_LPC21xx\) seem d’ont compile with SAM3U. I have the following error:
“portASM.s(69): error: A1630E: Specified processor or architecture does not support ARM instructions” Have there an working port of portASM.s for SAM3U? Best regards

Port for SAM3U under Keil µVision

That is because you are trying to use an ARM7 file (which does support ARM code) with a cortex M3 (which does not support ARM code). You want to use the files from the RVDSARM_CM3 directory.

Port for SAM3U under Keil µVision

Ok, but there are not this file inside the RVDSARM_CM3 directory.

Port for SAM3U under Keil µVision

Hi,
If I want to port the SAM3U project for to Keil toolchain, I have to rewrite the portasm.s from IAR project with asm code for RVDS/Keil compiler? Thanks

Port for SAM3U under Keil µVision

No. All the files you need are in the SourceportableRVDSARM_CM3 directory. Open another Keil CM3 project to use as a reference.

Port for SAM3U under Keil µVision

I understand now.
In Keil, asm code and C code are in the same file port.c .
In IAR project, the two different codes are in two different files.

Port for SAM3U under Keil µVision

Hi, I still have a problem with my project. I have modified the demo program. Only two tasks are running: vStartLEDFlashTasks and the task for LCD (just for show a single text line).
When the program runs on the SAM3U-EK board, it’s very slow (!).After a while, the program resets. I have the same problem under simulation, the program resets and I have not found why. Any suggestions? Thanks

Port for SAM3U under Keil µVision

Just a stab in the dark, but do you have an interrupt that is continuously firing because its not being cleared correctly? How are you simulating the application?

Port for SAM3U under Keil µVision

I simulate with simulator of Keil. I have just see that I fall in HardFault_Handler.