I have received a library which is pre-compiled for cortex M3. Can I cross-compile it for cortex M4 and port it without access to the original source code?
Can I port a library compliled for Cortex M3 onto a cortex M4?
577 Views Asked by VRTester At
2
There are 2 best solutions below
0
dhokar.w
On
ARM cortex M4 and Cortex M3 follows the same architecture ARMV7M so the instruction set is almost the same what work in cortex M3 must work in cortex M4 however you have to take care of the address of the peripherals between the two embedded hardware if there is a change so accessing some changed base address of peripheral will cause problems.
But take this as fundamental equation concerning ARM processor : Cortex M4= CortexM3 + DSP
Related Questions in ARM
- Why Device Tree Structure (DTS) file is needed both in bootloader and kernel source code?
- How can I use LD to place ARM reset vectors in a program segment
- Errors in makefile for qemu 0.14.1 in ubuntu 15.04 64 bit
- Text as parameter in inline assembly (ARM)?
- GSL: nm outputs "undefined Symbol (U)"
- How to address multiple definition compiler error
- Did anyone compiled GSL for androind?
- Linker Error on cross compiling Project in eclipse
- How to set privilaged mode in ARM Cortex-A8?
- Why is a write to a memory-mapped peripheral register not actioned (LPC43xx)?
- what's ARM TCM memory
- Traversing a string using arm assembly inside V8 source
- C Global declared in ISR
- Which is better? int8_t vs int32_t in 32 bits MCU
- Cannot find -lgtk-x11-2.0. Also, some modules are not found by cmake, though they are installed
Related Questions in STM32
- STM32F303VC : device not found
- Very few write cycles in stm32f4
- Put a bootloader program at the bottom of the FLASH memory
- STM32 USB HID reports
- STM32 flashing disabled after flashing a code without R/W protection
- How can I align stack to the end of SRAM?
- STM32 I-CODE and D-CODE buses
- how to use arm-none-eabi-gcc compile STM32 program
- Write a custom bootloader with the STM32L1 series in C
- What are the steps to setup an RTOS application on STM32 using Linux and Makefiles instead of using Windows based IDEs?
- Loosing some bytes on USART transmission with STM32L1XX
- my bootloader doesn't boot my new program on stm32
- Using printf causes error
- Estimating available RAM left with safety margin in C (STM32F4)
- Flashing image to STM3220g-EVAL board using Trace 32
Related Questions in CROSS-COMPILING
- Cross compile simple standard C program on Linux for Mac
- mingw-64 conflicting declarations when cross-compiling
- GSL: nm outputs "undefined Symbol (U)"
- using Diab, dcc 5.9.4 to compile a windows executable
- Cross compiling for Raspberry pi 2 error
- Linker Error on cross compiling Project in eclipse
- Get conditional branch slot from MIPS cross compiler
- Prelink Error: prelink-cross: simple hello world example
- Go Cross compiler fails
- How to install the third-party python (2.7) modules (e.g. Pycrypto) on ARM?
- impossible constraint in 'asm' error
- How can I compile ndpiReader.c that comes with nDPI library in Windows?
- How Do I Configure Qmake for Cross Compilation?
- Building a cross compile of binutils on OS X Yosemite
- Explain behavior of Unix sleep() function executed on Android
Related Questions in CORTEX-M
- C Global declared in ISR
- kill function from ISR on cortex-m0
- STM32 I-CODE and D-CODE buses
- lpc17xx frequency detection of square wave using polling
- Cortex M0 hardfault; BLC Huffman
- FFT in ARM Cortex-M0 returns NaN or infinite
- How to write to SHPR2 correctly on cortex M0
- Flashing image to STM3220g-EVAL board using Trace 32
- Change Stack Location for Cortex M3 in Startup.s file
- How to change endianess settings in cortex m3?
- Creating a loop within an assembly macro - IAR ARM
- LDMIA instruction not working correctly on external SRAM in cortex M4
- Can I use the "Instruction" TCM in an Atmel SAM E70 processor for data?
- Using LZ4HC algorithm in an ARM Cortex-M3 processor
- Can I port a library compliled for Cortex M3 onto a cortex M4?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If this library is in the form of ".a" file, then there is no way to "recompile" it, as you have no access to source code.
But if this code is NOT accessing any peripherals which are different on the two chips you want to use, then there's no need to recompile anything. ARM Cortex-M4 is almost identical to ARM Cortex-M3 - the former may have a FPU and has some DSP instructions, but at the same time supports all of the Thumb-2 instructions from ARM Cortex-M3.
So this all depends on what this library is actually doing...