Lazarus

Programming => Embedded => Operating Systems => Embedded - ARM => Topic started by: SymbolicFrank on June 14, 2019, 04:23:58 pm

Title: ARM embedded fpu
Post by: SymbolicFrank on June 14, 2019, 04:23:58 pm
The wiki says: "The compiler does not yet support the cortex-m* FPU", but the different types (fputype) exist and the registers are initialized in the code.

Is the wiki still correct, and/or where in the code can I find it?

Title: Re: ARM embedded fpu
Post by: Laksen on June 14, 2019, 07:42:39 pm
It should work. Report it if it doesn't  :)
Title: Re: ARM embedded fpu
Post by: SymbolicFrank on June 15, 2019, 09:15:24 am
Ok, thanks. I will.
Title: Re: ARM embedded fpu
Post by: Thaddy on June 15, 2019, 10:24:18 am
@Laksen:
Can you correct the wiki? I can confirm it works. I am not qualified enough on the subject.
Title: Re: ARM embedded fpu
Post by: Thaddy on June 26, 2019, 11:44:23 pm
The wiki says: "The compiler does not yet support the cortex-m* FPU", but the different types (fputype) exist and the registers are initialized in the code.

Is the wiki still correct, and/or where in the code can I find it?

Just to be sure: How do you bootstrap your code?
Title: Re: ARM embedded fpu
Post by: SymbolicFrank on June 27, 2019, 09:01:14 pm
It looks like fpc calls Startup() from cortexm4f_start.inc. (Or at least, it should, but I haven't tested that yet.)

After that I have to configure the clocks and peripherals myself. I'm now busy porting the USB code for a virtual COM port from a github C project.

I'll post everything when it works.
TinyPortal © 2005-2018