This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[Cortex-M3] Library float point initialization generates busfault

Hi,

I'm using Cortex-M3 and software float point.
During C library initialization ( before reach main ) the fp_init will generate a bus fault.

Bus fault is not generated when Microlib is used.

I'm using MDK-ARM 4.10.

Have anyone experienced this issue with FP before?

What could be wrong?

The only workaround right now is to use Microlib or remove FP usage.

Depending on how the float point C code is removed/manipulated it will generate fault at fsub, fnormalize and so on.

Parents
  • The things we find out The Hard Way. This time, I'm prepared for the NSS signal's odd behavior.

    Undocumented Features are always 'fun' when crunch time comes. One of the reasons to go with a FAST processor: to make it up by bit-banging.

        (1x) STM32F103xG (ARM Cortex M-3)
      + (1x) USB Hub (uPD720114)
      + (1x) Xilinx FPGA (XC3S400A)
      + (4x) Ti TMS320C2812 (DSPs)
      + (4x) Actel IGLOO Nano FPGAs (AGLN250V2)
     -------------------------------------
      = Sweet and fun times ahead... along with headaches + (x120) meds.
    

    --Cpt. Vince Foster
    2nd Cannon Place
    Fort Marcy Park, VA

Reply
  • The things we find out The Hard Way. This time, I'm prepared for the NSS signal's odd behavior.

    Undocumented Features are always 'fun' when crunch time comes. One of the reasons to go with a FAST processor: to make it up by bit-banging.

        (1x) STM32F103xG (ARM Cortex M-3)
      + (1x) USB Hub (uPD720114)
      + (1x) Xilinx FPGA (XC3S400A)
      + (4x) Ti TMS320C2812 (DSPs)
      + (4x) Actel IGLOO Nano FPGAs (AGLN250V2)
     -------------------------------------
      = Sweet and fun times ahead... along with headaches + (x120) meds.
    

    --Cpt. Vince Foster
    2nd Cannon Place
    Fort Marcy Park, VA

Children
No data