• optimize scaling that involves float division in M0

    My platform is based on the M0 processor. A simple(probably non-optimal) code I use to convert my input to a scaled output is as follows:

    uint32_t output = (uint32_t)(12000 * ((1023/(float)input) - 1));

    Is there a way to achieve this result in a much…

  • My application code is not working when i load its bin file through uart into the flash and jump to the address of the application code (custom bootloader)

    In custom bootloader when i am jumping to application code my msp value is changing after loading the bin file , for example my application has msp value 0x20000D0 but when i load the bin file of the same code through a custom bootloader(through…

  • Debugging a Cortex-M0 Hard Fault

  • Unable to set software breakpoints in IAR IDE

    I'm using IAR Embedded Workbench to debug a Cortex-M0 system interfaced through ST-LINK/V2 SWD. The processor isn't officially supported because it is under development, but the configuration files have been updated with correct data. I'm not sure however…

  • How can CLZ equivalent be achieved on Cortex-M0 where this instruction is missing?

    Looking for alternates for this instruction.

  • ARM microcontrollers in sd cards?

    Which ARM Microcontrollers are embedded in current SD Cards? The Motorola 8051 tends to get mentioned in this connection, with occasional, vague references to ARM. So, which specific ARM technologies are used for this purpose, and what kind of embedded…

  • Some questions about the LPC810

    Hi the experts,

    I'm not sure but i think that chip can realy help myself in my actual projet. i wanna get  precisions about this chip.

    sot097-2_3d.gif

    In the technical datasheet i can read this :

    ARM Cortex M0+ with 4KB flash and 1KB SRAM

    • 2x USART
    • 1x I2C
    • 1x SPI
    • 4x…
  • Does the Cortex M0+  Single-Cycle IO Bus have an address bus to decode multiple IO sets for read and write?

    I have an interest in the M0+ single-cycle IO Bus interface.

    It seems that while the TRM describes a 32-bit bus, and a memory map it isn't clear if there is also an address bus to go along with this.

    When instantiating do we have an IO address bus,…

  • Sharing about the famous LCP1114FN28

    Hi,

    I'm making test some on the famous LPC1114FN28 is there somebody who have some experience about it ?
    Please, thank for sharing here

    250x250xLPC1114_1.jpg.250x250_q85.jpg.pagespeed.ic.3sWDuPJKyE.webp

    Here is the beast

    xpinout_dip28-20150119-.png.pagespeed.ic.xsp2MmDHYf.png

    And the pinout informations

  • How to change the BMI(Boot Mode Index) with Serial Wire Debug Protocol???

    Greetings,

    sir/madam i am working on serial wire debug protocol. I was implemented serial wire debug protocol, which was successfully tested for used controllers like xmc1100,xmc4500..etc, when i tried to Access the control on newer controller i.e xmc1100…

  • Align source and assembly

    I have a source file, converted it to assembly and added 2 instructions and generated the final elf. When I load this final elf, symbols doesnt match the source due to assembly instructions addition.

    Is there a way to align them ? am using ARM cortex-M4…

  • Reach 200 degre celsius with the temperature sensor in the ATSAM20Dj18a

    Hi, i'm working with the ATSAM20DJ18A (using ASF) and i'm doing some temperature monitoring. But it seems like I'am stucked at 169 degre celsius. Is there a way maybe by changing the ADC reference to mesure 200 degre celsius?

    Regards,

  • Cortex M0 internal Failure solution for ALU, CPU and Register rong results

    Hello All,

    I am using Cortex M0 based controller and want to know if the following issues can happen and what can be the possible solution by software to handle the issues:

    1. ALU resulting wrong result run time.

    2. Register access giving wrong results run…

  • I want to learn RTOS in ARM Cortex-M Processors.

    Hi, I wanted to  start learning RTOS in ARM Cortex M Processors. I currently work on Cortex M0 IC provided by Nuvoton where I use the BSP to get things done.

    Now I need to move a step ahead and start learning RTOS and Implement it .

    I had gone through…

  • WFI Instruction

    Hi,

    I want to use the wfi instruction in my code. I'm sending a command to a module and wait for the reply.

    I have configured UART communication with the module. Will it be good to use wfi() instruction? I know that it will turn  the cpu to power down…

  • Flashing STM32L0

    I have made a custom board for STM32L072CZ by ST. I am flashing it using STM32Cube Programmer via UART. When I flash it, I get the application running(say blinking LED) for the first time and as soon as I reset it, the application stops running. I checked…

  • [Cortex M0] Number of clock cycles for LDR instruction

    Hello,

    I need to know the exact number of the clock cycles per each instruction in terms of the system clock frequency especially the "LDR" instruction

    Here is the needed instruction: "LDR r3,[r1]" 

    Note that r1 is an address in the…

  • Stick timer

    i am using LPC11C24FBD48 Controller and i initialized the Stick timer but when i run the code it is going to Hard fault handler.

    __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks)
    {
    if (ticks > SysTick_LOAD_RELOAD_Msk) return (1); /* Reload value…

  • Cortex M series and their compatibility

    Hello ,

    I am new to ARM. I have a particular software package written to the Cortex  M0+ MCU. How can I evaluate that these libraries will be compatible with other type of cortex M series microcontrollers. I need to perform a porting from the given MCU…

  • Are CMSIS drivers for Flash portable on all Cortex M0(vendor independent)?

    I am writing open source easy to use top level Flash drivers which are portable to use on all Cortex M0 devices (vendor independent). So I was thinking of using CMSIS flash drivers as my low level block. So are CMSIS flash driver portable on all Cortex…

  • Please, recommend a book to learn coding in assembly

    Dear all,

    I really appreciate if someone recommend a book to learn coding in assembly. The target processor is STM32F0. Anyone there?

    I already checked those of Joseph Yiu. Actually, I need a book with clear examples. 

    Best regards!

  • SRAM for Cortex M0 -- Does It Need to Support Byte write?

    For the SRAM with Cortex M0, does it need to support byte write?

    What restrictions do I have with Cortex M0 if the SRAM only support 32-bit write?

  • Bluetooth connection with ATBTLC1000-XPRO

    Hello all,

    I have access to both a SAMDA1-XPRO and a SAMC21-XPRO. I also have an ATBTCL1000-XPRO with which I need to establish a bluetooth connection to a smartphone. I powered up the ATBTLC1000-XPRO which was connected to the SAMC21-XPRO and tried locating…

  • SmallSat Electronics Ecosystem Expands with new Arm Cortex-based Reference Design

    Last week I attended the SmallSat symposium in Mountain View. This is the first of around half a dozen Small Satellite conferences that I’ll attend in 2018. That sounds like a lot of small satellite conferences, but there are actually many more that I…

  • Taking Steps to Ensure Security of Supply

    One of the reasons that the Arm architecture is so popular is that it addresses customers concerns about security of supply. In the event that an Arm-based chip is no longer available to buy, the legacy software that was developed for it can be ported…