We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have a project much like the sample traffic.c, but i need more space for variables and would like use the memory model Large:64K program. When setting the memory model to Large, and selecting 'Use On-chip XRAM (0x0-0x7ff)', my program won't work on my eval board, but it still works in the simulator!
When using the Small memory model, you will only have 128 byte RAM, but my ADuc845 have 2Kbyte onchip RAM i would like to use.
What do i have to change in traffic.c to use my onchip XRAM?
Regards
Peter
" selecting 'Use On-chip XRAM (0x0-0x7ff)'"
Note that this merely informs the tools that On-chip XRAM is to be used - it does not do anything to configure or enable the physical on-chip XRAM in the target hardware.
This is probably what you're missing
Problem solved, i enabled XRAMEN in the START_AD.A51:
; <q> XRAMEN: Enable on-chip XDATA RAM ; When disabled, off-chip XDATA space is accessed XRAMEN EQU 1 ; 0 = Disable on-chip XDATA RAM ; 1 = Enable on-chip XDATA RAM
Thanks...