Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

Quartus 9.1 core dumps? on programming DE2 board

Hi,

I'm very new to FPGAs so I would appreciate some help. I have successfully installed Quartus Full Edition 9.1 on Red Hat Enterprise Linux 4. I've also been able to setup the USB port for communication. Basically, I followed these:

http://www.altera.com/support/softwa...usb_b-lnx.html

I have a DE2 board that comes with a Cyclone II FPGA. I'm reading the User Manual. On Chapter 3, I try to do the Control Panel Setup exercise where I'm trying to program the board. A file called DE2_USB_API.sof has been provided.

So I power up the board, connect the cables, start Quartus and go into Programmer. I select USB and click on Auto-detect. I get the right information on the board (which tells me the USB port is working). Now I try to add the above SOF file to program the device. I get a core dump and quartus just quits. I'm attaching the log below.

Since I'm very new, I have no clue how to fix this problem. I have two guesses.

1. Is the DE2_USB_API.sof OS specific? I'm running on linux but the original software (quarutus 6.0) that came with the board is for windows. The software looks very old. Since we are at a university and have Altera licenses I decided to use the latest version on a Linux box. Could this be an issue?

1b) Or perhaps that SOF file is very old and is no longer compatible in v9.1 Is there a way to fix this?

2. From the log it looks like it is trying to find some device information and indeed this file: /usr/local/altera9.1/quartus/common/devinfo/cycloneii/ddb_magellan4_hdr.ddb is not present. Is there a way to install these files for a particular device? I just did the installation of installing Quartus II, NIOS and ModelSim and everything looked fine. Could this be the problem?

The log is shown below. Thank you for helping a newbie.

Kind regards.

-----------------------------------------------------------------

Internal Error: Sub-system: DEV, File: /quartus/ddb/dev/dev_basic_info.cpp, Line: 760

BASIC_INFO's HDR file

/usr/local/altera9.1/quartus/common/devinfo/cycloneii/ddb_magellan4_hdr.ddb not installed

Stack Trace:

0x4bcbaa6: DEV_BASIC_INFO::load_data() + 0x366 (quartus)

0x474beb1: DMGR_UTILITY_BODY::initialize_basic_info_to(DEV_DE VICE*, DEV_BASIC_INFO*,

DEV_DEVICE_ENUM) + 0x413 (quartus)

0x474c3b4: DMGR_UTILITY_BODY::initialize_basic_info_to(DEV_DE VICE*, DEV_BASIC_INFO*,

DEV_PART_ENUM) + 0xb8 (quartus)

0x47540f1: DMGR_UTILITY_BODY::create_device(DEV_DEVICE*&, DEV_PART_ENUM) + 0xe7 (quartus)

0x4754d59: DMGR_UTILITY_BODY::create_device(unsigned int, DEV_PART_ENUM,

_Dinkum_std::vector<DEV_PART_ENUM, MEM_STL_ALLOCATOR<DEV_PART_ENUM> >) + 0x9d9 (quartus)

0x47552a3: DMGR_UTILITY_BODY::create_device(DEV_PART_ENUM, _Dinkum_std::vector<DEV_PART_ENUM,

MEM_STL_ALLOCATOR<DEV_PART_ENUM> > const&) + 0x5d (quartus)

0x47555e6: DMGR_UTILITY::create_device(DEV_PART_ENUM) + 0x4c (quartus)

0x7447d: PGM_CHAIN_ELEMENT::get_jtag_bsr() + 0x2ed (pgm_pgmio)

0xf652b: PGM_CHAIN_ELEMENT::create_pcf_tree(bool) + 0x3bb (pgm_pgmio)

0x13ca3c: PGM_CHAIN_ELEMENT::create_chain_element(PGM_CHAIN_ ELEMENT*, bool, FIO_PATH*, bool,

PGMIO_PASSIVE_PROGRAMMING_MODE) + 0x22c (pgm_pgmio)

0x1083b: PGME_PROGRAMMER::lookup_device(PGM_CHAIN_ELEMENT*, PGMIO_PASSIVE_PROGRAMMING_MODE,

bool, bool) + 0x3d (pgm_pgme)

0xfe167: PGMW_DEVICE_TREE::lookup_device(PGM_CHAIN_ELEMENT* ) + 0x67 (pgm_pgmw)

0xe47c0: PGMW_DEVICE_TREE::create_chain_element(_Dinkum_std ::basic_string<char,

_Dinkum_std::char_traits<char>, MEM_STL_ALLOCATOR<char> >, unsigned int, PGM_CHAIN_ELEMENT*) +

0x1ac (pgm_pgmw)

