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
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in EMBEDDED
- PHP don't use temp file for upload
- Sparkfun SC16IS750 does not work on Raspberry Pi
- Reserve memory space in m_text memory region of FLASH on embedded target
- SAE J1939 Standards Collection -- How much is necessary?
- How to call multiple slaves for Spi data transmission?
- Deployment over GPRS to embedded devices
- Changing just one byte in SD card sector
- Comparion of values won't work without delay
- Better to pass struct, or pointer to struct?
- STM32F4 Handling peripheral error while making a DMA Transfer (RX)
- USB programming, transfer file from iOS device to Embedded os device?
- using Diab, dcc 5.9.4 to compile a windows executable
- does b64_pton() work if input contains special characters? I am using it in C code
- u-boot select boot partition based on GPIO state
- Why is a write to a memory-mapped peripheral register not actioned (LPC43xx)?
Related Questions in CODEWARRIOR
- C Global declared in ISR
- Need of main function in C, used in microcontrollers
- CodeWarrior 10.6 Linker Error
- Bit-reverse a byte on 68HC12
- Porting old CodeWarrior Project to Xcode
- How do I account for the spaces in the code?
- Read Flash Memory using PEmicro and CodeWarrior IDE (MC9S12XET256 MCU)
- I am using MC9S08DZ60.h of CodeWarrior to create a Visual Studio project I am getting error C2054: expected '(' to follow '_PTDD'
- Receiving an exit code error on codewars when trying to manipulate a string
- Understanding compile errors due to copying code from a doc file and not a txt file
- CodeWarrior to program MCF51QE128 Getting "privilege violation" exceptions writing to flash
- Need to return array of the top-3 most occurring words. (codewars )
- Codewarrior 10.5 broken links from problems window to errors in code
- Why doesn't the count integer return the expected value of d? as in digit?
- How compilation time is affected with coding style (modular programming etc.)?
Related Questions in 68HC12
- Scaling down a range of numbers in C
- How to scale a number/range of numbers in c
- Assembly language, don't understand the instruction codes and memory locations
- How do you Interface HCS12 with bluetooth device?
- Bit-reverse a byte on 68HC12
- Has anyone had experience with the Freescale HCS12 Flash Driver for EEPROM Emulation source code?
- What is the code to print text into a new line on assembly code, on HCS12 microcontroller using CodeWarrior?
- HCS12 embedded: counter timer and calculated output compare values
- Difference between decrement and subtraction in 68HC12
- how to multiply 2 24 bit numbers in assembly
- 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
- need help debugging assembly code (HCS 12)
- How to config a flexray node to send a 16 word payload?
- Proper convention for handling the stack when managing parameters and the return address
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?
There are two likely reasons: