I'm using codewarrior to compile for the HC12, and I have two 120 element arrays: score and dur. I have initialized them in the typical fashion: unsigned int score[120] = { ... }; When I try to compile it, however, I get a linker error that says "L1981: No copydown created for initialized object "score". Initialization data lost." I can't figure out what that means or how I can make it so it creates a copydown. Note that this program compiles and seems to set values fine when I place them into main(), but I need them to be global variables because they are accessed by an interrupt.
No copydown created for initialized object?
802 Views Asked by user702905 At
1
There are 1 best solutions below
Related Questions in C
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in EMBEDDED
- MSP430F5529 on the MSPEXP430F5529LP: UART is not actually transmitting despite seemingly correct setup. What is wrong?
- A FPGA Project Proposal where I can use both PS and PL
- Program doesn't run after DFU
- Sending struct through queue
- How to generate a VPI warpmap for polynomial distortion correction?
- How to present this example concept in UML: Using 2 LCD displays in C/C++
- CLion: Debug via St-Link
- Portenta H7 Baremetal Development and a Little Guidance on Embedded System Learning Roadmap
- STM32 RTC3 Mixed Mode: Writing TR resets SSR
- Unable to read value from gpio set as input
- Mbed TLS: in-place en-/decryption for OAEP doesn't seem to work
- Shared variable read from low priority thread in preemptive scheduling
- Own Pattern / framework for interfacing with components in C
- Performance Difference Between Global Variable and Local Variable in Embedded Systems
- Comparing analog signal from Electret mic with samples
Related Questions in CODEWARRIOR
- How do I use an external library path with C project in Neovim?
- Read Flash Memory using PEmicro and CodeWarrior IDE (MC9S12XET256 MCU)
- How do I account for the spaces in the code?
- How should I write my C code to have the resulting assembly use extra dsll32 and dsra32 instructions?
- Where does CodeWarrior keep rsp values?
- How to determine offset values when disassembly?
- TypeError: Cannot read property 'toUpperCase' of undefined |CodeWars|
- Need to return array of the top-3 most occurring words. (codewars )
- Sum of variabels from each for loop iterations
- Food Ranking List Challenge (TestDome)
- Receiving an exit code error on codewars when trying to manipulate a string
- Why is this code removing `False` from the array?
- Loop is stuck for some reason and then finally returns undefined
- What is the code to print text into a new line on assembly code, on HCS12 microcontroller using CodeWarrior?
- String incrementer codewars (Ruby) problem
Related Questions in 68HC12
- 8 bit led counter on assembly. How do I increment the counter value, x within this loop?
- Assembler HCS12 how does register with index work with TST-instruction?
- CMake with an embedded C compiler that doesn't support "-o"
- What is the code to print text into a new line on assembly code, on HCS12 microcontroller using CodeWarrior?
- Difference between decrement and subtraction in 68HC12
- need help debugging assembly code (HCS 12)
- GNU as doesn't accept flag when called from makefile, but OK when manually typed
- why does my loop stop at 3, and reports an incorrect order
- how to multiply 2 24 bit numbers in assembly
- Which Codewarrior version is needed for HCS08 and HCS12X under Windows 10?
- Assembly Language: Result in accumulator
- Interrupt service routine to measure a phase difference
- Preventing torn reads with an HCS12 microcontroller
- Sprintf not working with dragon12-light board(C)
- HCS12 embedded: counter timer and calculated output compare values
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 # Hahtags
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?
There are two likely reasons: