Port for SAM3U under Keil µVision

franzill wrote on Friday, April 16, 2010:

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_IAR\Source\portable\RVDS\ARM7_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

davedoors wrote on Friday, April 16, 2010:

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 RVDS\ARM_CM3 directory.

franzill wrote on Friday, April 16, 2010:

Ok, but there are not this file inside the RVDS\ARM_CM3 directory.

franzill wrote on Monday, April 19, 2010:

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

davedoors wrote on Monday, April 19, 2010:

No. All the files you need are in the Source\portable\RVDS\ARM_CM3 directory. Open another Keil CM3 project to use as a reference.

franzill wrote on Tuesday, April 20, 2010:

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.

franzill wrote on Tuesday, April 20, 2010:

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

davedoors wrote on Tuesday, April 20, 2010:

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?

franzill wrote on Tuesday, April 20, 2010:

I simulate with simulator of Keil.

I have just see that I fall in HardFault_Handler.