Why do I receive an “Error accessing DPRAM” message when downloading my CAN-AC2-104 firmware onto the board in xPC Target?

2 views (last 30 days)
While downloading the demo 'xpccanpc104.mdl' onto the target machine, I receive the following error:
downloading CAN-AC2-104 firmware on board 1
-->Error in CANPC_reset_board_mb1: ErrorCode=-19 Err
I also receive a pop-up window with the following message:
Error accessing dpram

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 26 Oct 2012
xPC Target might generate an "Error accessing DPRAM" message if you do not allocate enough memory for the target PC. To try to allocate more memory, you can disable the shadow RAM from the BIOS of your target PC.
Use this solution as a general guideline on how to allocate more memory by disabling the shadow RAM. Note that all BIOS systems are different. You must contact your vendor for specific instructions.
1. Boot your machine. Look for a message like
"Press F2 to enter setup"
2. Press the listed key for your BIOS. For example, "F2"
3. Look for the BIOS setting that represents the shadow RAM on your PC.
  • If your target PC does not have Plug and Play, you might need to look at the Shadow Memory Size and Shadow Memory Base options and adjust them.
  • If your PC has Plug and Play, look for an option called "Plug and Play". You might need to look under the advanced setup for this.
a. In "Plug and Play", look for the setting "ISA Shared Memory Size". Change the value from "Disabled" to an appropriate value such that you allocate enough memory for your model.
b. An option labeled "ISA Shared Memory Base" will appear. The default starting address is D0000. This value will depend on the settings on your model.
4. Save settings and reboot PC.
NOTE: This solution refers to the PC-104 version of the board, but if you are having trouble with the PCI version then this solution is not relevant.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!