arm

How to cross compile with cmake + arm-none-eabi on windows?

别等时光非礼了梦想. 提交于 2020-05-23 05:12:30
问题 I like to automate the cross compiling for several projects on a Windows build server. I have some problems with the arm cross compiler. Setting it up seems a bit difficult. The cmake compiler check fails with a linking error(see below). My experimental project looks like: main.cpp - a test programm CMakeLists.txt - the cmake build script cmake/STM32F2xx.cmake - the special settings for the ARM STM32F2xx-series I am using 3 Packages: cmake-3.8.0-win64-x64.msi -cmake for windows mingw-w64

unsigned conversion in C works as expected on x86 but not ARM [duplicate]

本秂侑毒 提交于 2020-05-17 09:05:30
问题 This question already has answers here : Is the behaviour of casting a negative double to unsigned int defined in the C standard? Different behaviour on ARM vs. x86 (1 answer) iphone: floats cast to unsigned ints get set to 0 if they are negative? (4 answers) Closed last month . I am facing a problem running a C program on ARM processor. #include <stdio.h> #include <stdlib.h> int main() { float f = -40.000000; unsigned int a = f; printf("\t Actual TX Power = %0.2f dBm \n", (double)(int)a);

unsigned conversion in C works as expected on x86 but not ARM [duplicate]

孤街醉人 提交于 2020-05-17 09:05:06
问题 This question already has answers here : Is the behaviour of casting a negative double to unsigned int defined in the C standard? Different behaviour on ARM vs. x86 (1 answer) iphone: floats cast to unsigned ints get set to 0 if they are negative? (4 answers) Closed last month . I am facing a problem running a C program on ARM processor. #include <stdio.h> #include <stdlib.h> int main() { float f = -40.000000; unsigned int a = f; printf("\t Actual TX Power = %0.2f dBm \n", (double)(int)a);

what is Interruptible-restartable instructions in ARM cortex m0/m0+

怎甘沉沦 提交于 2020-05-15 10:25:48
问题 I am currently reading ARM Cortex M0+ User Guide on ARM website shown below http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0662b/CHDBIBGJ.html In User Manual, following paragraph is mentioned: Interruptible-restartable instructions The interruptible-restartable instructions are LDM, STM, PUSH, POP and, in 32-cycle multiplier implementations, MULS. When an interrupt occurs during the execution of one of these instructions, the processor abandons execution of the instruction.

Why does ARM have 64KB Large Pages? [closed]

南笙酒味 提交于 2020-05-15 05:26:38
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . The ARM720T user manual mentions small and large pages. Since the ARM 720T requires a 64KB page table entry to be duplicated 16 times in the page table, why not place 16 small page (4KB) entries to mimic a 64KB page entry instead of using a large page in the first place? 回答1:

Can run ARM/rpi images in Docker on Windows but not linux

泪湿孤枕 提交于 2020-05-15 02:28:08
问题 I'm able to run the ARM images (eg. hypriot/rpi-node) in Docker on Windows (64bit), but in all linux x86/64 machines I've tried (Debian, CoreOS, Alpine etc) I get the following error - which makes sense to me but I dont get why it'd run in Docker on Windows then, and I wonder whether I'm missing some opportunity to use an x86 machine as a build server for ARM images (ie. the in google/aws cloud/azure). Any ideas how I might be able to? docker run -ti hypriot/rpi-node ls standard_init_linux.go

OpenOCD and stm32f7 writing

巧了我就是萌 提交于 2020-05-14 06:02:23
问题 So i have a very minimal code just to see if device is alive. section .text .weak Reset_Handler Reset_Handler: ldr r0, =_estack mov sp, r0 /* set stack pointer */ ldr r2, =_sdata // b Reset_Handler According to datasheet, flash starts from 0x0800 0000 on axim bus. here is my linker file ENTRY(Reset_Handler) MEMORY { RAM (xrw) : ORIGIN = 0x20020000, LENGTH = 368K ROM (rx) : ORIGIN = 0x08000000, LENGTH = 2048K } _estack = ORIGIN(RAM)+LENGTH(RAM); SECTIONS { .text : { . = ALIGN(4); *(.text) . =

OpenOCD and stm32f7 writing

◇◆丶佛笑我妖孽 提交于 2020-05-14 05:59:07
问题 So i have a very minimal code just to see if device is alive. section .text .weak Reset_Handler Reset_Handler: ldr r0, =_estack mov sp, r0 /* set stack pointer */ ldr r2, =_sdata // b Reset_Handler According to datasheet, flash starts from 0x0800 0000 on axim bus. here is my linker file ENTRY(Reset_Handler) MEMORY { RAM (xrw) : ORIGIN = 0x20020000, LENGTH = 368K ROM (rx) : ORIGIN = 0x08000000, LENGTH = 2048K } _estack = ORIGIN(RAM)+LENGTH(RAM); SECTIONS { .text : { . = ALIGN(4); *(.text) . =

Light the LED on STM32F103C8T6

懵懂的女人 提交于 2020-04-29 15:42:50
问题 I'm trying the light an LED (on port c, pin 13) on STM32F103C8T6. I'm not using IDE. Code: #include "include/stm32f10x.h" int main() { RCC->APB2ENR |= RCC_APB2ENR_IOPCEN; GPIOC->CRH &= ~GPIO_CRH_CNF13; GPIOC->CRH |= GPIO_CRH_MODE13_0; GPIOC->BSRR = GPIO_BSRR_BR13; while(1) { GPIOC->BSRR = GPIO_BSRR_BS13; } return 0; } Links to include files in include directory: system_stm32f10x.h core_cmInstr.h core_cmFunc.h core_cm3.h stm32f10x.h part1 stm32f10x.h part2 That's how I compile it arm-none-eabi

STM32Cube - project does not build (Selected processor does not support Thumb mode)

a 夏天 提交于 2020-04-18 07:29:33
问题 I have generated a code base using STM32Cube for STM32F205RB to be used within Atollic TrueSTUDIO. The project does not build, giving the error: arm-atollic-eabi-gcc -c -mthumb -std=gnu90 -DUSE_HAL_DRIVER -DSTM32F205xx -IC:\Users\Elliott\Atollic\TrueSTUDIO\ARM_workspace\USBInterfaceCUBE\USBInterfaceCube/Inc -IC:\Users\Elliott\Atollic\TrueSTUDIO\ARM_workspace\USBInterfaceCUBE\USBInterfaceCube/Drivers/STM32F2xx_HAL_Driver/Inc -IC:\Users\Elliott\Atollic\TrueSTUDIO\ARM_workspace\USBInterfaceCUBE