0xe767a: PGMW_DEVICE_TREE::add_item(CString, unsigned int) + 0x290 (pgm_pgmw)

0x67afb: PGMW_VIEW::OnAddFile() + 0x325 (pgm_pgmw)

0x111bc7: _AfxDispatchCmdMsg(CCmdTarget*, unsigned int, int, void (CCmdTarget::*)(), void*,

unsigned int, AFX_CMDHANDLERINFO*) + 0x237 (mfc400s)

0x111cc7: CCmdTarget::OnCmdMsg(unsigned int, int, void*, AFX_CMDHANDLERINFO*) + 0xc7

(mfc400s)

0x1195e1: CView::OnCmdMsg(unsigned int, int, void*, AFX_CMDHANDLERINFO*) + 0x41 (mfc400s)

0xd23f6: CFrameWnd::OnCmdMsg(unsigned int, int, void*, AFX_CMDHANDLERINFO*) + 0x66

(mfc400s)

0xceb35: CWnd::OnCommand(unsigned int, long) + 0xb5 (mfc400s)

0xd1049: CFrameWnd::OnCommand(unsigned int, long) + 0x69 (mfc400s)

0xcb61f: CWnd::OnWndMsg(unsigned int, unsigned int, long, long*) + 0x2cf (mfc400s)

0x12b1c8b: AFC_CHILD_FRAME::OnWndMsg(unsigned int, unsigned int, long, long*) + 0x8f

(quartus)

0xcafa9: CWnd::WindowProc(unsigned int, unsigned int, long) + 0x39 (mfc400s)

0xcf873: AfxCallWndProc(CWnd*, HWND__*, unsigned int, unsigned int, long) + 0xc3 (mfc400s)

0xd0313: AfxWndProc(HWND__*, unsigned int, unsigned int, long) + 0x53 (mfc400s)

0xc80eb: AfxWndProcBase(HWND__*, unsigned int, unsigned int, long) + 0x5b (mfc400s)

0xd0313: AfxWndProc(HWND__*, unsigned int, unsigned int, long) + 0x53 (mfc400s)

0xc80eb: AfxWndProcBase(HWND__*, unsigned int, unsigned int, long) + 0x5b (mfc400s)

0x1af04e: MwProtectedCallWndProc + 0x11e (gdiuser32)

0x185cd5: MwCallCallWndProc + 0x65 (gdiuser32)

0x192bb5: MwInternalSendMessage + 0x45 (gdiuser32)

0x198ebe: xxxSendMessageTimeout + 0x27e (gdiuser32)

0x199023: MwISendMessageTimeout + 0xc3 (gdiuser32)

0x19915c: SendMessageTimeoutA + 0x6c (gdiuser32)

0x1991c4: SendMessageA + 0x44 (gdiuser32)

0xdd12f: CControlBar::WindowProc(unsigned int, unsigned int, long) + 0xdf (mfc400s)

0xcf873: AfxCallWndProc(CWnd*, HWND__*, unsigned int, unsigned int, long) + 0xc3 (mfc400s)

0xd0313: AfxWndProc(HWND__*, unsigned int, unsigned int, long) + 0x53 (mfc400s)

0xc80eb: AfxWndProcBase(HWND__*, unsigned int, unsigned int, long) + 0x5b (mfc400s)

0x1f5669: Direct_Win_Msg_Func:perator()(tagMSG const*) const + 0x29 (gdiuser32)

0x1f7e54: wcs2mbs_win_msg(Win_Msg_Context const&, tagMSG const*) + 0x144 (gdiuser32)

0x1f89e2: MwMessageAnsiConvert + 0x42 (gdiuser32)

0x1af00f: MwProtectedCallWndProc + 0xdf (gdiuser32)

0x185cd5: MwCallCallWndProc + 0x65 (gdiuser32)

0x192bb5: MwInternalSendMessage + 0x45 (gdiuser32)

0x198ebe: xxxSendMessageTimeout + 0x27e (gdiuser32)

0x199023: MwISendMessageTimeout + 0xc3 (gdiuser32)

0x19b339: SendMessageTimeoutW + 0x69 (gdiuser32)

0x19b3a4: SendMessageW + 0x44 (gdiuser32)

0x108e1e: xxxButtonNotifyParent + 0x5e (gdiuser32)

0x108efe: xxxBNReleaseCapture + 0xce (gdiuser32)

0x10ad7c: ButtonWndProcWorker + 0x38c (gdiuser32)

0x10b8e0: ButtonWndProcW + 0xa0 (gdiuser32)

