Recent

Author Topic: ARM embedded fpu  (Read 813 times)

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 635
ARM embedded fpu
« 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?


Laksen

  • Hero Member
  • *****
  • Posts: 617
    • J-Software
Re: ARM embedded fpu
« Reply #1 on: June 14, 2019, 07:42:39 pm »
It should work. Report it if it doesn't  :)

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 635
Re: ARM embedded fpu
« Reply #2 on: June 15, 2019, 09:15:24 am »
Ok, thanks. I will.

Thaddy

  • Hero Member
  • *****
  • Posts: 8927
Re: ARM embedded fpu
« Reply #3 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.
Most people that want to use threading should learn to patch their jeans first: use a needle.

Thaddy

  • Hero Member
  • *****
  • Posts: 8927
Re: ARM embedded fpu
« Reply #4 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?
Most people that want to use threading should learn to patch their jeans first: use a needle.

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 635
Re: ARM embedded fpu
« Reply #5 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.