embeded/Cortex-M3 Ti2015. 12. 11. 14:31

Can NOT Stop MCU!!

Flash driver fuction execution error



도대체.. 머가 문제인거냐...




일단 현재 수상(?) 한건

생산시기에 따른 편차가 있다는것


그리고 2014.7월에 JTAG/SWD 리셋 관련 글이 수정되었다는 점

(물론 예전 버전에도 내용은 존재함)


이래저래 벽에 막힌 기분..


coflash를 이용해서 굽는지라. 초기화 코드등은 수정하려면 할 수는 있으나..

flash 프로그램이 문제인지(elf / *.c / *.h)

xml 설정파일 쪽인지(adapter / debugger / device)

알수가 없네..


현재 의심가는건.. 

1. NVRAM의 설정에서 JTAG으로 설정되거나 SWD로 설정되는 녀석이 혼용되어

JTAG으로 설정된 녀석의 경우 SWD를 통해서 구을수 없다는 경우...


2. 내장 플래시의 문제(혹은 PLL 등?)


+

뒤지다 보니 coflash user defined algorithm이 존재!

[링크 : http://www1.coocox.org/CoFlashGuide/CoFlash_UserGuide_Algorithm.htm]




JTAG-to-SWD Switching

The 16-bit TMS/SWDIO command for switching to SWD mode is defined as b1110.0111.1001.1110, transmitted LSB first.


SWD-to-JTAG Switching

The 16-bit TMS/SWDIO command for switching to JTAG mode is defined as b1110.0111.0011.1100, transmitted LSB first.

 

7.2.3.5 Permanently Disabling Debug

 For extremely sensitive applications, the debug interface to the processor and peripherals can be permanently disabled, blocking all accesses to the device through the JTAG or SWD interfaces. With the debug interface disabled, it is still possible to perform standard IEEE instructions (such as boundary scan operations), but access to the processor and peripherals is blocked. The DBG0 and DBG1 bits of the User Debug (USER_DBG) register control whether the debug interface is turned on or off. The debug interface should not be permanently disabled without providing some mechanism–-such as the boot loader–-to provide customer-installable updates or bug fixes. Disabling the debug interface is permanent and cannot be reversed.

[링크 : http://www.ti.com/lit/ds/symlink/lm3s1607.pdf]

'embeded > Cortex-M3 Ti' 카테고리의 다른 글

cortex-m3 인터럽트 관련 조사  (0) 2016.02.18
uart tx interrupt  (0) 2015.12.18
ADCHardwareOversampleConfigure()  (0) 2015.11.17
lm3s811 / lm31968 adc 사양비교  (0) 2015.11.17
ADC 샘플 시퀀서...  (0) 2015.11.17
Posted by 구차니
embeded/openRISC2015. 12. 11. 10:19


The OR1200 is a 32-bit scalar RISC with Harvard microarchitecture, 5 stage integer pipeline, virtual memory support (MMU) and basic DSP capabilities.

[링크 : http://opencores.org/or1k/OR1200_OpenRISC_Processor]


CPU CPUID

or1ksim 0x00

OR1200 0x12

mor1kx 0x01

AltOr32 0x32

OR10 0x10

or1knd i5 0xd5


[링크 : http://opencores.org/or1k/OR1K_CPU_Cores]




=== CPUID관련 ===


For now, we have implemented a CPU-ID register, that is SPR_SYS register 9, to allow different stacks in the same memory etc. 


[링크 : http://opencores.com/forum,OpenRISC,0,3666]


    Section 15.2

    Version Register (VR)

    The version register is a 32-bit special-purpose supervisor-level

register accessible with the l.mfspr instruction.

    It identifies the implementation (model) and version of the

OpenRISC 1000 processor.


    [31:24] VER Version

    Implementation-specific version information. This value should

increase for more recent versions. The CPU implementation

specification document should indicate how to interpret this field.


    [23:0] CPUID CPU Identification

    Implementation-specific identification number. Each unique

implementation should have a unique identification value.


[링크 : http://lists.opencores.org/pipermail/openrisc/2011-August/000090.html]


>>> +++ b/newlib/libc/machine/or1k/include/spr-defs.h

>>> @@ -201,6 +201,15 @@

>>>  #define SPR_VR2_CPUID_OFF   24

>>>  #define SPR_VR2_VER_OFF     0

>>>

>>> +/*

>>> + * CPU implementation unique identifiers

>>> + */

>>> +#define SPR_VR2_CPUID_OR1KSIM   0x00

>>> +#define SPR_VR2_CPUID_MOR1KX    0x01

>>> +#define SPR_VR2_CPUID_OR1200    0x12

>>> +#define SPR_VR2_CPUID_ALTOR32   0x32

>>> +#define SPR_VR2_CPUID_OR10      0x10

>>> +


[링크 : http://lists.opencores.org/pipermail/openrisc/2012-December/001171.html]



흐음... 0x13은 머지....

CPU0 : SPR_VR : 0x13000008

CPU1 : SPR_VR : 0x12000008


dprintf("CPU0 : SPR_VR : 0x%X\n", mfspr(SPR_VR));

#define SPR_VR (SPRGROUP_SYS + 0)


/*

 * Bit definitions for the Version Register

 *

 */

#define SPR_VR_VER 0xff000000  /* Processor version */

#define SPR_VR_CFG 0x00ff0000  /* Processor configuration */

#define SPR_VR_RES 0x0000ffc0  /* Reserved */

#define SPR_VR_REV 0x0000003f  /* Processor revision */


#define SPR_VR_VER_OFF 24

#define SPR_VR_CFG_OFF 16

#define SPR_VR_REV_OFF 0 


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

openRISC on FPGA  (0) 2018.01.29
or32 컴파일러.. 삽질  (0) 2015.12.14
openrisc 어셈블리  (0) 2015.12.10
openRISC chaintool  (0) 2015.11.27
Posted by 구차니
회사일/ONVIF2015. 12. 11. 09:20

gSOAP은 단순(?)하게 C/C++에서 XML 을 편하게 연결해서 SOAP 서비스를 제공하도록 해주는

프레임 워크? 라고 해야하려나?

단지 이걸 onvif에서 사용하는 것일뿐

gSOAP이 onvif는 아니다.


[링크 : https://en.wikipedia.org/wiki/GSOAP] generic XML and SOAP

[링크 : https://en.wikipedia.org/wiki/SOAP] Simple Object Access Protocol

[링크 : http://www.w3schools.com/xml/xml_wsdl.aspWeb Services Description Language

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


[링크 : http://j2enty.tistory.com/category/Dev%20Tech./SOAP]

[링크 : http://sourceforge.net/projects/gsoap2/]

'회사일 > ONVIF' 카테고리의 다른 글

onvif service  (0) 2017.07.15
onvif nvc nvt nvs nva  (0) 2015.12.24
ONVIF / PSIA  (0) 2010.10.07
Posted by 구차니
embeded/openRISC2015. 12. 10. 14:35

공식문서는 없으려나..


arm이나 x86과 다르게

l.nop 식으로 l.이 접두로 붙네...

(폰트 문제로 1.nop 인줄..)


[링크 : https://sourceware.org/cgen/gen-doc/openrisc-insn.html]



+

or1k(openrisk 1000)


명령어 셋별 접두어

ORBIS32/64

l.


ORFPX32/64

lf.


ORVDX64:

lv.


[링크 : https://github.com/openrisc]

    [링크 : https://raw.githubusercontent.com/openrisc/doc/master/openrisc-arch-1.1-rev0.pdf]

[링크 : http://opencores.org/or1k/Main_Page]

    [링크 : http://opencores.org/or1k/Architecture_Specification]



SPR Special-Purpose Register

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

openRISC on FPGA  (0) 2018.01.29
or32 컴파일러.. 삽질  (0) 2015.12.14
openRISC OR1k(1000) OR1200  (0) 2015.12.11
openRISC chaintool  (0) 2015.11.27
Posted by 구차니

공짜는 옳습니다!!!




헐 무려! 천원짜리 ㄷㄷㄷ

[링크 : http://store.steampowered.com/app/303390/]

'게임 > 오리진&스팀&유플레이' 카테고리의 다른 글

인디갈라 획득 실패 ㅠㅠ  (0) 2015.12.18
indiegala giveaday  (0) 2015.12.13
오리진의 선물  (0) 2015.12.03
인디갈라 무료 게임!  (0) 2015.11.30
아 몰랑 질러 ㄷㄷㄷㄷ  (0) 2015.11.25
Posted by 구차니
Programming/web 관련2015. 12. 9. 14:51

서버 사이드 스크립트 언어 라고 규정되는데

<!--#directive parameter=value parameter=value -->

위와 같은 문법으로 사용되며 shtml 이라는 확장자로 사용된다(어?)


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


[링크 : https://www.linux.co.kr/unixwebhosting/ssi/index.htm]

  [링크 : https://www.linux.co.kr/unixwebhosting/ssi/ssi01.htm]

  [링크 : https://www.linux.co.kr/unixwebhosting/ssi/ssi02.htm]

  [링크 : https://www.linux.co.kr/unixwebhosting/ssi/ssi03.htm]

  [링크 : https://www.linux.co.kr/unixwebhosting/ssi/ssi04.htm]

  [링크 : https://www.linux.co.kr/unixwebhosting/ssi/ssi05.htm]

'Programming > web 관련' 카테고리의 다른 글

NPAPI / PPAPI - VLC ...  (0) 2016.01.14
HTML5 video player 720p/1080p 재생여부  (0) 2016.01.13
홈페이지 검증  (0) 2015.09.17
웹 서버별 특징  (0) 2015.09.11
DASH - Dynamic Adaptive Streaming over HTTP  (0) 2015.09.11
Posted by 구차니
회사일2015. 12. 9. 13:36

두개가 태생이 같은건 아닐텐데..은근 붙어서 검색이 되네..

일단 가장 중요(?)한 것은.. bsd license


Developing applications on STM32Cube with LwIP TCP/IP stack

[링크 : http://www.st.com/st-web-ui/static/active/jp/resource/technical/document/user_manual/DM00103685.pdf


Using the lwIP Network Stack

Atmel SAM4E

[링크 : http://www.atmel.com/Images/Atmel-42233-Using-the-lwIP-Network-Stack_AP-Note_AT04055.pdf]


[링크 : http://lwip.wikia.com/wiki/LwIP_Wiki]

[링크 : http://savannah.nongnu.org/projects/lwip/]



Some demos use uIP and some lwIP as the underlying embedded TCP/IP stack - and pre-date the introduction of FreeRTOS+TCP (FreeRTOS's own scalable TCP/IP stack).

[링크 : http://www.freertos.org/embeddedtcp.html]

'회사일' 카테고리의 다른 글

심심해서 만들어 보는.. 캡쳐 스크립트  (0) 2016.07.27
APNR 카메라  (0) 2016.05.18
raw video streaming  (0) 2015.09.16
UTC / Up the cable, coxial  (0) 2015.09.02
SDI 12G ... 6G  (0) 2015.05.18
Posted by 구차니
개소리 왈왈2015. 12. 9. 12:42

다시 공지가 왔네..

까먹고 있던 소녀시대 월 페이퍼 백업 ㅋㅋ


나름 이벤트로 100기가 유저인데 아깝다..



'개소리 왈왈' 카테고리의 다른 글

이상하다 꿈을 꾼건가..  (0) 2016.05.14
딥마인드 - 알파고에 대한 생각  (0) 2016.03.09
다음 날씨도 폐쇄!  (0) 2015.10.01
감자도스의 스멜이 ㅋ  (0) 2015.03.29
출산 그리고 이사완료  (0) 2015.03.06
Posted by 구차니

vfs objects = recycle


위의 항목을 이용하면 vfs module을 통해서

휴지통 기능을 지원한다고 한다.

synology에서 이 기능으로 삼바 휴지통을 구현한걸려나?


[링크 : http://unix.stackexchange.com/.../how-can-i-have-a-trash-recycle-bin-for-my-samba-shares]

[링크 : http://forums.openmediavault.org/index.php/Thread/3098-RESOLVED-Recycle-bin-for-SMB-CIFS/]


EXAMPLES

Move files "deleted" on share to /data/share/.recycle instead of deleting them:

      [share]

path = /data/share

vfs objects = recycle

recycle:repository = .recycle

recycle:keeptree = yes

recycle:versions = yes


VERSION

This man page is correct for version 3.0.25 of the Samba suite.


[링크 : https://www.samba.org/samba/docs/man/manpages/vfs_recycle.8.html


'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

어라.. samba swat 사라졌네  (0) 2017.01.03
wins를 이용한 ubuntu에서 samba host 이름 resolve하기  (0) 2016.09.10
samba - nfs - samba 0x80070021 오류  (0) 2015.11.09
smbpasswd의 hash generator  (0) 2014.09.22
SMB2  (0) 2013.09.13
Posted by 구차니

벌써 이번달도 1주가 지났고..

멀 해야 할까..

멀 해야 할까..



아니

멀 해야만 하는건가?

이번년도까진 그냥 쉬는걸로 해야하려나..

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

2015년 끝  (0) 2015.12.31
무료..  (0) 2015.12.26
쉬는 주간...  (0) 2015.12.05
멘붕  (0) 2015.12.04
12월 머하지...  (0) 2015.12.01
Posted by 구차니