Altera_Forum
Honored Contributor
20 years agoProblem debugging on a custom cyclone board
Hi:
This is just about getting us crazy. We have designed a custom board with a Cyclone chip for implementing a NIOS II processor, both the processor and the SDRAM seem to work ok (some implementation details are included below) but we can not debug or run any program we create using the NIOS II IDE, not even the simplest hello word sample. The debugger never stops, thougt we can suspend execution and place some hardware breackpoints for running step-by-step. When paused, program execution is being done...............over the flash area!!!!, which in turn is erased/empty since we still haven't placed anything there yet. We are using the same memory space configuration with one Altera NIOS development kit, Cyclone Edition, and in that board it works ok. Program and data seem to be properly downloaded to the target as the console shows with the following messages: ---------------------------------------- Using cable "ByteBlasterII [LPT1]", device 1, instance 0x00 Pausing target processor: OK Reading System ID at address 0x00811CB8: verified Downloading 00811000 ( 0%) Downloading 00811820 ( 0%) Downloading 01000000 ( 1%) Downloading 01010000 (95%) Downloaded 68KB in 3.2s (21.2KB/s) Leaving target processor paused ---------------------------------------- The custom board includes one EP1C6F256C8 cyclone chip, one 48LC4M32B2-7F SDRAM chip and one EPCS4 among other things (including a flash memory). The SDRAM has independent address and data buses from other peripherals and memories. We have implemented an internal ROM with the GERMS monitor (reset address points to this memory) and a 512 bytes internal RAM (exception address points to this memory). For the legacy SDK support, the internal ROM and RAM are declared as the program memory and data memory, respectively. After power on (provided that the FPGA configuration is stored in the EPCS) the Cyclone device is properly configured and the GERMS monitor starts working as expected. Using one PC serial port we can communicate with the GERMS monitor on the board, using an external application (on the PC) and the GERMS monitor on the Cyclone we tested the SDRAM and it seems to be working fine (content is not lost, address and data lines seem to be properly connected). Any kind of help or tip will be very welcome. Thanks a lot in advance...