embeded/FPGA - ALTERA2018. 1. 31. 13:23

그래도 안되네 ㅠㅠ


설정 가능한 내용으로는 딱히 눈에 띄는건 없네


심심해서 SDRAM은 어떻게 추가하나했는데.. university program에 DE 보드 관련 SDRAM PLL은 존재하고

SDRAM은 별도로 추가를 해주어야 한다. (ISSI 칩 기본 프리셋 존재하지 않음)


이제 남은건.. sof 파일을 hex로 바꾸는건가...


sof를 시작주소 줄 수 있었군..

최소한 이렇게 하면, Nios II 자체는 구동하는걸로 보인다(LED 불 전부 꺼짐)

eclipse에서 테스트 해보니 장치 인식을 하는 것 봐서 정상적으로 Nios II는 들어간 듯


[링크 : https://www.alteraforum.com/forum/showthread.php?t=48733]


10. Click SOF Data, and select Add File, and select your .sof file

11. Click Add Hex data, select Relative addressing, and select your .hex file created above

12. Now push generate. You should verify that the generated .map file has Page_0 at a start address of 0x0, and the hex file at a start address 1 after the end address of Page_0

13. Now in the Quartus II Programmer, select Add File and select your .jic file. Check the Program box next to the .jic file, and push Start

[링크 : https://www.altera.com/support/support-resources/knowledge-base/solutions/rd10132010_126.html]


Creating the .jic file:


In Quartus, open the Convert "Programming File..." utility

Set the "Programming file type:" to "JTAG Indirect Configuration File (.jic)"

In "Input files to convert" select "Flash Loader", click "Add Device..." and choose your target FPGA device

If you are configuring the FPGA from the serial flash:

In "Input files to convert" select "SOF Data", click "Add File..." and select your FPGA .sof file

-With "SOF Data" selected, click "Properties", in the "SOF Data Properies dialogue box:

-Set "Address mode for selected pages to" to "Start"

Set "Start address (32-bit hexidecimal:) to 0x0.

In "Input files to convert" click "Add Hex Data", in the "Add Hex Data" dialogue box:

Set "Addressing mode" to "Absolute addressing"

Select your hex file using the "..." button next to the "Hex file" field

Click "OK"

Check "Create Memory Map File". This is useful for debugging.

Generate the .jic file and program it into the serial flash with the Quartus Programmer 

[링크 : http://www.alterawiki.com/wiki/Booting_Nios_from_Serial_Flash_with_the_new_Altera_Serial_Flash_Controller]


그나저나 빌드 메시지를 보니..

13:50:21 **** Build of configuration Nios II for project hello_world_0 ****

make mem_init_generate 

Info: Building ../hello_world_0_bsp/

C:/intelFPGA_lite/17.1/nios2eds/bin/gnu/H-x86_64-mingw32/bin/make --no-print-directory -C ../hello_world_0_bsp/

[BSP build complete]

Post-processing to create mem_init/hdl_sim/unsaved_epcs_flash_controller_0_boot_rom.hex...

elf2hex hello_world_0.elf 0x00011000 0x000117ff --width=32 --little-endian-mem --create-lanes=0 --no-zero-fill mem_init/hdl_sim/unsaved_epcs_flash_controller_0_boot_rom.hex

Post-processing to create mem_init/unsaved_onchip_memory2_0.hex...

elf2hex hello_world_0.elf 0x00008000 0x0000ffff --width=32 --little-endian-mem --create-lanes=0 mem_init/unsaved_onchip_memory2_0.hex

Post-processing to create mem_init/hdl_sim/unsaved_epcs_flash_controller_0_boot_rom.dat...

elf2dat --infile=hello_world_0.elf --outfile=mem_init/hdl_sim/unsaved_epcs_flash_controller_0_boot_rom.dat \

--base=0x00011000 --end=0x000117ff --width=32 \

--little-endian-mem --create-lanes=0 

Post-processing to create mem_init/hdl_sim/unsaved_onchip_memory2_0.dat...

elf2dat --infile=hello_world_0.elf --outfile=mem_init/hdl_sim/unsaved_onchip_memory2_0.dat \

--base=0x00008000 --end=0x0000ffff --width=32 \

--little-endian-mem --create-lanes=0 

Post-processing to create mem_init/hdl_sim/unsaved_epcs_flash_controller_0_boot_rom.sym...

nios2-elf-nm -n hello_world_0.elf > mem_init/hdl_sim/unsaved_epcs_flash_controller_0_boot_rom.sym

Post-processing to create mem_init/hdl_sim/unsaved_onchip_memory2_0.sym...

nios2-elf-nm -n hello_world_0.elf > mem_init/hdl_sim/unsaved_onchip_memory2_0.sym

Post-processing to create unsaved_epcs_flash_controller_0_boot_rom.flash...

elf2flash --input=hello_world_0.elf --outfile=unsaved_epcs_flash_controller_0_boot_rom.flash --sim_optimize=0 --little-endian-mem \

 --epcs 

Post-processing to create mem_init/meminit.spd...

Post-processing to create mem_init/meminit.qip...


13:50:26 Build Finished (took 4s.961ms) 



+

귀찮아서(!) 안하려고 했던 sof2flash를 꼭 거쳐야 하나보다.. 나처럼 EPCS에 구우려면..

3.3.1.3 EPCS Parameters

3.3.2 Programming Both Hardware and Software into an EPCS/EPCQ

Device

The --base parameter is not available for EPCS/EPCQ devices, because in EPCS/EPCQ devices, FPGA configuration data must start at address 0x0. However, if you are programming both an FPGA configuration and a Nios II software executable in the EPCS/EPCQ device, the --after parameter lets you position the software executable directly after the FPGA configuration data.

Convert the FPGA configuration file first using sof2flash. When converting the Nios II software executable, use the --after parameter, and specify the FPGA configuration S-record file. The S-record output for the software executable starts at the first address unused by the FPGA configuration. Refer to the second example under the “elf2flash Command-Line Examples” chapter.

Note: elf2flash does not insert the FPGA configuration into the output file. It simply leaves space, starting at offset 0x0, that is large enough for the configuration data.

Note: In Intel Quartus Prime software version 13.1 and onwards, the -epcs/--epcq option in sof2flash generates .flash file with a SOF header, which contains the SOF length.

This change is required for V-series devices and above for new SOF format, and to allow for future SOF format variations. The Nios II bootcopier loads the Nios II software executable from EPCS/EPCQ devices based on the SOF length. For more information about how to program EPCS/EPCQ devices, refer to the "KDB Solution rd11192013_118" webpage.

Related Links

• elf2flash Command-Line Examples on page 25

• KDB Solution rd11192013_118 

[링크 : https://www.altera.com/en_US/pdfs/literature/ug/ug_nios2_flash_programmer.pdf]



+

카페 자료 뒤지다 보니,

Eclipse에 Flash Programmer가 있대서 보니 오.. 이런게 있네..

그런데 프로젝트도 안 부르고 그냥 실했더니 먼가 에러뿜뿜


아무튼 이걸 이용하면 굳이 jic 안만들어도 EPCS controller가 있으면 EPCS에 쓸 수 있다고 한다. 

[링크 : https://www.altera.com/en_US/pdfs/literature/ug/ug_nios2_flash_programmer.pdf]

'embeded > FPGA - ALTERA' 카테고리의 다른 글

Nios II Flash Programmer  (0) 2018.02.01
de0-nano SDRAM with Nios II  (0) 2018.01.31
Nios II BSP 빌드관련  (0) 2018.01.31
SREC - SRECord  (0) 2018.01.30
altera Nios II, epcs controller  (0) 2018.01.29
Posted by 구차니
embeded/FPGA - ALTERA2018. 1. 31. 13:04

아무생각 없이(!) 전체 프로젝트를 Clean 했더니 아래와 같은 에러를 뱉어 주신다.

별거 없고 bsp 프로젝트 우클릭후 Nios II 에서 Generate BSP 해준다음

전체 프로젝트 빌드 하면된다.

13:01:21 **** Incremental Build of configuration Nios II for project hello_world_0_bsp ****

make all 

Makefile not up to date.

../../unsaved.sopcinfo has been modified since the BSP was generated.


Generate the BSP to update the Makefile, and then build again.


To generate from Eclipse:

 1. Right-click the BSP project.

 2. In the Nios II Menu, click Generate BSP.


To generate from the command line:

 nios2-bsp-generate-files --settings=<settings file> --bsp-dir=<target bsp files directory>


make: *** [public.mk] Error 1


13:01:22 Build Finished (took 946ms)


Run Configuration 에서

Download에 Start Processor와 Reset the selected target system을 해주면

다운로드 후 리셋을 걸고 시작하도록 하여 작동되는걸 바로 볼 수 있다

(먼가 이상하게 늦게 실행되는 느낌이 들어서 그거 없애는 용도)


이전글을 비교해보니.. 실수로 Start Processor의 체크를 꺼서 그런 듯

2018/01/27 - [embeded/FPGA] - Nios II 프로그램 빌드..


'embeded > FPGA - ALTERA' 카테고리의 다른 글

de0-nano SDRAM with Nios II  (0) 2018.01.31
EPCS Controller 추가 및 jic 통합하기.. 실패중  (0) 2018.01.31
SREC - SRECord  (0) 2018.01.30
altera Nios II, epcs controller  (0) 2018.01.29
Nios II / Nios II Classic 차이점  (0) 2018.01.29
Posted by 구차니
Programming/C Win32 MFC2018. 1. 31. 12:12

간단하게

const char*는 const char 를 가르키는 포인터 이고

포인터가 가리키는 변수를 다른걸로 바꿀 수 있지만

포인터가 가리키는 변수의 내용은 바꿀 수 없다.


char * const는 char를 가리키는 const 포인터 이고

포인터가 가리키는 변수를 다른걸로 바꿀 수 없지만

포인터가 가리키는 변수의 내용을 바꿀순 있다.


근데.. const 포인터를 어따 써먹지?

링크드 리스트 이런거 구현하거나 범용적으로 쓰이려면 쓸데도 없고

C++의 레퍼런스 처럼 특정 변수를 지정해서 쓰는 용도라면..

커널내에서 정도 밖에 떠오르지 않네?


char * const a;

means that the pointer is constant and immutable but the pointed data is not.

You could use const_cast(in C++) or c-style cast to cast away the constness in this case as data itself is not constant.


const char * a;

means that the pointed data cannot be written to using the pointer a. Using a const_cast(C++) or c-style cast to cast away the constness in this case causes Undefined Behavior. 

[링크 : https://stackoverflow.com/questions/10091825/constant-pointer-vs-pointer-on-a-constant-value4]

[링크 : http://ra2kstar.tistory.com/143]

'Programming > C Win32 MFC' 카테고리의 다른 글

uuid in c  (0) 2018.10.22
엔디안 급 멘붕..  (0) 2018.05.29
소스 코드 포맷 적용하기  (0) 2018.01.08
win32 시리얼 통신 LPCTSTR / LPCSTR  (0) 2017.12.07
MFC CList 선택항목 인덱스 얻기  (0) 2017.11.28
Posted by 구차니
Microsoft/Windows2018. 1. 31. 09:41

지인의 요청으로 검색을 하는데

윈7 처럼 하단에 이미지 클릭시 해상도가 출력 안되서 불편하다는데


윈10 순수 해결책으로는 

"내용"로 해서 썸네일 적게 하면서 보던가

"자세히"로 한다음 보기 내용에 해상도를 추가하던가

"세부 정보 창"을 켜고 보던가 정도

[링크 : http://mainia.tistory.com/3956]

[링크 : https://superuser.com/questions/481462/show-image-dimensions-in-status-bar-in-windows-8-file-explorer]


외부해결로는 확장기능 이용해서 사용하기.. 귀찮네 -_-

[링크 : https://www.howtogeek.com/...-windows-10s-file-explorer-look-like-windows-7s-windows-explorer/]

'Microsoft > Windows' 카테고리의 다른 글

명령줄에서 이미지 프린트하기  (0) 2018.02.23
32비트 드라이버 64bit OS에서 강제로 깔기  (2) 2018.02.09
windows monthly rollup  (0) 2018.01.05
윈도우 단축키  (0) 2017.12.23
win10 UEFI fastboot 설치  (0) 2017.12.06
Posted by 구차니

문득 말일이라 어떻게 되나 조회를 해보는데

어라.. 실적적용금액이라는 것과 결제예정 금액이라는게 나온다.

음.. 일단 결제예정 금액은 현재 내가 1일 부터 말일까지 해놔서 말일에서 14일 후인

2월 14일에 결제될 금액이니까 맞고 (이게 문자로 오는 내용)

문제는 실적 적용 금액 -_-


상담원과 통화해보니까

오늘 쓴다고 해도 오늘 카드매입이 안되니까, 내일로 넘어가서 실적이 잡히고, 2월 실적이 된다고.. -_-???

그리고 오늘 저녁에 교통카드 잡히는데 얘도 다음달로 넘어가서 잡히는거라고.. 머야?!?!

카드는 아무튼 맨날 먼가 늦게늦게 처리되다 보니 그 시간 간격으로 인해서 관리가 안돼 ㅠㅠ


아무튼.. 결론은 다음달 할인은 포기하고

다음달 부터는 1월 25일 전까지는 결제예정 금액을 맞추는게 아니라

실적적용 금액을 맞춰야 하는건가?


[링크 : https://blog.naver.com/cculltip/220959944856]

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

추운게 낫지.. 미친..  (0) 2018.02.09
사회의 패러다임이 변한건가?  (0) 2018.02.07
기레기와 대륙의 기상 콜라보  (0) 2018.01.24
피곤타  (0) 2018.01.17
요즘 회사일..  (0) 2018.01.14
Posted by 구차니

흐음.. GTA V가 없어서 아쉽지만

한번 15달러에 전체를 구매해볼까? 끌리네..

LA NOIRE는 하나도 없고

GTA도 하나도 없고

MAX PAYNE 1,2,3는 가지고 있고 15달러에 다 사도 나쁘지 않겠네

[링크 : https://www.humblebundle.com/games/rockstar-games-bundle]


magicka 2없고

크루세이더 킹즈2는 유명하긴 한데 안끌리고..

cities in motion 2 있고

majesty 2 없고


[링크 : https://www.humblebundle.com/games/paradox-bundle-2018]


+

양심을 팔고! 1달러에 magicka 2 구매!

majesty2도 나빠보이진 않네


집에가서 리딤해야지 ㅋㅋ


락스타 번들은 GTA는 갖고 싶지 하고싶은 게임은 아니라 과감하게 패스~

Posted by 구차니
embeded/FPGA - XILINX2018. 1. 30. 23:50

altera와 비교되는 용어를 찾아 보는중


Processing System (PS)

Programmable Logic (PL)

[링크 : https://www.xilinx.com/support/documentation/data_sheets/ds190-Zynq-7000-Overview.pdf]


HPS에 대응하는게 PS 라는것 정도?

PL에 대응하는 용어는 FPGA나 LE 정도?


Cyclone V SoC Hard Processor System

[링크 : https://www.altera.com/products/fpga/features/cyv-soc-hps.html]

[링크 : https://www.altera.com/products/soc/portfolio/arria-10-soc/arria10-soc-hps.html]

'embeded > FPGA - XILINX' 카테고리의 다른 글

vivado language template  (0) 2018.03.20
xilinx 고속 시리얼 인터페이스  (0) 2018.03.15
xilinx bitstram ecryption  (0) 2018.01.23
xilinx artix-7 프로젝트 빌드해봄  (0) 2018.01.07
xilinx vivado / ISE 라이센스 관련  (0) 2017.12.19
Posted by 구차니
개소리 왈왈/컴퓨터2018. 1. 30. 22:35

미묘하게 선 위치가 안나와서 고민이지만..

(일단 벽에서 나오는 인입선 길이가.. ㅠㅠ)


업데이트도 해줘야 하고.. 아이피 설정도 해줘야 하고 할게 많구만


Posted by 구차니
개소리 왈왈/독서2018. 1. 30. 22:02

정체를 알 수 없는 위화감이 거북학 책

나쁘게 표현(?)하면 유사과학이고

지적설계랑 연관되는 듯한 뉘앙스도 보이고..

과학으로 그럴싸하게 포장한 심리학의 다른 모습?


진화는 유전자 풀을 통해서 자연선택적 되는 것이지만,

사람의 마음은 복잡한 것으로 유전자 변화로 이뤄지기에는 너무 세대가 짧았다.

마음은 여러가지 모듈로 이루어져 있고

아이가 어떠한 언어든 배울수 있는 언어학습능력등을 보건대

진화에 있어서 사람의 마음이 큰 작용을 했다라는 내용인데


글쎄.. 이걸 theroy로 봐야 하나? 의문이네


[링크 : http://www.kyobobook.co.kr/product/detailViewKor.laf?barcode=9788934906797]

Posted by 구차니
embeded/ARM2018. 1. 30. 16:04

Advanced Microcontroller Bus Architecture

Advanced eXtensible Interface (AXI)


[링크 : https://en.wikipedia.org/wiki/Advanced_Microcontroller_Bus_Architecture]

'embeded > ARM' 카테고리의 다른 글

keil window 버전별 지원버전  (0) 2018.07.19
ARM MPMC(multiport memory controller)  (0) 2018.03.19
keil build 관련 검색  (0) 2017.12.06
카드크기 컴퓨터 벤치마크  (0) 2016.09.04
JTAG ETM  (0) 2016.09.02
Posted by 구차니