0x1f5669: Direct_Win_Msg_Func:perator()(tagMSG const*) const + 0x29 (gdiuser32)

0x1f40cb: mbs2wcs_win_msg(Win_Msg_Context const&, tagMSG const*) + 0x15b (gdiuser32)

0x1f41b2: MwMessageUnicodeConvert + 0x42 (gdiuser32)

0x1aef98: MwProtectedCallWndProc + 0x68 (gdiuser32)

0x185cd5: MwCallCallWndProc + 0x65 (gdiuser32)

0x19198a: MwICallWindowProc + 0x7a (gdiuser32)

0x19de86: CallWindowProcA + 0x66 (gdiuser32)

0xca689: CWnd:efWindowProcA(unsigned int, unsigned int, long) + 0x59 (mfc400s)

0xcafd4: CWnd::WindowProc(unsigned int, unsigned int, long) + 0x64 (mfc400s)

0xcf873: AfxCallWndProc(CWnd*, HWND__*, unsigned int, unsigned int, long) + 0xc3 (mfc400s)

0xd0313: AfxWndProc(HWND__*, unsigned int, unsigned int, long) + 0x53 (mfc400s)

0xc80eb: AfxWndProcBase(HWND__*, unsigned int, unsigned int, long) + 0x5b (mfc400s)

0x1f5669: Direct_Win_Msg_Func:perator()(tagMSG const*) const + 0x29 (gdiuser32)

0x1f7e54: wcs2mbs_win_msg(Win_Msg_Context const&, tagMSG const*) + 0x144 (gdiuser32)

0x1f89e2: MwMessageAnsiConvert + 0x42 (gdiuser32)

0x1af00f: MwProtectedCallWndProc + 0xdf (gdiuser32)

0x1f89e2: MwMessageAnsiConvert + 0x42 (gdiuser32)

0x1af00f: MwProtectedCallWndProc + 0xdf (gdiuser32)

0x185cd5: MwCallCallWndProc + 0x65 (gdiuser32)

0x192c61: MwIDispatchMessage + 0xa1 (gdiuser32)

0x1f653a: DispatchMessageW + 0x4a (gdiuser32)

0x119005: IsDialogMessageW + 0xd5 (gdiuser32)

0x11953e: IsDialogMessageA + 0x5e (gdiuser32)

0x10ffcf: CWnd::IsDialogMessageA(tagMSG*) + 0x5f (mfc400s)

0xcdb65: CWnd::PreTranslateInput(tagMSG*) + 0x55 (mfc400s)

0xdce2a: CControlBar::PreTranslateMessage(tagMSG*) + 0xfa (mfc400s)

0xccf00: CWnd::WalkPreTranslateTree(HWND__*, tagMSG*) + 0x40 (mfc400s)

0x12bfb3: CWinThread::PreTranslateMessage(tagMSG*) + 0x73 (mfc400s)

0x12c163b: AFC_APP::PreTranslateMessage(tagMSG*) + 0x29 (quartus)

0x12c215: CWinThread::PumpMessage() + 0x55 (mfc400s)

0x12bd3a: CWinThread::Run() + 0x8a (mfc400s)

0x12dda9: CWinApp::Run() + 0x29 (mfc400s)

0x12c0b63: AFC_APP::win_app_run_wrapper(void*) + 0x1d (quartus)

0xee9d: thr_final_wrapper + 0xf (ccl_thr_win32)

0x9a3b42: mem_thread_wrapper(void* (*)(void*), void*) + 0xd2 (quartus)

0x4fdd217: err_thread_wrapper(void* (*)(void*), void*) + 0x29 (quartus)

0xef2b: thr_thread_wrapper + 0x2c (ccl_thr_win32)

0x12c0cca: AFC_APP::Run() + 0x160 (quartus)

0xdc53d: AfxWinMain(HINSTANCE__*, HINSTANCE__*, char*, int) + 0xad (mfc400s)

0x4ff3413: WinMain + 0x53 (quartus)

0x98f95d: main + 0x9d (quartus)

0x14df3: __libc_start_main + 0xd3 (c.so.6)

0x8c6ef1: CFrameWnd::RecalcLayout(int) + 0x14d (quartus)

End-trace

Quartus II Version 9.1 Build 222 10/21/2009 SJ Full Version

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I was able to fix this problem. For some reason, when the installation was performed (manually, not through the installer), no devices were added. I reinstalled the quartus II software again manually. Don't seem to have done anything different. Now in ./quartus/common/devinfo there are tons of devices and subfolders.

    I went back and retried the example and I was able to successfully program the cyclone II device.

    So at-least one problem is solved now.

    Thanks.