embeded/Cortex-M3 STM2026. 3. 17. 10:35

including parity가 좀 헷갈리는데

stm32g473 의 경우 data가 7bit / 8bit / 9bit을 지원한다.

 

f469, f103 은 8bit / 9bit 를 지원한다.

 

 

modbus ascii / 7bit data를 일부 stm32는 사용하지 못하고 stm32F4 나 L4 이후로는 가능한것으로 생각

[링크 : https://blog.naver.com/kim1417/222499708921]

 

정말로.. parity가 1비트 먹어서 data 9 bit 이면 parity none으로 밖에 못쓰나?

[링크 : https://www.st.com/resource/en/reference_manual/rm0008-stm32f101xx-stm32f102xx-stm32f103xx-stm32f105xx-and-stm32f107xx-advanced-armbased-32bit-mcus-stmicroelectronics.pdf]

 

Posted by 구차니

uart는 8bit 7bit만 있는줄 알았는데 9bit도 있다고 한다.

근데 PC에 달린녀석이나 USB to Serial 등으로는 안되는것 같기도 하고..

 

[링크 : https://community.st.com/t5/stm32-mcus-products/9-bit-uart-receive-stm32f103/td-p/336998]

[링크 : https://github.com/linux4sam/9bit]

[링크 : https://github.com/rhempel/serial9]

'이론 관련 > 네트워크 관련' 카테고리의 다른 글

DHCP option  (0) 2026.03.13
DHCP option 82 relay  (0) 2025.01.23
multicast  (0) 2023.08.26
cobs  (0) 2023.05.25
PAM4  (0) 2023.01.16
Posted by 구차니
embeded/FPGA - ALTERA2026. 3. 17. 00:01

아주 예전 기록을 찾아보니

quartus 2 17.x 를 설치한 적이 있네

2017.12.27 - [embeded/FPGA - ALTERA] - quartus2 설치 + usb blaster 설치

 

오래된 버전으로는 4.x 9.x 까지 내려갔었는데

2020.06.23 - [embeded/FPGA - ALTERA] - quartus II 9.0이 아니야? 4.2 설치!

 

이번에는 가장 최신으로 일단 시도!

25.1 이라.. 어우. .많이도 올라갔다.

FPGA는 paid license 라고 해서 일단 패스하고 starter Editino 으로해서 Cyclone IV / V 에 대해서 설치시도

 

그나저나 FPGA SDK for OpenCL 은 어디서 찾지?

 

어..?

[링크 : https://www.intel.co.kr/content/www/kr/ko/support/programmable/support-resources/design-guidance/opencl-bsp-support.html]

 

어.. 이거 이제 손 놔버린건가?

[링크 : https://www.intel.co.kr/content/www/kr/ko/content-details/738067/pdn-2219-intel-is-discontinuing-the-following-software-ordering-codes.html]

 

+

2026.03.17

매직아이로 봐야 머가 달라졌는지 보일 느낌 ㅋㅋ

일단 lite랑 standard는 보기에는 지원하는 장치 차이가 있을 정도?

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

de1-soc와 quartus / fpga sdk for opencl  (0) 2026.03.18
quartus prime standard 실행  (0) 2026.03.17
de1-soc daughter board  (0) 2026.03.16
sof - SRAM Object File  (0) 2026.03.15
JIC - JTAG Indirect Configuration  (0) 2026.03.15
Posted by 구차니
embeded/FPGA - ALTERA2026. 3. 16. 23:49

de-nano 이후로 오랫만에 보는 system builder

HPS 는 왜 이렇게 소심해 ㅋㅋ

 

그 와중에 GPIO-0 / 1 에 옵션이 궁금해서 눌러보는데

 

그게는 디스플레이 / 카메라 / ADC & DAC 정도 분류로 추가가 가능한데 은근히 비싸다.

 

240x320 display

[링크 : https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=65&No=892] LT24


7" 800x480 with 5 point MT

[링크 : https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=68&No=989#contents] MTL2

 

7" 800x480 with 5 point MT

[링크 : https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=168&No=653] MTL

 

4.3" 800x480

[링크 : https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=68&No=213] LTM

 

OV8865 8M 1/3.2" MIPI to parallel(TC358748XBG)

[링크 : https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=68&No=1011&PartNo=2#heading] D8M-GPIO

 

5M @ 15fps parallel 12bit

[링크 : https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=68&No=281] D5M

 

AD9248  ADC 65MSPS

AD9767ASTZ DAC 125MSPS 

[링크 : https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=73&No=278#contents] ADA

 

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

quartus prime standard 실행  (0) 2026.03.17
quartus prime 설치 standard / lite  (0) 2026.03.17
sof - SRAM Object File  (0) 2026.03.15
JIC - JTAG Indirect Configuration  (0) 2026.03.15
LTC connector?  (0) 2026.03.15
Posted by 구차니
embeded/FPGA - ALTERA2026. 3. 15. 00:45

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

quartus prime 설치 standard / lite  (0) 2026.03.17
de1-soc daughter board  (0) 2026.03.16
JIC - JTAG Indirect Configuration  (0) 2026.03.15
LTC connector?  (0) 2026.03.15
de0-nano용 nios v 예제  (0) 2026.03.14
Posted by 구차니
embeded/FPGA - ALTERA2026. 3. 15. 00:43

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

de1-soc daughter board  (0) 2026.03.16
sof - SRAM Object File  (0) 2026.03.15
LTC connector?  (0) 2026.03.15
de0-nano용 nios v 예제  (0) 2026.03.14
DE1-SoC 구매 도착!  (0) 2026.03.13
Posted by 구차니
embeded/FPGA - ALTERA2026. 3. 15. 00:40

DE1-SoC 에서 LTC 커넥터라는 말이 나와서

이게 멀 의미하는건가 싶어 검색하는데 딱히 보이지 않는다.

 

그냥 디~~게 평범한 2x7 배열을 가진 핀헤더 같은데 왜 LTC 인가..

 

GPIO / I2C / SPI 연결되는 평범한 녀석인데..

3.7.8 LTC Connector
The board has a 14-pin header, which is originally used to communicate with various daughter cards from Linear Technology. It is connected to the SPI Master and I2C ports of HPS. The communication with these two protocols is bi-directional. The 14-pin header can also be used for GPIO, SPI, or I2C based communication with the HPS. Connections between the HPS and LTC connector are shown in Figure 3-37, and the pin assignment of LTC connector is listed in Table 3-31.

 

Linear Technology Co. 줄여서 LTC 라고 하는건가?

 

[링크 : https://www.analog.com/media/en/technical-documentation/user-guides/dc1223a-bfa.pdf]

 

2016년 ADI(Analog Devices Inc.) 가 Linear technology 인수.

그래서 지금와서 칩셋 찾으면 Linear Technology 인데 도메인이 analog devices로 나왔나 보군..

[링크 : https://www.yna.co.kr/view/AKR20160727122200009]

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

sof - SRAM Object File  (0) 2026.03.15
JIC - JTAG Indirect Configuration  (0) 2026.03.15
de0-nano용 nios v 예제  (0) 2026.03.14
DE1-SoC 구매 도착!  (0) 2026.03.13
terasic de1 soc openCL 문서  (0) 2025.06.27
Posted by 구차니
embeded/FPGA - ALTERA2026. 3. 14. 23:56

버전 정보 찾아두면 좀 편하겠지

 

These are some NIOS-V cpu examples implemented and running on a Terasic DE0-NANO board (Cyclone IV - EP4C22F17C6) (Built using Intel Quartus 23.1.1 Standard Edition)

[링크 : https://github.com/monkstein88/niosv-example-projects]

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

JIC - JTAG Indirect Configuration  (0) 2026.03.15
LTC connector?  (0) 2026.03.15
DE1-SoC 구매 도착!  (0) 2026.03.13
terasic de1 soc openCL 문서  (0) 2025.06.27
terasic sockit  (0) 2023.11.06
Posted by 구차니

예전에 찾아봤던 신기한 녀석의 후속글.. 이라고 해야하나?

2025.01.23 - [이론 관련/네트워크 관련] - DHCP option 82 relay

 

0~255 총 256개의 옵션이 존재하며 BOOTP 에서 유래하거나 DHCP에서 추가된 것들이 있는 것 같은데..

dhcp 서버 설정을 해본적이 없는것 같네.. dhcpd.conf 뒤져보면 나오려나?

 

RFC 1497 (BOOTP Vendor Information Extensions) vendor extensions[13]: Section 3 CodeNameLengthNotes

0 Pad 0 octets Can be used to pad other options so that they are aligned to the word boundary; is not followed by length byte
1 Subnet mask 4 octets Client's subnet mask as per RFC 950. If both the subnet mask and the router option (option 3) are included, the subnet mask option must be first.
2 Time offset 4 octets Time offset of the client's subnet in seconds from Coordinated Universal Time (UTC). The offset is expressed as a two's complement 32-bit integer. A positive offset indicates a location east of the zero meridian and a negative offset indicates a location west of the zero meridian.
3 Router Multiples of 4 octets Available routers, should be listed in order of preference
4 Time server Multiples of 4 octets Available Time Protocol servers to synchronise with, should be listed in order of preference
5 Name server Multiples of 4 octets Available IEN 116 name servers, should be listed in order of preference
6 Domain name server Multiples of 4 octets Available DNS servers, should be listed in order of preference
7 Log server Multiples of 4 octets Available log servers, should be listed in order of preference
8 Cookie server Multiples of 4 octets Cookie in this case means "fortune cookie" or "quote of the day", a pithy or humorous anecdote often sent as part of a logon process on large computers; it has nothing to do with cookies sent by websites.
9 LPR Server Multiples of 4 octets A list of Line Printer Daemon protocol servers available to the client, should be listed in order of preference
10 Impress server Multiples of 4 octets A list of Imagen Impress servers available to the client, should be listed in order of preference
11 Resource location server Multiples of 4 octets A list of Resource Location Protocol servers available to the client, should be listed in order of preference
12 Host name Minimum of 1 octet Name of the client. The name may be qualified with the local domain name.
13 Boot file size 2 octets Length of the boot image in 512B blocks
14 Merit dump file Minimum of 1 octet Path where crash dumps should be stored
15 Domain name Minimum of 1 octet  
16 Swap server 4 octets The IP address of a server where a swap service (e.g., swap over NFS) is provided for diskless workstations[14]
17 Root path Minimum of 1 octet The path in the remote filesystem specified by siaddr or sname that the client should mount as its root filesystem (e.g, over NFS)
18 Extensions path Minimum of 1 octet  
255 End 0 octets Used to mark the end of the vendor option field

[링크 : https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol#Options]

 

This appendix contains DHCP options and BOOTP vendor extensions from RFC 2132, and includes the
validation type for each option, as indicated in Table 10: DHCPv4 Options by Number , on page 23.

The following sections describe the DHCP options in detail:
• RFC 1497 Vendor Extensions, on page 1

[링크 : https://www.cisco.com/c/en/us/td/docs/net_mgmt/prime/network_registrar/10-0/dhcp/guide/DHCP_Guide/DHCP_Guide_appendix_01101.pdf]

 

DHCP option 43 / 25DHCP (Dynamic Host Configuration Protocol) 에는 클라이언트가 DHCP 서버로부터 정보를 요청할 때 클라이언트에게 송신할 수 있는 많은 구성 옵션이 있습니다. 검색 도구를 사용하여 모든 DHCP 옵션을 볼 수 있습니다.

DHCP 옵션은 DHCP 서버가 IP 주소와 함께 클라이언트에게 전달하는 추가적인 구성 데이터를 정의합니다. 일반적인 옵션에는 서브네트 마스크, 도메인명, 라우터 IP 주소, 도메인명 서버 IP 주소 및 정적 라우트가 포함됩니다.

RFC 2132: DHCP 옵션 및 BOOTP 공급업체 확장의 정의를 기반으로 하는 표준 DHCP 옵션이 다음 표에 설명되어 있습니다. IBM Navigator FOR I의 DHCP 옵션 표시를 사용하여 사용자 지정 옵션을 구성할 수도 있습니다.

[링크 : https://www.ibm.com/docs/ko/i/7.5.0?topic=concepts-dhcp-options-lookup]

 

[링크 : http://www.ktword.co.kr/test/view/view.php?no=1925]

 

윈도우 서버 DHCP 설정

[링크 : https://undefinedmaster.tistory.com/23] 43

 

linux dhcpd 설정

host x41  { 
hardware ethernet 00:0a:e4:2f:66:38;
fixed-address 10.0.0.201;
option subnet-mask 255.255.255.0;
option domain-name-servers 10.0.0.20;
option domain-name "site";
  option vendor-class-identifier "PXEClient";
  vendor-option-space PXE;
    option PXE.discovery-control 7;
    option PXE.boot-server 15 1 10.0.0.20;
    option PXE.boot-menu 15  15 "Tpm for OSd 7.1";
    option PXE.menu-prompt 0 "Tpm for Osd";
}

[링크 : https://www.ibm.com/docs/en/tpmfod/7.1.1.14?topic=configuration-dhcpdconf-example

[링크 : https://manpages.ubuntu.com/manpages/bionic/man5/dhcp-options.5.html]

[링크 : https://y7712.tistory.com/entry/Ubuntu-DHCP]

 

dhcp 옵션에서 1번이 subnet 3번이 router 인데 아래 옵션이 그 옵션인가?

default-lease-time 600;
max-lease-time 7200;
subnet 10.0.0.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option routers 10.0.0.1;
range 10.0.0.5 10.0.0.15;
}
subnet 172.16.0.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option routers 172.16.0.1;
range 172.16.0.5 172.16.0.15;
}

[링크 : https://docs.redhat.com/ko/documentation/red_hat_enterprise_linux/7/html/networking_guide/sec-configuring_a_multihomed_dhcp_server]

'이론 관련 > 네트워크 관련' 카테고리의 다른 글

uart 9bit multidrop  (0) 2026.03.17
DHCP option 82 relay  (0) 2025.01.23
multicast  (0) 2023.08.26
cobs  (0) 2023.05.25
PAM4  (0) 2023.01.16
Posted by 구차니
프로그램 사용/gcc2026. 3. 13. 15:33

링커 스크립트에서 만든 변수를

c에서 끌어오려면 extern 을 해주면 계산된 값이 불려온다.

 

SECTIONS
{
    /* Starts at LOADER_ADDR. */
    . = 0x80000;
    /* For AArch64, use . = 0x80000; */
    __start = .;
    __text_start = .;
    .text :
    {
        KEEP(*(.text.boot))
        *(.text)
    }
    . = ALIGN(4096); /* align to page size */
    __text_end = .;

    __bss_start = .;
    .bss :
    {
        bss = .;
        *(.bss)
    }
    . = ALIGN(4096); /* align to page size */
    __bss_end = .;
    __bss_size = __bss_end - __bss_start;
    __end = .;
}
: 저 변수들은 실제 저안에서 사용된다기 보다는 소스 코드(C 파일 혹은 어셈블리어 파일)상에서 사용되면서 의미가 부여된다. 저 변수들을 소스 코드상에서 불러 오려면 어떻게 해야 할까? 아래의 코드를 보자.

extern unsgined char __text_start
uint8_t *text_start = &__text_start;

+
extern usigned int __bss_size;

[링크 : https://yohda.tistory.com/entry/LINUXBUILD-링커스크립트]

[링크 : https://gustorage.tistory.com/27]

'프로그램 사용 > gcc' 카테고리의 다른 글

gcc -D 를 이용하여 명령줄에서 define 하기  (0) 2026.03.12
gcc __cplusplus 선언  (0) 2026.02.18
gcc __attribute__((weak)) 테스트  (0) 2026.01.29
gcc cortex-a9 double형 neon 연산 가속  (3) 2023.08.08
gcc tree vectorize  (0) 2023.01.26
Posted by 구차니