• printf retargetting for nano-specs Cortex M0

    eugch
    eugch

    With nano-specs I can't get printf statements like this to work where it needs to take in values from a variable.

    printf ("Data1 %d\n", data1);

    A simpler printf with just characters work ok.

    printf ("abc\n");

    Per the standard CMSDK…

    • 8 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Default crt0.o startup for GCC - Cortex M0

    eugch
    eugch

    I am trying to write a bootloader that fits within a 4Kbyte space and I'm trying to keep the essential code as small as possible.

    However, with the standard default setup from the CMSDK Cortex M0 enviroment, even with a empty main(), I notice that…

    • 8 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Multiple Application Code with Bootloader

    eugch
    eugch

    Hello,

    Looking for some pointers on the scenario below. I'm fairly new to firmware and bare-metal programming.

    In the system I'm working on, I am looking to get a bootloader and 2 application programs compiled. The 2 application programs will be placed…

    • Answered
    • 9 months ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • "mov" vs "adds ... #0" (cortex M0)

    Bill Westfeild
    Bill Westfeild

    I've noticed that arm gcc, when compiling code for Cortex-M0 (at least) seems to generate instructions:

       adds r0, r2, #0

    Where I'm pretty sure that it the same as:

       movs r0, r2

    In fact, I can disassemble a relatively substantial program and not…

    • over 2 years ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Where is the code for __aeabi_fmul in gcc_eabi?

    vgkarthik_88
    vgkarthik_88

    Hi, I am trying to find out where exactly the soft floating point code used in eabi for a M0+ comes from. When i compile a program using floating point using gcc_eabi, it generates code to carry out this operation. ( code included).

    I downloaded the…

    • over 2 years ago
    • Open Source Software and Platforms
    • GNU Toolchain forum
  • Gcc naked attribute leaves some trailing function prologue asm instructions

    roel0
    roel0

      I've the following implementation for a svc exception handler on a cortex-m0:

        int  __attribute__((naked))  
        sv_call_handler(uint32_t n, uint32_t arg1, uint32_t arg2, uint32_t arg3,  
                        uint32_t arg4, uint32_t arg5)
         {
              irq_off();


    When I built it for cortex…

    • over 2 years ago
    • Processors
    • Cortex-M / M-Profile forum
  • Cortex-M0 DesignStart Prototyping kit makefiles

    elisorin
    elisorin

    Unlike the Design kit makefiles, in which tool-chain (Keil, DS5 or GCC) can be chosen, the Prototyping kit makefiles uses only DS5.

    Is it possible to receive Prototyping kit makefiles that support tool-chain selection and in particular GCC?

    • Answered
    • over 3 years ago
    • DesignStart
    • DesignStart forum
  • First compile, verilog files missing

    LeChuck
    LeChuck

    Hi,

    I am just performing the first steps with the DesignStart Eval Edition (Cortex-M0), trying to compile the verilog sources to get a simulation running.

    So I changed /systems/fpga_testbench/trl_sim/makefile to use gcc and modelsim and now I want to …

    • Answered
    • over 2 years ago
    • DesignStart
    • DesignStart forum
  • Program MPS2 with .axf file

    LeChuck
    LeChuck

    Hi,

    I am using the MPS2+ board to debug my DesignStart Cortex-M0. The core is up and running and now I want to program the onboard SRAM. On the SDCard I can see that \MB\HBIO263C\AN387\images.txt expects an axf file.

    Is it possible to generate an .axf…

    • Answered
    • over 2 years ago
    • DesignStart
    • DesignStart forum
  • [0x0000000X ORR 0x00010000] results in 0xXXXXXXXX

    LeChuck
    LeChuck

    Hi,

    I am working on a GPIO IP for Designstart Pro Cortex-M0. Now in my Simulation there are some Read-Modify-Write cycles in order to set only single bits in a 32 bit register.

    If the GPIO register is 0x0000000X and I just want to set bit 16, GCC produces…

    • Answered
    • over 1 year ago
    • DesignStart
    • DesignStart forum
  • How much stack memory do I need for my Arm Cortex-M applications?

    Joseph Yiu
    Joseph Yiu

    Overview of stack size requirement estimations in Cortex-M based applications

    1 - Overview

    “How much stack memory do I need for this application?” - This is a common question for many software developers working on applications that run on microcontroller…

    • over 4 years ago
    • Processors
    • Processors blog