├── Driver └── WinUSB4NuVCOM.exe ├── NUC970 N9H30 NuWriter User Manual EN.pdf ├── NuWriter ├── NuWriter.sln ├── NuWriter.suo └── NuWriter │ ├── AddFileDialog.cpp │ ├── AddFileDialog.h │ ├── EraseDlg.cpp │ ├── EraseDlg.h │ ├── FastDlg.cpp │ ├── FastDlg.h │ ├── FooButton.cpp │ ├── FooButton.h │ ├── FormatDlg.cpp │ ├── FormatDlg.h │ ├── IniFile.cpp │ ├── IniFile.h │ ├── InitDlg.cpp │ ├── InitDlg.h │ ├── MMCDlg.cpp │ ├── MMCDlg.h │ ├── MTPDlg.cpp │ ├── MTPDlg.h │ ├── NANDDlg.cpp │ ├── NANDDlg.h │ ├── NandInfoDlg.cpp │ ├── NandInfoDlg.h │ ├── NuWriter.cpp │ ├── NuWriter.h │ ├── NuWriter.rc │ ├── NuWriter.vcproj │ ├── NuWriter.vcxproj │ ├── NuWriterDlg.cpp │ ├── NuWriterDlg.h │ ├── NucWinUsb.cpp │ ├── NucWinUsb.h │ ├── PACKDlg.cpp │ ├── PACKDlg.h │ ├── PackTab1.cpp │ ├── PackTab1.h │ ├── PackTab2.cpp │ ├── PackTab2.h │ ├── RAMDlg.cpp │ ├── RAMDlg.h │ ├── ReadMe.txt │ ├── Release │ ├── NuWriter.exe │ ├── key_cfg │ │ └── key.dat │ ├── path.ini │ ├── sys_cfg │ │ ├── N9H30F51I.ini │ │ ├── N9H30F51IEC.ini │ │ ├── N9H30F61IE.ini │ │ ├── N9H30F61IEC.ini │ │ ├── N9H30F63IEC.ini │ │ ├── N9H30F71IE.ini │ │ ├── N9H30F71IEC.ini │ │ ├── N9H30K41I.ini │ │ ├── N9H30K41IEC.ini │ │ ├── N9H30K61I.ini │ │ ├── N9H30K63IEC.ini │ │ ├── N9H31K51IFC.ini │ │ ├── NUC972DF51Y.ini │ │ ├── NUC972DF61Y.ini │ │ ├── NUC972DF61YC.ini │ │ ├── NUC972DF62Y.ini │ │ ├── NUC972DF63Y.ini │ │ ├── NUC972DF63YC.ini │ │ ├── NUC972DF71Y.ini │ │ ├── NUC972DF71YC.ini │ │ ├── NUC973DF62Y.ini │ │ ├── NUC975DK51Y.ini │ │ ├── NUC975DK61Y.ini │ │ ├── NUC975DK62Y.ini │ │ ├── NUC975DK63Y.ini │ │ ├── NUC975DK63YC.ini │ │ ├── NUC976DK41Y.ini │ │ ├── NUC976DK51Y.ini │ │ ├── NUC976DK61Y.ini │ │ ├── NUC976DK61YC.ini │ │ ├── NUC976DK62Y.ini │ │ ├── NUC976DK63Y.ini │ │ ├── NUC976DK63YC.ini │ │ ├── NUC977DK41Y.ini │ │ ├── NUC977DK51Y.ini │ │ ├── NUC977DK61Y.ini │ │ ├── NUC977DK61YC.ini │ │ ├── NUC977DK62Y.ini │ │ ├── NUC977DK63Y.ini │ │ ├── NUC977DK63YC.ini │ │ ├── NUC977DK71Y.ini │ │ ├── NUC978DK41Y.ini │ │ ├── NUC978DK51Y.ini │ │ ├── NUC978DK61Y.ini │ │ ├── SCM601L216UE-XXX-40401752.ini │ │ ├── SCM601L216UE-XXX-40402132.ini │ │ ├── SCM601L216UE.ini │ │ ├── SCM602L128UE-XXX-40401752.ini │ │ ├── SCM602L128UE-XXX-40402132.ini │ │ ├── SCM602L128UE.ini │ │ ├── SCM603L128UE.ini │ │ └── SCM604L216VE.ini │ ├── xusb.bin │ ├── xusb128.bin │ ├── xusb16.bin │ ├── xusb32.bin │ └── xusb64.bin │ ├── ReportCtrl.cpp │ ├── ReportCtrl.h │ ├── SPIDlg.cpp │ ├── SPIDlg.h │ ├── SPIReadDlg.cpp │ ├── SPIReadDlg.h │ ├── SelChipDlg.cpp │ ├── SelChipDlg.h │ ├── Serial.cpp │ ├── Serial.h │ ├── Sliders.cpp │ ├── Sliders.h │ ├── SmartEdit.cpp │ ├── SmartEdit.h │ ├── SubFormCollection.cpp │ ├── SubFormCollection.h │ ├── WinUsbLib │ ├── devioctl.h │ ├── setupapi.lib │ ├── usb.h │ ├── usb100.h │ ├── usb200.h │ ├── winusb.h │ ├── winusb.lib │ └── winusbio.h │ ├── aes.cpp │ ├── aes.h │ ├── device.h │ ├── enumser.cpp │ ├── enumser.h │ ├── path.ini │ ├── res │ ├── Add.bmp │ ├── Browse.bmp │ ├── Continue.bmp │ ├── Delete.bmp │ ├── EraseAll.bmp │ ├── Exit.bmp │ ├── Format.bmp │ ├── Modify.bmp │ ├── NuWriter.bmp │ ├── NuWriter.ico │ ├── NuWriter.rc2 │ ├── Output.bmp │ ├── ReConnect0.bmp │ ├── ReConnect1.bmp │ ├── ReadDevice.bmp │ ├── Verify.bmp │ ├── WriterDevice.bmp │ ├── banner.bmp │ └── chip.ico │ ├── resource.h │ ├── stdafx.cpp │ ├── stdafx.h │ ├── targetver.h │ └── xusb.cpp └── NuWriterFW ├── NuWriterFW ├── NuWriterFW.uvmpw ├── NuWriterFW_128MB.bin ├── NuWriterFW_128MB.uvproj ├── NuWriterFW_16MB.bin ├── NuWriterFW_16MB.uvproj ├── NuWriterFW_32MB.bin ├── NuWriterFW_32MB.uvproj ├── NuWriterFW_64MB.bin ├── NuWriterFW_64MB.uvproj ├── Readme.txt ├── del_obj .bat ├── header_128MB.bat ├── header_16MB.bat ├── header_32MB.bat ├── header_64MB.bat ├── romh.exe ├── source │ ├── FPGA.ini │ ├── chip.ini │ ├── chip_128.ini │ ├── chip_16.ini │ ├── chip_64.ini │ ├── config.h │ ├── exesdramdtb.s │ ├── filesystem.c │ ├── filesystem.h │ ├── flash.c │ ├── flash.h │ ├── fmi.h │ ├── main.c │ ├── parse.c │ ├── scat_c.scf │ ├── scat_c_128.scf │ ├── scat_c_16.scf │ ├── scat_c_64.scf │ ├── sd.c │ ├── sd.h │ ├── sdglue.c │ ├── sdglue.h │ ├── sm.c │ ├── spiflash.c │ ├── standalone.c │ ├── usbd.c │ ├── usbd.h │ ├── wb_init.s │ ├── wb_init_128.s │ ├── wb_init_16.s │ ├── wb_init_64.s │ └── wbfmi.h ├── xusb.bin ├── xusb128MB.bin ├── xusb16MB.bin ├── xusb32MB.bin └── xusb64MB.bin └── SYSLIB ├── Lib ├── NUC970_reg.h ├── wberrcode.h ├── wbio.h ├── wblib.h └── wbtypes.h └── Src ├── SysLib ├── obj │ └── syslib.lib └── syslib.uvproj ├── wb_aic.c ├── wb_cache.c ├── wb_config.c ├── wb_dcache.s ├── wb_ebi.c ├── wb_mmu.c ├── wb_power.c ├── wb_sysctl.s ├── wb_timer.c └── wb_uart.c /Driver/WinUSB4NuVCOM.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/Driver/WinUSB4NuVCOM.exe -------------------------------------------------------------------------------- /NUC970 N9H30 NuWriter User Manual EN.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NUC970 N9H30 NuWriter User Manual EN.pdf -------------------------------------------------------------------------------- /NuWriter/NuWriter.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.32901.82 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NuWriter", "NuWriter\NuWriter.vcxproj", "{E577BC12-2EFC-4F58-B2C5-5CC9FA0B11D6}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {E577BC12-2EFC-4F58-B2C5-5CC9FA0B11D6}.Debug|Win32.ActiveCfg = Debug|Win32 15 | {E577BC12-2EFC-4F58-B2C5-5CC9FA0B11D6}.Debug|Win32.Build.0 = Debug|Win32 16 | {E577BC12-2EFC-4F58-B2C5-5CC9FA0B11D6}.Release|Win32.ActiveCfg = Release|Win32 17 | {E577BC12-2EFC-4F58-B2C5-5CC9FA0B11D6}.Release|Win32.Build.0 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {72E85FF1-E03B-4920-B8F4-7E423BDC5868} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /NuWriter/NuWriter.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter.suo -------------------------------------------------------------------------------- /NuWriter/NuWriter/AddFileDialog.cpp: -------------------------------------------------------------------------------- 1 | // AddFileDialog.cpp : implementation file 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "AddFileDialog.h" 6 | 7 | 8 | #ifdef _DEBUG 9 | #define new DEBUG_NEW 10 | #undef THIS_FILE 11 | static char THIS_FILE[] = __FILE__; 12 | #endif 13 | 14 | ///////////////////////////////////////////////////////////////////////////// 15 | // CAddFileDialog dialog 16 | 17 | //IMPLEMENT_DYNAMIC(CAddFileDialog, CFileDialog) 18 | 19 | CAddFileDialog::CAddFileDialog(BOOL bOpenFileDialog, LPCTSTR lpszDefExt, LPCTSTR lpszFileName, 20 | DWORD dwFlags, LPCTSTR lpszFilter, CWnd* pParentWnd) : 21 | CFileDialog(bOpenFileDialog, lpszDefExt, lpszFileName, dwFlags, lpszFilter, pParentWnd) 22 | { 23 | } 24 | 25 | 26 | 27 | BEGIN_MESSAGE_MAP(CAddFileDialog, CFileDialog) 28 | //{{AFX_MSG_MAP(CAddFileDialog) 29 | //}}AFX_MSG_MAP 30 | END_MESSAGE_MAP() 31 | 32 | ///////////////////////////////////////////////////////////////////////////// 33 | // CAddFileDialog message handlers 34 | 35 | 36 | void CAddFileDialog::OnInitDone() 37 | { 38 | 39 | GetParent()->GetDlgItem(IDOK)->SetWindowText(_T("Choose")); 40 | GetParent()->GetDlgItem(IDCANCEL)->SetWindowText(_T("Cancel")); 41 | 42 | } 43 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/AddFileDialog.h: -------------------------------------------------------------------------------- 1 | #if !defined(AFX_ADDFILEDIALOG_H__3BCEF6C1_C5FC_4E04_9729_6DDAB25DDDD9__INCLUDED_) 2 | #define AFX_ADDFILEDIALOG_H__3BCEF6C1_C5FC_4E04_9729_6DDAB25DDDD9__INCLUDED_ 3 | 4 | #if _MSC_VER > 1000 5 | #pragma once 6 | #endif // _MSC_VER > 1000 7 | // AddFileDialog.h : header file 8 | // 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // CAddFileDialog dialog 12 | 13 | 14 | 15 | 16 | class CAddFileDialog : public CFileDialog 17 | { 18 | // DECLARE_DYNAMIC(CAddFileDialog) 19 | 20 | public: 21 | CAddFileDialog(BOOL bOpenFileDialog, // TRUE for FileOpen, FALSE for FileSaveAs 22 | LPCTSTR lpszDefExt = NULL, 23 | LPCTSTR lpszFileName = NULL, 24 | DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, 25 | LPCTSTR lpszFilter = NULL, 26 | CWnd* pParentWnd = NULL); // standard constructor 27 | 28 | // ~CSelectFolderDialog(); 29 | 30 | virtual void OnInitDone(); 31 | 32 | 33 | 34 | protected: 35 | //{{AFX_MSG(CSelectFolderDialog) 36 | // NOTE - the ClassWizard will add and remove member functions here. 37 | //}}AFX_MSG 38 | DECLARE_MESSAGE_MAP() 39 | 40 | 41 | }; 42 | //{{AFX_INSERT_LOCATION}} 43 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 44 | 45 | #endif // !defined(AFX_ADDFILEDIALOG_H__3BCEF6C1_C5FC_4E04_9729_6DDAB25DDDD9__INCLUDED_) 46 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/EraseDlg.cpp: -------------------------------------------------------------------------------- 1 | // EraseDlg.cpp : implementation file 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "NuWriter.h" 6 | #include "EraseDlg.h" 7 | 8 | 9 | // CEraseDlg dialog 10 | 11 | IMPLEMENT_DYNAMIC(CEraseDlg, CDialog) 12 | 13 | CEraseDlg::CEraseDlg(CWnd* pParent /*=NULL*/) 14 | : CDialog(CEraseDlg::IDD, pParent) 15 | { 16 | m_erase_type=0; 17 | } 18 | 19 | CEraseDlg::~CEraseDlg() 20 | { 21 | } 22 | 23 | void CEraseDlg::DoDataExchange(CDataExchange* pDX) 24 | { 25 | DDX_Control(pDX, IDC_ERASE_STARTSIZENAME, m_startname); 26 | DDX_Control(pDX, IDC_ERASE_SIZENAME, m_sizename); 27 | DDX_Control(pDX, IDC_ERASE_BLOCKS, m_blocks); 28 | DDX_Control(pDX, IDC_ERASE_STARTBLKS, m_sblocks); 29 | DDX_Radio(pDX, IDC_ERASE_RADIO1, m_erase_type); 30 | CDialog::DoDataExchange(pDX); 31 | DDX_Control(pDX, IDC_ERASE_INFO, m_erase_info); 32 | } 33 | 34 | 35 | BEGIN_MESSAGE_MAP(CEraseDlg, CDialog) 36 | ON_BN_CLICKED(IDOK, &CEraseDlg::OnBnClickedOk) 37 | END_MESSAGE_MAP() 38 | 39 | 40 | // CEraseDlg message handlers 41 | 42 | BOOL CEraseDlg::OnInitDialog() 43 | { 44 | CDialog::OnInitDialog(); 45 | 46 | if(!SizeName.IsEmpty()) 47 | m_sizename.SetWindowText(SizeName); 48 | 49 | if(!StartName.IsEmpty()) 50 | m_startname.SetWindowText(StartName); 51 | 52 | if(!EraseInfo.IsEmpty()) 53 | m_erase_info.SetWindowText(EraseInfo); 54 | 55 | CNuWriterDlg* mainWnd=(CNuWriterDlg*)(AfxGetApp()->m_pMainWnd); 56 | CString tmp; 57 | switch(type){ 58 | case 0: /* SPI */ 59 | m_blocks.SetWindowText(mainWnd->m_inifile.GetValue(_T("SPI"),_T("nEBlock"))); 60 | m_sblocks.SetWindowText(mainWnd->m_inifile.GetValue(_T("SPI"),_T("sEBlock"))); 61 | break; 62 | case 1: /* NAND */ 63 | m_blocks.SetWindowText(mainWnd->m_inifile.GetValue(_T("NAND"),_T("nEBlock"))); 64 | m_sblocks.SetWindowText(mainWnd->m_inifile.GetValue(_T("NAND"),_T("sEBlock"))); 65 | break; 66 | case 2: /* MMC */ 67 | m_blocks.SetWindowText(mainWnd->m_inifile.GetValue(_T("MMC"),_T("nEBlock"))); 68 | m_sblocks.SetWindowText(mainWnd->m_inifile.GetValue(_T("MMC"),_T("sEBlock"))); 69 | break; 70 | default: 71 | break; 72 | } 73 | 74 | 75 | //------------------------------------------------------------- 76 | COLORREF col = RGB(0xFF, 0x00, 0xFF); 77 | m_ok.setBitmapId(IDB_CONTINUE, col); 78 | m_ok.setGradient(true); 79 | m_cancel.setBitmapId(IDB_EXIT, col); 80 | m_cancel.setGradient(true); 81 | 82 | return TRUE; // return TRUE unless you set the focus to a control 83 | // EXCEPTION: OCX Property Pages should return FALSE 84 | } 85 | 86 | void CEraseDlg::OnBnClickedOk() 87 | { 88 | m_sblocks.GetWindowText(sblock); //start 89 | m_blocks.GetWindowText(block); //len 90 | 91 | CNuWriterDlg* mainWnd=(CNuWriterDlg*)(AfxGetApp()->m_pMainWnd); 92 | CString tmp; 93 | switch(type){ 94 | case 0: /* SPI */ 95 | m_blocks.GetWindowText(tmp); 96 | mainWnd->m_inifile.SetValue(_T("SPI"),_T("nEBlock"),tmp); 97 | mainWnd->m_inifile.WriteFile(); 98 | 99 | m_sblocks.GetWindowText(tmp); 100 | mainWnd->m_inifile.SetValue(_T("SPI"),_T("sEBlock"),tmp); 101 | mainWnd->m_inifile.WriteFile(); 102 | break; 103 | case 1: /* NAND */ 104 | m_blocks.GetWindowText(tmp); 105 | mainWnd->m_inifile.SetValue(_T("NAND"),_T("nEBlock"),tmp); 106 | mainWnd->m_inifile.WriteFile(); 107 | 108 | m_sblocks.GetWindowText(tmp); 109 | mainWnd->m_inifile.SetValue(_T("NAND"),_T("sEBlock"),tmp); 110 | mainWnd->m_inifile.WriteFile(); 111 | break; 112 | case 2: /* MMC */ 113 | m_blocks.GetWindowText(tmp); 114 | mainWnd->m_inifile.SetValue(_T("MMC"),_T("nEBlock"),tmp); 115 | mainWnd->m_inifile.WriteFile(); 116 | 117 | m_sblocks.GetWindowText(tmp); 118 | mainWnd->m_inifile.SetValue(_T("MMC"),_T("sEBlock"),tmp); 119 | mainWnd->m_inifile.WriteFile(); 120 | break; 121 | default: 122 | break; 123 | } 124 | OnOK(); 125 | } 126 | 127 | BOOL CEraseDlg::OnCommand(WPARAM wParam, LPARAM lParam) 128 | { 129 | UpdateData(TRUE); 130 | switch(m_erase_type) 131 | { 132 | case 0: 133 | m_blocks.EnableWindow(0); 134 | m_sblocks.EnableWindow(0); 135 | break; 136 | case 1: 137 | m_blocks.EnableWindow(1); 138 | m_sblocks.EnableWindow(1); 139 | break; 140 | } 141 | 142 | return CDialog::OnCommand(wParam, lParam); 143 | } -------------------------------------------------------------------------------- /NuWriter/NuWriter/EraseDlg.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "NuWriterDlg.h" 3 | #include "afxwin.h" 4 | 5 | // CEraseDlg dialog 6 | 7 | class CEraseDlg : public CDialog 8 | { 9 | DECLARE_DYNAMIC(CEraseDlg) 10 | 11 | public: 12 | CEraseDlg(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CEraseDlg(); 14 | 15 | // Dialog Data 16 | enum { IDD = IDD_ERASE }; 17 | 18 | protected: 19 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 20 | virtual BOOL OnInitDialog(); 21 | virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); 22 | DECLARE_MESSAGE_MAP() 23 | public: 24 | afx_msg void OnBnClickedOk(); 25 | CEdit m_sblocks; //start block 26 | CEdit m_blocks; //end block 27 | 28 | CString SizeName; 29 | CString StartName; 30 | int type; /* 0:RAWSPI 1:RAWNAND 2:RAWMMC */ 31 | FooButton m_cancel; 32 | FooButton m_ok; 33 | CStatic m_sizename; 34 | CStatic m_startname; 35 | 36 | CString block; 37 | CString sblock; 38 | int m_erase_type; 39 | 40 | CString EraseInfo; 41 | CStatic m_erase_info; 42 | }; 43 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/FastDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/FastDlg.cpp -------------------------------------------------------------------------------- /NuWriter/NuWriter/FastDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/FastDlg.h -------------------------------------------------------------------------------- /NuWriter/NuWriter/FormatDlg.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | #include "SmartEdit.h" 4 | #include "Sliders.h" 5 | 6 | // CFormatDlg dialog 7 | 8 | class CFormatDlg : public CDialog 9 | { 10 | DECLARE_DYNAMIC(CFormatDlg) 11 | 12 | public: 13 | CFormatDlg(CWnd* pParent = NULL); // standard constructor 14 | virtual ~CFormatDlg(); 15 | 16 | // Dialog Data 17 | enum { IDD = IDD_FORMAT }; 18 | 19 | CSmartEdit m_Edit1; 20 | CSmartEdit m_Edit2; 21 | CSmartEdit m_Edit3; 22 | CSmartEdit m_Edit4; 23 | 24 | CLinkSlider m_Slider1; 25 | CLinkSlider m_Slider2; 26 | CLinkSlider m_Slider3; 27 | CLinkSlider m_Slider4; 28 | 29 | protected: 30 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 31 | afx_msg void HScroll( UINT ncode, UINT pos ); 32 | 33 | DECLARE_MESSAGE_MAP() 34 | public: 35 | BOOL m_bInit; 36 | CEdit m_reserve; 37 | afx_msg void OnBnClickedOk(); 38 | CString strResSize, strPartition1Size, strPartition2Size, strPartition3Size, strPartition4Size, strPartitionNum; 39 | int m_PartitionNum; 40 | int TotalSize, TotalMB, resSizeMB, ParTotalMB; 41 | int m_CtrlCnt; 42 | int Partition1Size, Partition2Size, Partition3Size, Partition4Size, PartitionNum, tmpPartition2Size; 43 | virtual BOOL OnInitDialog(); 44 | void InitDialogWnd(bool); 45 | void ButtonCTRL(bool bShow); 46 | void SliderCTRL(bool bShow); 47 | afx_msg void OnBnClickedFormatBtnadd(); 48 | afx_msg void OnBnClickedFormatBtnset(); 49 | afx_msg void OnBnClickedFormatBtnrst(); 50 | CButton m_BtnAdd; 51 | CButton m_BtnSet; 52 | CButton m_BtnRst; 53 | 54 | afx_msg void OnBnClickedButton1(); 55 | }; 56 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/IniFile.h: -------------------------------------------------------------------------------- 1 | // IniFile.h: interface for the CIniFile class. 2 | // Written by: Adam Clauss 3 | // Email: pandcc3@comwerx.net 4 | // You may use this class/code as you wish in your programs. Feel free to distribute it, and 5 | // email suggested changes to me. 6 | ////////////////////////////////////////////////////////////////////// 7 | 8 | #if !defined(AFX_INIFILE_H__D6BE0D97_13A8_11D4_A5D2_002078B03530__INCLUDED_) 9 | #define AFX_INIFILE_H__D6BE0D97_13A8_11D4_A5D2_002078B03530__INCLUDED_ 10 | 11 | #if _MSC_VER > 1000 12 | #pragma once 13 | #endif // _MSC_VER > 1000 14 | 15 | #include "stdafx.h" 16 | 17 | #include 18 | using namespace std; //Tells the compiler that your using the standard namespace 19 | 20 | class CIniFile 21 | { 22 | //all private variables 23 | private: 24 | 25 | //stores pathname of ini file to read/write 26 | CString path; 27 | 28 | //all keys are of this time 29 | struct key 30 | { 31 | //list of values in key 32 | CArray values; 33 | 34 | //corresponding list of value names 35 | CArray names; 36 | }; 37 | 38 | //list of keys in ini 39 | CArray keys; 40 | 41 | //corresponding list of keynames 42 | CArray names; 43 | 44 | 45 | //all private functions 46 | private: 47 | //overloaded to take CString 48 | istream & getline( istream & is, CString & str ); 49 | 50 | //returns index of specified value, in the specified key, or -1 if not found 51 | int FindValue(int keynum, CString valuename); 52 | 53 | //returns index of specified key, or -1 if not found 54 | int FindKey(CString keyname); 55 | 56 | 57 | //public variables 58 | public: 59 | 60 | //will contain error info if one occurs 61 | //ended up not using much, just in ReadFile and GetValue 62 | CString error; 63 | 64 | 65 | //public functions 66 | public: 67 | //default constructor 68 | CIniFile(); 69 | 70 | //constructor, can specify pathname here instead of using SetPath later 71 | CIniFile(CString inipath); 72 | 73 | //default destructor 74 | virtual ~CIniFile(); 75 | 76 | //sets path of ini file to read and write from 77 | void SetPath(CString newpath); 78 | CString GetPath(); 79 | int FindKeyX(CString keyname); 80 | 81 | //reads ini file specified using CIniFile::SetPath() 82 | //returns true if successful, false otherwise 83 | bool ReadFile(); 84 | 85 | //writes data stored in class to ini file 86 | void WriteFile(); 87 | 88 | //deletes all stored ini data 89 | void Reset(); 90 | 91 | //returns number of keys currently in the ini 92 | int GetNumKeys(); 93 | 94 | //returns number of values stored for specified key 95 | int GetNumValues(CString keyname); 96 | 97 | //gets value of [keyname] valuename = 98 | //overloaded to return CString, int, and double, 99 | //returns "", or 0 if key/value not found. Sets error member to show problem 100 | CString GetValue(CString keyname, CString valuename); 101 | int GetValueI(CString keyname, CString valuename); 102 | double GetValueF(CString keyname, CString valuename); 103 | 104 | //sets value of [keyname] valuename =. 105 | //specify the optional paramter as false (0) if you do not want it to create 106 | //the key if it doesn't exist. Returns true if data entered, false otherwise 107 | //overloaded to accept CString, int, and double 108 | bool SetValue(CString key, CString valuename, CString value, bool create = 1); 109 | bool SetValueI(CString key, CString valuename, int value, bool create = 1); 110 | bool SetValueF(CString key, CString valuename, double value, bool create = 1); 111 | 112 | //deletes specified value 113 | //returns true if value existed and deleted, false otherwise 114 | bool DeleteValue(CString keyname, CString valuename); 115 | 116 | //deletes specified key and all values contained within 117 | //returns true if key existed and deleted, false otherwise 118 | bool DeleteKey(CString keyname); 119 | 120 | int GetKeysSize(CString& keyname); 121 | CString EnumKeysValue(CString& keyname,int valuenum); 122 | }; 123 | 124 | #endif // !defined(AFX_INIFILE_H__D6BE0D97_13A8_11D4_A5D2_002078B03530__INCLUDED_) 125 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/InitDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/InitDlg.cpp -------------------------------------------------------------------------------- /NuWriter/NuWriter/InitDlg.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __INITDLG_H__ 3 | #define __INITDLG_H__ 4 | #pragma once 5 | 6 | #include "stdafx.h" 7 | #include "winusb.h" 8 | 9 | #define WM_CLOSEIT WM_USER+6 10 | #define WM_SHOWPROGRESS WM_USER+7 11 | #define FW_CODE 2 12 | 13 | // CInitDlg dialog 14 | 15 | class CInitDlg : public CDialog 16 | { 17 | // DECLARE_DYNAMIC(CInitDlg) 18 | 19 | public: 20 | CInitDlg(CWnd* pParent = NULL); // standard constructor 21 | //virtual ~CInitDlg(); 22 | 23 | // Dialog Data 24 | enum { IDD = IDD_INIT }; 25 | 26 | protected: 27 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 28 | virtual BOOL OnInitDialog(); 29 | DECLARE_MESSAGE_MAP() 30 | 31 | public: 32 | CString m_port; 33 | // CSerial m_vcom; 34 | CProgressCtrl m_progress; 35 | CString m_status; 36 | CString m_version; 37 | int iDevice; 38 | unsigned Thread0, Thread1,Thread2, Thread3, Thread4, Thread5, Thread6, Thread7;//Thread1[8]; 39 | HANDLE hThread0, hThread1,hThread2,hThread3,hThread4,hThread5,hThread6,hThread7;//hThread[8]; 40 | HANDLE m_ExitEvent;//m_ExitEvent[8]; 41 | 42 | VOID SetData(void); 43 | CString GetVersion() { 44 | return m_version; 45 | } 46 | static unsigned WINAPI Download_proc(void* args); 47 | static unsigned WINAPI Download_proc0(void* args); 48 | static unsigned WINAPI Download_proc1(void* args); 49 | static unsigned WINAPI Download_proc2(void* args); 50 | static unsigned WINAPI Download_proc3(void* args); 51 | static unsigned WINAPI Download_proc4(void* args); 52 | static unsigned WINAPI Download_proc5(void* args); 53 | static unsigned WINAPI Download_proc6(void* args); 54 | static unsigned WINAPI Download_proc7(void* args); 55 | static unsigned WINAPI Download_proc8(void* args); 56 | VOID Download(int id); 57 | LRESULT Close( WPARAM p1, LPARAM p2); 58 | LRESULT ShowProgress( WPARAM p1, LPARAM p2); 59 | BOOL XUSB(int id, CString& m_pathName); 60 | BOOL DDRtoDevice(int id, char *buf,unsigned int len); 61 | afx_msg void OnNMCustomdrawDownprogress(NMHDR *pNMHDR, LRESULT *pResult); 62 | afx_msg void OnClose(); 63 | }; 64 | 65 | #endif -------------------------------------------------------------------------------- /NuWriter/NuWriter/MMCDlg.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CMMCDlg dialog 6 | 7 | class CMMCDlg : public CDialog 8 | { 9 | DECLARE_DYNAMIC(CMMCDlg) 10 | 11 | public: 12 | CMMCDlg(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CMMCDlg(); 14 | 15 | // Dialog Data 16 | enum { IDD = IDD_MMC }; 17 | 18 | protected: 19 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 20 | virtual BOOL OnInitDialog(); 21 | virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); 22 | LRESULT ShowStatus( WPARAM pos, LPARAM message); 23 | DECLARE_MESSAGE_MAP() 24 | public: 25 | 26 | CReportCtrl m_imagelist; 27 | CString m_filename; 28 | CString m_filename2; 29 | CString m_blocks; 30 | CString m_sblocks; 31 | CString m_imagename; 32 | HANDLE m_ExitEvent; 33 | CProgressCtrl m_progress; 34 | BOOL XUSB_PackErase(int id, CString& portName, CString& m_pathName); 35 | BOOL XUSB_Pack(CString& portName,CString& m_pathName,int *len); 36 | BOOL XUSB_Burn(CString& portName,CString& m_pathName,int *len); 37 | static unsigned WINAPI Download_proc(void* args); 38 | void Download(); 39 | 40 | BOOL XUSB_Verify(CString& portName,CString& m_pathName); 41 | static unsigned WINAPI Verify_proc(void* args); 42 | void Verify(); 43 | 44 | BOOL XUSB_Read(CString& portName,CString& m_pathName,unsigned int addr,unsigned int len); 45 | static unsigned WINAPI Read_proc(void* args); 46 | void Read(); 47 | 48 | BOOL XUSB_Format(CString& portName); 49 | static unsigned WINAPI Format_proc(void* args); 50 | void Format(); 51 | 52 | 53 | afx_msg void OnBnClickedMmcDownload(); 54 | afx_msg void OnBnClickedMmcFormat(); 55 | afx_msg void OnBnClickedMmcVerify(); 56 | afx_msg void OnBnClickedMmcRead(); 57 | afx_msg void OnBnClickedMmcEraseall(); 58 | afx_msg void OnBnClickedMmcBrowse(); 59 | 60 | // FooButton 61 | FooButton m_format; 62 | FooButton m_eraseall; 63 | FooButton m_read; 64 | FooButton m_verify; 65 | FooButton m_burn; 66 | FooButton m_browse; 67 | afx_msg void OnBnClickedMmcEncE(); 68 | CButton m_mmc_enc_check; 69 | CComboBox m_combo_encrypt; 70 | int m_type; 71 | 72 | CString m_startblock; 73 | CString m_execaddr; 74 | 75 | 76 | NORBOOT_MMC_HEAD *m_fhead; 77 | CString TmpOffset; 78 | int TmpOffsetFlag; 79 | BOOL InitFile(int flag); 80 | int InitFlag; 81 | afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); 82 | CString m_space, strPartition1Size, strPartition2Size, strPartition3Size, strPartition4Size, strPartitionNum; 83 | CStatic m_status; 84 | 85 | char *encbuf; 86 | unsigned int enclen; 87 | }; 88 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/MTPDlg.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CMTPDlg dialog 6 | 7 | class CMTPDlg : public CDialog 8 | { 9 | DECLARE_DYNAMIC(CMTPDlg) 10 | 11 | public: 12 | CMTPDlg(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CMTPDlg(); 14 | 15 | // Dialog Data 16 | enum { IDD = IDD_MTP }; 17 | 18 | protected: 19 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 20 | virtual BOOL OnInitDialog(); 21 | virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); 22 | DECLARE_MESSAGE_MAP() 23 | public: 24 | FooButton m_burn; 25 | FooButton m_modify; 26 | afx_msg void OnBnClickedMtpBrowse(); 27 | afx_msg void OnBnClickedMtpDownload(); 28 | afx_msg void OnBnClickedMtpModify(); 29 | CComboBox m_combo_encrypt; 30 | HANDLE m_ExitEvent; 31 | int m_mtp_option; 32 | int m_mtp_mode; 33 | int m_mtp_encrypt; 34 | CProgressCtrl m_progress; 35 | CString m_filename; 36 | LRESULT ShowStatus( WPARAM pos, LPARAM message); 37 | BOOL XUSB_Burn(CString& portName,CString& m_pathName); 38 | static unsigned WINAPI Download_proc(void* args); 39 | VOID Download(); 40 | BOOL InitFile(int flag); 41 | afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 42 | CStatic m_pstatus; 43 | CString m_aesfilename; 44 | CStatic m_mtp_status; 45 | CString m_shafilename; 46 | }; 47 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/NANDDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/NANDDlg.cpp -------------------------------------------------------------------------------- /NuWriter/NuWriter/NANDDlg.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CNANDDlg dialog 6 | 7 | class CNANDDlg : public CDialog 8 | { 9 | DECLARE_DYNAMIC(CNANDDlg) 10 | 11 | public: 12 | CNANDDlg(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CNANDDlg(); 14 | 15 | // Dialog Data 16 | enum { IDD = IDD_NAND }; 17 | 18 | protected: 19 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 20 | virtual BOOL OnInitDialog(); 21 | virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); 22 | LRESULT ShowStatus( WPARAM pos, LPARAM message); 23 | DECLARE_MESSAGE_MAP() 24 | public: 25 | afx_msg void OnBnClickedNandDownload(); 26 | 27 | BOOL CNANDDlg::XUSB_Pack(CString& portName,CString& m_pathName,int *len); 28 | BOOL XUSB_Burn(CString& portName,CString& m_pathName,int *len,int *blockNum); 29 | BOOL XUSB_BurnWithOOB(CString& portName,CString& m_pathName,int *len,int *blockNum); 30 | static unsigned WINAPI Download_proc(void* args); 31 | void Download(); 32 | 33 | int XUSB_Verify(CString& portName,CString& m_pathName); 34 | static unsigned WINAPI Verify_proc(void* args); 35 | void Verify(); 36 | 37 | BOOL XUSB_Read(CString& portName,CString& m_pathName,unsigned int addr,unsigned int len); 38 | BOOL XUSB_Read_Redunancy(CString& portName,CString& m_pathName,unsigned int addr,unsigned int len); 39 | static unsigned WINAPI Read_proc(void* args); 40 | void Read(); 41 | 42 | BOOL XUSB_Erase(CString& portName); 43 | static unsigned WINAPI Erase_proc(void* args); 44 | void Erase(); 45 | 46 | 47 | CReportCtrl m_imagelist; 48 | CString m_filename; 49 | CString m_filename2; 50 | CString m_blocks; 51 | CString m_sblocks; 52 | int m_erase_flag; 53 | CString m_imagename; 54 | HANDLE m_ExitEvent; 55 | CProgressCtrl m_progress; 56 | FooButton m_burn; 57 | FooButton m_verify; 58 | FooButton m_read; 59 | FooButton m_eraseall; 60 | FooButton m_browse; 61 | afx_msg void OnBnClickedNandVerify(); 62 | afx_msg void OnBnClickedNandRead(); 63 | afx_msg void OnBnClickedNandEraseall(); 64 | afx_msg void OnBnClickedNandBrowse(); 65 | CButton m_nand_enc_check; 66 | CComboBox m_combo_encrypt; 67 | afx_msg void OnBnClickedNandEncE(); 68 | int m_type; 69 | 70 | CString m_startblock; 71 | CString m_execaddr; 72 | 73 | NORBOOT_NAND_HEAD *m_fhead; 74 | CString TmpOffset; 75 | int TmpOffsetFlag; 76 | BOOL InitFile(int flag); 77 | int InitFlag; 78 | afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); 79 | CStatic m_status; 80 | 81 | char *encbuf; 82 | unsigned int enclen; 83 | afx_msg void OnBnClickedNandTypeA(); 84 | afx_msg void OnBnClickedNandUsrconfig(); 85 | CButton m_nandflash_check; 86 | }; 87 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/NandInfoDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/NandInfoDlg.cpp -------------------------------------------------------------------------------- /NuWriter/NuWriter/NandInfoDlg.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/NandInfoDlg.h -------------------------------------------------------------------------------- /NuWriter/NuWriter/NuWriter.cpp: -------------------------------------------------------------------------------- 1 | // NuWriter.cpp : Defines the class behaviors for the application. 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "NuWriter.h" 6 | #include "NuWriterDlg.h" 7 | 8 | #ifdef _DEBUG 9 | #define new DEBUG_NEW 10 | #endif 11 | 12 | 13 | // CNuWriterApp 14 | 15 | BEGIN_MESSAGE_MAP(CNuWriterApp, CWinApp) 16 | ON_COMMAND(ID_HELP, &CWinApp::OnHelp) 17 | END_MESSAGE_MAP() 18 | 19 | 20 | // CNuWriterApp construction 21 | 22 | CNuWriterApp::CNuWriterApp() 23 | { 24 | // TODO: add construction code here, 25 | // Place all significant initialization in InitInstance 26 | setlocale(LC_ALL, ""); 27 | TRACE(_T("setlocale() \n")); 28 | } 29 | 30 | 31 | // The one and only CNuWriterApp object 32 | 33 | CNuWriterApp theApp; 34 | 35 | 36 | // CNuWriterApp initialization 37 | 38 | BOOL CNuWriterApp::InitInstance() 39 | { 40 | // InitCommonControlsEx() is required on Windows XP if an application 41 | // manifest specifies use of ComCtl32.dll version 6 or later to enable 42 | // visual styles. Otherwise, any window creation will fail. 43 | INITCOMMONCONTROLSEX InitCtrls; 44 | InitCtrls.dwSize = sizeof(InitCtrls); 45 | // Set this to include all the common control classes you want to use 46 | // in your application. 47 | InitCtrls.dwICC = ICC_WIN95_CLASSES; 48 | InitCommonControlsEx(&InitCtrls); 49 | 50 | CWinApp::InitInstance(); 51 | 52 | AfxEnableControlContainer(); 53 | 54 | // Standard initialization 55 | // If you are not using these features and wish to reduce the size 56 | // of your final executable, you should remove from the following 57 | // the specific initialization routines you do not need 58 | // Change the registry key under which our settings are stored 59 | // TODO: You should modify this string to be something appropriate 60 | // such as the name of your company or organization 61 | SetRegistryKey(_T("Local AppWizard-Generated Applications")); 62 | 63 | CNuWriterDlg dlg; 64 | m_pMainWnd = &dlg; 65 | INT_PTR nResponse = dlg.DoModal(); 66 | if (nResponse == IDOK) { 67 | // TODO: Place code here to handle when the dialog is 68 | // dismissed with OK 69 | } else if (nResponse == IDCANCEL) { 70 | // TODO: Place code here to handle when the dialog is 71 | // dismissed with Cancel 72 | } 73 | 74 | // Since the dialog has been closed, return FALSE so that we exit the 75 | // application, rather than start the application's message pump. 76 | return FALSE; 77 | } 78 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/NuWriter.h: -------------------------------------------------------------------------------- 1 | // NuWriter.h : main header file for the PROJECT_NAME application 2 | // 3 | 4 | #pragma once 5 | 6 | #ifndef __AFXWIN_H__ 7 | #error "include 'stdafx.h' before including this file for PCH" 8 | #endif 9 | 10 | #include "resource.h" // main symbols 11 | 12 | 13 | // CNuWriterApp: 14 | // See NuWriter.cpp for the implementation of this class 15 | // 16 | 17 | class CNuWriterApp : public CWinApp 18 | { 19 | public: 20 | CNuWriterApp(); 21 | 22 | // Overrides 23 | public: 24 | virtual BOOL InitInstance(); 25 | 26 | // Implementation 27 | 28 | DECLARE_MESSAGE_MAP() 29 | }; 30 | 31 | extern CNuWriterApp theApp; -------------------------------------------------------------------------------- /NuWriter/NuWriter/NuWriter.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/NuWriter.rc -------------------------------------------------------------------------------- /NuWriter/NuWriter/NuWriterDlg.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/NuWriterDlg.cpp -------------------------------------------------------------------------------- /NuWriter/NuWriter/NucWinUsb.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef NUCWINUSP_H 3 | #define NUCWINUSP_H 4 | 5 | // Include WinUSB headers 6 | //#include "stdafx.h" 7 | //#include "NuWriter.h" 8 | //#include "NuWriterDlg.h" 9 | #define STRSAFE_NO_DEPRECATE 10 | 11 | extern "C" { 12 | #include "enumser.h" 13 | //#include "strsafe.h" 14 | #include "winusb.h" 15 | #include 16 | #include 17 | #include 18 | } 19 | 20 | #include 21 | 22 | #include 23 | 24 | //using namespace std; 25 | 26 | static const GUID OSR_DEVICE_INTERFACE[] = 27 | { 0xD696BFEB, 0x1734, 0x417d, { 0x8A, 0x04, 0x86,0xD0,0x10,0x71,0xC5,0x12 } }; 28 | 29 | #if 0 30 | typedef enum _DOWNMETHOD { 31 | SDRAM=0, 32 | NOR, 33 | RAWNOR, 34 | NAND, 35 | RAWNAND, 36 | SPI, 37 | RAWSPI, 38 | NOR_IMAGELIST, 39 | NAND_IMAGELIST, 40 | SPI_IMAGELIST, 41 | NORTYPE 42 | 43 | } DOWNMETHOD; 44 | #endif 45 | 46 | typedef struct PIPE_ID { 47 | UCHAR PipeInId; 48 | UCHAR PipeOutId; 49 | } Pipe_Id,*PPipe_Id; 50 | 51 | typedef struct WINUSBHANDLE { 52 | BOOL HandlesOpen; //add handlesopen for device open display 53 | HANDLE hDeviceHandle; 54 | WINUSB_INTERFACE_HANDLE hUSBHandle; 55 | Pipe_Id pipeid; 56 | CString DevicePath; 57 | } SWinUsbHandle,*PSWinUsbHandle; 58 | 59 | #define MAX_DEVICE_NUM 32 60 | class CNucWinUsb { 61 | public: 62 | CNucWinUsb(); 63 | SWinUsbHandle WinUsbHandle[MAX_DEVICE_NUM]; 64 | int CNucWinUsb::WinUsbNumber; 65 | int m_ActiveDevice; 66 | 67 | UCHAR DeviceSpeed; 68 | 69 | BOOL EnableWinUsbDevice(void); 70 | BOOL NUC_WritePipe(int id,UCHAR *buf,ULONG len); 71 | //BOOL NUC_WriteAck(int id,ULONG len); 72 | BOOL NUC_SetType(int id,USHORT type,UCHAR * ack,ULONG len); 73 | BOOL NUC_ReadPipe(int id,UCHAR *buf,ULONG len); 74 | void NUC_CloseHandle(void); 75 | BOOL NUC_CheckFw(int id); 76 | 77 | BOOL EnableOneWinUsbDevice(int id); 78 | BOOL OpenDevice( int id ); 79 | BOOL CloseWinUsbDevice(int id); 80 | BOOL UsbDevice_Detect(void); 81 | BOOL NUC_SetDeviceLEDOn(int id); 82 | BOOL NUC_SetDeviceLEDOff(int id); 83 | BOOL CNucWinUsb::NUC_BulkOutTest(int id,UCHAR *buf,ULONG len); 84 | BOOL NUC_ResetFW(int id); 85 | HANDLE m_hReadEvent; 86 | int retrycnt[8]; 87 | 88 | protected: 89 | BOOL GetDeviceHandle(void); 90 | BOOL GetWinUSBHandle(void); 91 | BOOL GetUSBDeviceSpeed(void); 92 | BOOL QueryDeviceEndpoints(void); 93 | 94 | BOOL GetOneUSBDeviceSpeed( int id ); 95 | BOOL QueryOneDeviceEndpoints( int id ); 96 | 97 | }; 98 | 99 | //static CNucWinUsb NucUsb; //shanchun 100 | extern CNucWinUsb NucUsb; //shanchun 101 | #endif -------------------------------------------------------------------------------- /NuWriter/NuWriter/PACKDlg.h: -------------------------------------------------------------------------------- 1 | #ifndef __PACKDLG_H__ 2 | #define __PACKDLG_H__ 3 | 4 | #pragma once 5 | 6 | #include "afxwin.h" 7 | #include "NuWriterDlg.h" 8 | #include 9 | #include "afxcmn.h" 10 | 11 | #include "PackTab1.h" 12 | #include "PackTab2.h" 13 | // CPACKDlg dialog 14 | 15 | class CPACKDlg : public CDialog 16 | { 17 | DECLARE_DYNAMIC(CPACKDlg) 18 | 19 | public: 20 | CPACKDlg(CWnd* pParent = NULL); // standard constructor 21 | virtual ~CPACKDlg(); 22 | 23 | // Dialog Data 24 | enum { IDD = IDD_PACK }; 25 | 26 | protected: 27 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 28 | virtual BOOL OnInitDialog(); 29 | virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); 30 | DECLARE_MESSAGE_MAP() 31 | public: 32 | afx_msg void OnBnClickedPackAdd(); 33 | afx_msg void OnBnClickedPackModify(); 34 | afx_msg void OnBnClickedPackDelete(); 35 | afx_msg void OnBnClickedPackOutput(); 36 | //afx_msg void OnBnClickedPackEncE(); 37 | 38 | CReportCtrl m_imagelist; 39 | 40 | CString m_filename2; 41 | CString m_blocks; 42 | HANDLE m_ExitEvent; 43 | CProgressCtrl m_progress; 44 | 45 | 46 | //CString m_filename; 47 | //CString m_imagename; 48 | //CString m_startblock; 49 | //CString m_execaddr; 50 | //int m_type; 51 | //CButton m_pack_enc_check; 52 | //CComboBox m_combo_encrypt; 53 | //CString m_encryptName; 54 | 55 | //FooButton m_browse; 56 | FooButton m_add; 57 | FooButton m_modify; 58 | FooButton m_delete; 59 | FooButton m_output; 60 | 61 | std::vector ImageName; 62 | std::vector ImageType; 63 | std::vector ImageExec; 64 | std::vector ImageStartblock; 65 | std::vector ImageEnc; 66 | std::vector ImageEncName; 67 | 68 | CString TmpOffset; 69 | int TmpOffsetFlag; 70 | int modifyflag; 71 | 72 | static unsigned WINAPI Output_proc(void* args); 73 | int Output(); 74 | BOOL InitFile(int flag); 75 | int InitFlag; 76 | afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); 77 | afx_msg void OnNMDblclkPackImagelist(NMHDR *pNMHDR, LRESULT *pResult); 78 | 79 | BOOL FileExist(CString strFileName); 80 | CStatic m_status; 81 | CTabCtrl m_pack_tabcontrol; 82 | 83 | CPackTab1 m_packtab1; 84 | CPackTab2 m_packtab2; 85 | void SwapTab(void); 86 | afx_msg void OnTcnSelchangePackTabcontrol(NMHDR *pNMHDR, LRESULT *pResult); 87 | }; 88 | 89 | #endif -------------------------------------------------------------------------------- /NuWriter/NuWriter/PackTab1.h: -------------------------------------------------------------------------------- 1 | #ifndef __PACTAB1_H__ 2 | #define __PACTAB1_H__ 3 | 4 | #pragma once 5 | 6 | #include "afxwin.h" 7 | #include "NuWriterDlg.h" 8 | #include 9 | #include "afxcmn.h" 10 | // CPackTab1 dialog 11 | 12 | class CPackTab1 : public CDialog 13 | { 14 | DECLARE_DYNAMIC(CPackTab1) 15 | 16 | public: 17 | CPackTab1(CWnd* pParent = NULL); // standard constructor 18 | virtual ~CPackTab1(); 19 | 20 | // Dialog Data 21 | enum { IDD = IDD_PACK_TAB1 }; 22 | 23 | protected: 24 | virtual BOOL OnInitDialog(); 25 | virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); 26 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 27 | 28 | DECLARE_MESSAGE_MAP() 29 | public: 30 | afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); 31 | afx_msg void OnBnClickedPackBrowse(); 32 | afx_msg void OnBnClickedPackEncE(); 33 | FooButton m_browse; 34 | CString m_filename; 35 | CString m_imagename; 36 | CString m_startblock; 37 | CString m_execaddr; 38 | int m_type; 39 | CButton m_pack_enc_check; 40 | CComboBox m_combo_encrypt; 41 | CString m_encryptName; 42 | 43 | CString TmpOffset; 44 | int TmpOffsetFlag; 45 | int modifyflag; 46 | MMC_FORMAT_INFO mmcfomat_info; 47 | void mmcFormat(); 48 | afx_msg void OnBnClickedPackTypeA3(); 49 | }; 50 | 51 | #endif //__PACTAB1_H__ -------------------------------------------------------------------------------- /NuWriter/NuWriter/PackTab2.h: -------------------------------------------------------------------------------- 1 | #ifndef __PACTAB2_H__ 2 | #define __PACTAB2_H__ 3 | 4 | #pragma once 5 | 6 | #include "afxwin.h" 7 | #include "NuWriterDlg.h" 8 | #include 9 | #include "afxcmn.h" 10 | // CPackTab2 dialog 11 | 12 | class CPackTab2 : public CDialog 13 | { 14 | DECLARE_DYNAMIC(CPackTab2) 15 | 16 | public: 17 | CPackTab2(CWnd* pParent = NULL); // standard constructor 18 | virtual ~CPackTab2(); 19 | 20 | // Dialog Data 21 | enum { IDD = IDD_PACK_TAB2 }; 22 | 23 | protected: 24 | virtual BOOL OnInitDialog(); 25 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 26 | 27 | DECLARE_MESSAGE_MAP() 28 | public: 29 | afx_msg void OnBnClickedPackMtpModify(); 30 | virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); 31 | int m_mtp_option; 32 | int m_mtp_mode; 33 | int m_mtp_encrypt; 34 | CComboBox m_combo_encrypt; 35 | HANDLE m_ExitEvent; 36 | FooButton m_modify; 37 | afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 38 | CString m_aesfilename; 39 | CString m_shafilename; 40 | }; 41 | 42 | #endif //__PACTAB2_H__ -------------------------------------------------------------------------------- /NuWriter/NuWriter/RAMDlg.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __RAMDLG_H__ 3 | #define __RAMDLG_H__ 4 | #pragma once 5 | 6 | 7 | // CRAMDlg dialog 8 | #include "NuWriterDlg.h" 9 | #include "afxwin.h" 10 | 11 | class CRAMDlg : public CDialog 12 | { 13 | DECLARE_DYNAMIC(CRAMDlg) 14 | 15 | public: 16 | CRAMDlg(CWnd* pParent = NULL); // standard constructor 17 | virtual ~CRAMDlg(); 18 | 19 | // Dialog Data 20 | enum { IDD = IDD_SDRAM }; 21 | 22 | protected: 23 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 24 | virtual BOOL OnInitDialog(); 25 | DECLARE_MESSAGE_MAP() 26 | public: 27 | afx_msg void OnBnClickedSdramDownload(); 28 | afx_msg void OnBnClickedSdramBrowse(); 29 | CProgressCtrl m_progress; 30 | CString m_fileinfo; 31 | CString m_dtbinfo; 32 | CString m_address; 33 | CString m_dtbaddress; 34 | HANDLE m_ExitEvent; 35 | CString m_filename; 36 | CString m_dtbname; 37 | CStatic sdramstatus; 38 | int m_autorun; 39 | 40 | BOOL XUSB(CString& portName,CString& m_pathName,CString address,int autorun); 41 | void Download(); 42 | static unsigned WINAPI Download_proc(void* args); 43 | LRESULT ShowStatus( WPARAM pos, LPARAM message); 44 | virtual BOOL PreTranslateMessage(MSG* pMsg); 45 | afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 46 | 47 | FooButton m_download; 48 | FooButton m_browse; 49 | FooButton m_dtbbrowse; 50 | CButton m_dtb_en; 51 | 52 | BOOL InitFile(int flag); 53 | int InitFlag; 54 | afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); 55 | afx_msg void OnBnClickedDtbBrowse(); 56 | afx_msg void OnBnClickedDtbEn(); 57 | }; 58 | 59 | #endif 60 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/ReadMe.txt: -------------------------------------------------------------------------------- 1 | ================================================================================ 2 | MICROSOFT FOUNDATION CLASS LIBRARY : NuWriter Project Overview 3 | =============================================================================== 4 | 5 | The application wizard has created this NuWriter application for 6 | you. This application not only demonstrates the basics of using the Microsoft 7 | Foundation Classes but is also a starting point for writing your application. 8 | 9 | This file contains a summary of what you will find in each of the files that 10 | make up your NuWriter application. 11 | 12 | NuWriter.vcproj 13 | This is the main project file for VC++ projects generated using an application wizard. 14 | It contains information about the version of Visual C++ that generated the file, and 15 | information about the platforms, configurations, and project features selected with the 16 | application wizard. 17 | 18 | NuWriter.h 19 | This is the main header file for the application. It includes other 20 | project specific headers (including Resource.h) and declares the 21 | CNuWriterApp application class. 22 | 23 | NuWriter.cpp 24 | This is the main application source file that contains the application 25 | class CNuWriterApp. 26 | 27 | NuWriter.rc 28 | This is a listing of all of the Microsoft Windows resources that the 29 | program uses. It includes the icons, bitmaps, and cursors that are stored 30 | in the RES subdirectory. This file can be directly edited in Microsoft 31 | Visual C++. Your project resources are in 1033. 32 | 33 | res\NuWriter.ico 34 | This is an icon file, which is used as the application's icon. This 35 | icon is included by the main resource file NuWriter.rc. 36 | 37 | res\NuWriter.rc2 38 | This file contains resources that are not edited by Microsoft 39 | Visual C++. You should place all resources not editable by 40 | the resource editor in this file. 41 | 42 | 43 | ///////////////////////////////////////////////////////////////////////////// 44 | 45 | The application wizard creates one dialog class: 46 | 47 | NuWriterDlg.h, NuWriterDlg.cpp - the dialog 48 | These files contain your CNuWriterDlg class. This class defines 49 | the behavior of your application's main dialog. The dialog's template is 50 | in NuWriter.rc, which can be edited in Microsoft Visual C++. 51 | 52 | 53 | ///////////////////////////////////////////////////////////////////////////// 54 | 55 | Other Features: 56 | 57 | ActiveX Controls 58 | The application includes support to use ActiveX controls. 59 | 60 | ///////////////////////////////////////////////////////////////////////////// 61 | 62 | Other standard files: 63 | 64 | StdAfx.h, StdAfx.cpp 65 | These files are used to build a precompiled header (PCH) file 66 | named NuWriter.pch and a precompiled types file named StdAfx.obj. 67 | 68 | Resource.h 69 | This is the standard header file, which defines new resource IDs. 70 | Microsoft Visual C++ reads and updates this file. 71 | 72 | NuWriter.manifest 73 | Application manifest files are used by Windows XP to describe an applications 74 | dependency on specific versions of Side-by-Side assemblies. The loader uses this 75 | information to load the appropriate assembly from the assembly cache or private 76 | from the application. The Application manifest maybe included for redistribution 77 | as an external .manifest file that is installed in the same folder as the application 78 | executable or it may be included in the executable in the form of a resource. 79 | ///////////////////////////////////////////////////////////////////////////// 80 | 81 | Other notes: 82 | 83 | The application wizard uses "TODO:" to indicate parts of the source code you 84 | should add to or customize. 85 | 86 | If your application uses MFC in a shared DLL, you will need 87 | to redistribute the MFC DLLs. If your application is in a language 88 | other than the operating system's locale, you will also have to 89 | redistribute the corresponding localized resources MFC90XXX.DLL. 90 | For more information on both of these topics, please see the section on 91 | redistributing Visual C++ applications in MSDN documentation. 92 | 93 | ///////////////////////////////////////////////////////////////////////////// 94 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/NuWriter.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/Release/NuWriter.exe -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/key_cfg/key.dat: -------------------------------------------------------------------------------- 1 | 256 2 | 0x34125243 3 | 0xc41a9087 4 | 0xa14cae80 5 | 0xc4c38790 6 | 0x672ca187 7 | 0xd4f785a1 8 | 0x562fa1c5 9 | 0x78561198 10 | 11 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/path.ini: -------------------------------------------------------------------------------- 1 | [SDRAM] 2 | PATH=C:\MS10_WorkZone\MPU\NUC970\linux_5_10\FW070TFT_800x480\970image_800x480_rgb888 3 | TYPE=1 4 | EXEADDR=8000 5 | DTBEN=1 6 | DTB_UIEN=1 7 | DTBPATH=C:\MS10_WorkZone\MPU\NUC970\linux_5_10\FW070TFT_800x480\nuc972-evb_800x480_rgb888.dtb 8 | DTBADDR=1400000 9 | 10 | [NAND] 11 | PATH=C:\Nuwriter_Image\Kernel_ImageFile\nand_env.txt 12 | TYPE=1 13 | EXECADDR=200 14 | OFFSET=80000 15 | ENC_EN=0 16 | ENC_SEL=-1 17 | SAVEPATH=C:\22222.bin 18 | nBlock=1 19 | sBlock=0 20 | nEBlock=128 21 | sEBlock=176 22 | 23 | [RAWNOR] 24 | PATH=C:\Nuvoton-work\Work_tmp\ubuntu_shared 25 | 26 | [NOR] 27 | PATH=C:\Nuvoton-work\Work_tmp\ubuntu_shared 28 | 29 | [RAWSPI] 30 | PATH=C: 31 | SAVEPATH=C:\Nuvoton-work\nuc900-turbo_writer\nuc970\unicode\turboburn-v2.5-unicode-20140606\Release\Boot 32 | nBlock=4 33 | 34 | [SPI] 35 | PATH=C:\Nuwriter_Image\NUC970\SPI\bb 36 | TYPE=0 37 | EXECADDR=e00000 38 | OFFSET=200000 39 | ENC_EN=0 40 | ENC_SEL=-1 41 | SAVEPATH=C:\123456.bin 42 | nBlock=300 43 | sBlock=0 44 | nEBlock=25 45 | sEBlock=487 46 | 47 | [DEFAULT] 48 | PAGE_IDX=0 49 | 50 | [TARGET] 51 | CHIP=0 52 | DDR=12 53 | DDRADDRESS=16 54 | TimeEnable=1 55 | Timeus=5000 56 | OTPOption=0 57 | OTPMode=3 58 | ChipEraseWithBad=0 59 | ChipReadWithBad=1 60 | ChipWriteWithOOB=0 61 | FirstDelay=500 62 | 63 | [RAWNAND] 64 | PATH=C: 65 | 66 | [eMMC] 67 | PATH=C:\BSP Library\BSP\NUC980\Implement_Nuwriter\NUC980_Image\1101_NUC980_IMG\U-Boot\eMMC_SD 68 | 69 | [MMC] 70 | PATH=C:\BSP Library\BSP\NUC980\Implement_Nuwriter\NUC980_Image\1101_NUC980_IMG\U-Boot\eMMC_SD\u-boot.bin 71 | TYPE=2 72 | EXECADDR=e00000 73 | OFFSET=400 74 | ENC_EN=0 75 | ENC_SEL=-1 76 | =AVEPATH 77 | nBlock=8196 78 | sBlock=0 79 | nEBlock=20 80 | sEBlock=0 81 | SAVEPATH=C:\noPartition.bin 82 | 83 | [MTP] 84 | MTPOption=1 85 | MTPMode=3 86 | MTPEncrypt=1 87 | 88 | [PACK] 89 | PATH=C:\Nuwriter_Image\Kernel_ImageFile\spi_env.txt 90 | IMAGENUM=3 91 | NAME00=C:\Nuwriter_Image\Kernel_ImageFile\UBoot_2016\Main_U-Boot\EnvInSPI\u-boot.bin 92 | TYPE00=2 93 | ENC00= 94 | EXEC00=E00000 95 | STARTBLOCK00=0 96 | NAME01=C:\Nuwriter_Image\Kernel_ImageFile\spi_env.txt 97 | TYPE01=1 98 | ENC01= 99 | EXEC01=E00000 100 | STARTBLOCK01=80000 101 | NAME02=C:\BSP Library\BSP\NUC980\Implement_Nuwriter\NUC980_Image\TestImage\TestBin_16352kB.bin 102 | TYPE02=0 103 | ENC02= 104 | EXEC02=E00000 105 | STARTBLOCK02=200000 106 | NAME03=C:\BSP Library\NUC970\nuwriter\[TraceCode]NuWriterSW\Image file\git_kernel\970uimage 107 | TYPE03=0 108 | ENC03= 109 | EXEC03=200 110 | STARTBLOCK03=200000 111 | 112 | [NAND_INFO] 113 | uBlockPerFlash=1024 114 | uPagePerBlock=64 115 | 116 | [Mass_Production] 117 | PATH=C:\Nuwriter_Image\NUC970\SPI\bb 118 | TYPE=1 119 | 120 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/N9H30F51I.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000005 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0x55AA55AA=0x1 44 | 0x55AA55AA=0x1 45 | 0x55AA55AA=0x1 46 | 0xB0000218=0x00000008 47 | 0xB8003060=0x00000033 48 | 0xB80030A0=0x00007FFF 49 | 0xB80030E0=0x0000FF00 50 | 0xB8003120=0x0000FFFC 51 | 0xB8003160=0x0000F800 52 | 0xB80031A0=0x0000803C 53 | 0xB80031E0=0x0000FFFC 54 | 0xB8003220=0x00000007 55 | 0xB000022C=0x00000100 56 | 0xB000022C=0x00000100 57 | 0xB000022C=0x00000100 58 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/N9H30F51IEC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000005 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0x55AA55AA=0x1 44 | 0x55AA55AA=0x1 45 | 0x55AA55AA=0x1 46 | 0xB0000218=0x00000008 47 | 0xB8003060=0x00000033 48 | 0xB80030A0=0x00007FFF 49 | 0xB80030E0=0x0000FF00 50 | 0xB8003120=0x0000FFFC 51 | 0xB8003160=0x0000F800 52 | 0xB80031A0=0x0000803C 53 | 0xB80031E0=0x0000FFFC 54 | 0xB8003220=0x00000007 55 | 0xB000022C=0x00000100 56 | 0xB000022C=0x00000100 57 | 0xB000022C=0x00000100 58 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/N9H30F61IE.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/N9H30F61IEC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/N9H30F63IEC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/N9H30F71IE.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53EB384A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00010476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000007 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/N9H30F71IEC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53EB384A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00010476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000007 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/N9H30K41I.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001808=0x00008030 7 | 0x55AA55AA=0x1 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0xB0001800=0x00030456 11 | 0x55AA55AA=0x1 12 | 0xB0001804=0x00000021 13 | 0x55AA55AA=0x1 14 | 0xB0001804=0x00000023 15 | 0x55AA55AA=0x1 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0xB0001804=0x00000027 19 | 0x55AA55AA=0x1 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0xB0001820=0x00000000 23 | 0xB0001824=0x00000000 24 | 0xB000181C=0x00004000 25 | 0xB0001818=0x00000332 26 | 0xB0001810=0x00000004 27 | 0xB0001804=0x00000027 28 | 0x55AA55AA=0x1 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0xB0001804=0x0000002B 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001818=0x00000832 35 | 0xB000181C=0x00004781 36 | 0xB000181C=0x00004405 37 | 0xB0001804=0x00000020 38 | 0xB0001834=0x00888820 39 | 0x55AA55AA=0x1 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0xB0000218=0x00000008 43 | 0xB8003060=0x00000033 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FFFC 50 | 0xB8003220=0x00000007 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/N9H30K41IEC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001808=0x00008030 7 | 0x55AA55AA=0x1 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0xB0001800=0x00030456 11 | 0x55AA55AA=0x1 12 | 0xB0001804=0x00000021 13 | 0x55AA55AA=0x1 14 | 0xB0001804=0x00000023 15 | 0x55AA55AA=0x1 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0xB0001804=0x00000027 19 | 0x55AA55AA=0x1 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0xB0001820=0x00000000 23 | 0xB0001824=0x00000000 24 | 0xB000181C=0x00004000 25 | 0xB0001818=0x00000332 26 | 0xB0001810=0x00000004 27 | 0xB0001804=0x00000027 28 | 0x55AA55AA=0x1 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0xB0001804=0x0000002B 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001818=0x00000832 35 | 0xB000181C=0x00004781 36 | 0xB000181C=0x00004405 37 | 0xB0001804=0x00000020 38 | 0xB0001834=0x00888820 39 | 0x55AA55AA=0x1 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0xB0000218=0x00000008 43 | 0xB8003060=0x00000033 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FFFC 50 | 0xB8003220=0x00000007 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/N9H30K61I.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/N9H30K63IEC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/N9H31K51IFC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000005 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0x55AA55AA=0x1 44 | 0x55AA55AA=0x1 45 | 0x55AA55AA=0x1 46 | 0xB0000218=0x00000008 47 | 0xB8003060=0x00000033 48 | 0xB80030A0=0x00007FFF 49 | 0xB80030E0=0x0000FF00 50 | 0xB8003120=0x0000FFFC 51 | 0xB8003160=0x0000F800 52 | 0xB80031A0=0x0000803C 53 | 0xB80031E0=0x0000FFFC 54 | 0xB8003220=0x00000007 55 | 0xB000022C=0x00000100 56 | 0xB000022C=0x00000100 57 | 0xB000022C=0x00000100 58 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC972DF51Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000005 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0x55AA55AA=0x1 44 | 0x55AA55AA=0x1 45 | 0x55AA55AA=0x1 46 | 0xB0000218=0x00000008 47 | 0xB8003060=0x00000033 48 | 0xB80030A0=0x00007FFF 49 | 0xB80030E0=0x0000FF00 50 | 0xB8003120=0x0000FFFC 51 | 0xB8003160=0x0000F800 52 | 0xB80031A0=0x0000803C 53 | 0xB80031E0=0x0000FFFC 54 | 0xB8003220=0x00000007 55 | 0xB000022C=0x00000100 56 | 0xB000022C=0x00000100 57 | 0xB000022C=0x00000100 58 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC972DF61Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC972DF61YC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC972DF62Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001808=0x00008030 7 | 0x55AA55AA=0x1 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0xB0001800=0x00030476 11 | 0x55AA55AA=0x1 12 | 0xB0001804=0x00000021 13 | 0x55AA55AA=0x1 14 | 0xB0001804=0x00000023 15 | 0x55AA55AA=0x1 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0xB0001804=0x00000027 19 | 0x55AA55AA=0x1 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0xB0001820=0x00000000 23 | 0xB0001824=0x00000000 24 | 0xB000181C=0x00004000 25 | 0xB0001818=0x00000332 26 | 0xB0001810=0x00000006 27 | 0xB0001804=0x00000027 28 | 0x55AA55AA=0x1 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0xB0001804=0x0000002B 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001818=0x00000232 35 | 0xB000181C=0x00004781 36 | 0xB000181C=0x00004401 37 | 0xB0001804=0x00000020 38 | 0xB0001834=0x00888820 39 | 0x55AA55AA=0x1 40 | 0xB0000218=0x00000008 41 | 0xB8003160=0x00008000 42 | 0xB80031A0=0x00008000 43 | 0xB000022C=0x00000100 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC972DF63Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC972DF63YC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC972DF71Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53EB384A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00010476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000007 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC972DF71YC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53EB384A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00010476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000007 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC973DF62Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001808=0x00008030 7 | 0x55AA55AA=0x1 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0xB0001800=0x00030476 11 | 0x55AA55AA=0x1 12 | 0xB0001804=0x00000021 13 | 0x55AA55AA=0x1 14 | 0xB0001804=0x00000023 15 | 0x55AA55AA=0x1 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0xB0001804=0x00000027 19 | 0x55AA55AA=0x1 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0xB0001820=0x00000000 23 | 0xB0001824=0x00000000 24 | 0xB000181C=0x00004000 25 | 0xB0001818=0x00000332 26 | 0xB0001810=0x00000006 27 | 0xB0001804=0x00000027 28 | 0x55AA55AA=0x1 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0xB0001804=0x0000002B 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001818=0x00000232 35 | 0xB000181C=0x00004781 36 | 0xB000181C=0x00004401 37 | 0xB0001804=0x00000020 38 | 0xB0001834=0x00888820 39 | 0xB000022C=0x00000100 40 | 0xB000022C=0x00000100 41 | 0xB000022C=0x00000100 42 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC975DK51Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000005 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0x55AA55AA=0x1 44 | 0x55AA55AA=0x1 45 | 0x55AA55AA=0x1 46 | 0xB0000218=0x00000008 47 | 0xB8003060=0x00000033 48 | 0xB80030A0=0x00007FFF 49 | 0xB80030E0=0x0000FF00 50 | 0xB8003120=0x0000FFFC 51 | 0xB8003160=0x0000F800 52 | 0xB80031A0=0x0000803C 53 | 0xB80031E0=0x0000FFFC 54 | 0xB8003220=0x00000007 55 | 0xB000022C=0x00000100 56 | 0xB000022C=0x00000100 57 | 0xB000022C=0x00000100 58 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC975DK61Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC975DK62Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001808=0x00008030 7 | 0x55AA55AA=0x1 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0xB0001800=0x00030476 11 | 0x55AA55AA=0x1 12 | 0xB0001804=0x00000021 13 | 0x55AA55AA=0x1 14 | 0xB0001804=0x00000023 15 | 0x55AA55AA=0x1 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0xB0001804=0x00000027 19 | 0x55AA55AA=0x1 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0xB0001820=0x00000000 23 | 0xB0001824=0x00000000 24 | 0xB000181C=0x00004000 25 | 0xB0001818=0x00000332 26 | 0xB0001810=0x00000006 27 | 0xB0001804=0x00000027 28 | 0x55AA55AA=0x1 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0xB0001804=0x0000002B 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001818=0x00000232 35 | 0xB000181C=0x00004781 36 | 0xB000181C=0x00004401 37 | 0xB0001804=0x00000020 38 | 0xB0001834=0x00888820 39 | 0xB000022C=0x00000100 40 | 0xB000022C=0x00000100 41 | 0xB000022C=0x00000100 42 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC975DK63Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC975DK63YC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC976DK41Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001808=0x00008030 7 | 0x55AA55AA=0x1 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0xB0001800=0x00030456 11 | 0x55AA55AA=0x1 12 | 0xB0001804=0x00000021 13 | 0x55AA55AA=0x1 14 | 0xB0001804=0x00000023 15 | 0x55AA55AA=0x1 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0xB0001804=0x00000027 19 | 0x55AA55AA=0x1 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0xB0001820=0x00000000 23 | 0xB0001824=0x00000000 24 | 0xB000181C=0x00004000 25 | 0xB0001818=0x00000332 26 | 0xB0001810=0x00000004 27 | 0xB0001804=0x00000027 28 | 0x55AA55AA=0x1 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0xB0001804=0x0000002B 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001818=0x00000832 35 | 0xB000181C=0x00004781 36 | 0xB000181C=0x00004405 37 | 0xB0001804=0x00000020 38 | 0xB0001834=0x00888820 39 | 0x55AA55AA=0x1 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0xB0000218=0x00000008 43 | 0xB8003060=0x00000033 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FFFC 50 | 0xB8003220=0x00000007 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC976DK51Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000005 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0x55AA55AA=0x1 44 | 0x55AA55AA=0x1 45 | 0x55AA55AA=0x1 46 | 0xB0000218=0x00000008 47 | 0xB8003060=0x00000033 48 | 0xB80030A0=0x00007FFF 49 | 0xB80030E0=0x0000FF00 50 | 0xB8003120=0x0000FFFC 51 | 0xB8003160=0x0000F800 52 | 0xB80031A0=0x0000803C 53 | 0xB80031E0=0x0000FFFC 54 | 0xB8003220=0x00000007 55 | 0xB000022C=0x00000100 56 | 0xB000022C=0x00000100 57 | 0xB000022C=0x00000100 58 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC976DK61Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC976DK61YC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC976DK62Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001808=0x00008030 7 | 0x55AA55AA=0x1 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0xB0001800=0x00030476 11 | 0x55AA55AA=0x1 12 | 0xB0001804=0x00000021 13 | 0x55AA55AA=0x1 14 | 0xB0001804=0x00000023 15 | 0x55AA55AA=0x1 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0xB0001804=0x00000027 19 | 0x55AA55AA=0x1 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0xB0001820=0x00000000 23 | 0xB0001824=0x00000000 24 | 0xB000181C=0x00004000 25 | 0xB0001818=0x00000332 26 | 0xB0001810=0x00000006 27 | 0xB0001804=0x00000027 28 | 0x55AA55AA=0x1 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0xB0001804=0x0000002B 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001818=0x00000232 35 | 0xB000181C=0x00004781 36 | 0xB000181C=0x00004401 37 | 0xB0001804=0x00000020 38 | 0xB0001834=0x00888820 39 | 0x55AA55AA=0x1 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0xB0000218=0x00000008 43 | 0xB8003060=0x00000033 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FFFC 50 | 0xB8003220=0x00000007 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC976DK63Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC976DK63YC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC977DK41Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001808=0x00008030 7 | 0x55AA55AA=0x1 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0xB0001800=0x00030456 11 | 0x55AA55AA=0x1 12 | 0xB0001804=0x00000021 13 | 0x55AA55AA=0x1 14 | 0xB0001804=0x00000023 15 | 0x55AA55AA=0x1 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0xB0001804=0x00000027 19 | 0x55AA55AA=0x1 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0xB0001820=0x00000000 23 | 0xB0001824=0x00000000 24 | 0xB000181C=0x00004000 25 | 0xB0001818=0x00000332 26 | 0xB0001810=0x00000004 27 | 0xB0001804=0x00000027 28 | 0x55AA55AA=0x1 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0xB0001804=0x0000002B 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001818=0x00000832 35 | 0xB000181C=0x00004781 36 | 0xB000181C=0x00004405 37 | 0xB0001804=0x00000020 38 | 0xB0001834=0x00888820 39 | 0xB000022C=0x00000100 40 | 0xB000022C=0x00000100 41 | 0xB000022C=0x00000100 42 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC977DK51Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000005 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC977DK61Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC977DK61YC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC977DK62Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001808=0x00008030 7 | 0x55AA55AA=0x1 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0xB0001800=0x00030476 11 | 0x55AA55AA=0x1 12 | 0xB0001804=0x00000021 13 | 0x55AA55AA=0x1 14 | 0xB0001804=0x00000023 15 | 0x55AA55AA=0x1 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0xB0001804=0x00000027 19 | 0x55AA55AA=0x1 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0xB0001820=0x00000000 23 | 0xB0001824=0x00000000 24 | 0xB000181C=0x00004000 25 | 0xB0001818=0x00000332 26 | 0xB0001810=0x00000006 27 | 0xB0001804=0x00000027 28 | 0x55AA55AA=0x1 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0xB0001804=0x0000002B 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001818=0x00000232 35 | 0xB000181C=0x00004781 36 | 0xB000181C=0x00004401 37 | 0xB0001804=0x00000020 38 | 0xB0001834=0x00888820 39 | 0xB0000218=0x00000008 40 | 0xB80030A0=0x00007FFF 41 | 0xB80030E0=0x0000FF00 42 | 0xB8003120=0x0000FFFC 43 | 0xB8003160=0x0000F800 44 | 0xB80031A0=0x0000803C 45 | 0xB80031E0=0x0000FF7C 46 | 0xB8003220=0x00000001 47 | 0xB000022C=0x00000100 48 | 0xB000022C=0x00000100 49 | 0xB000022C=0x00000100 50 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC977DK63Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC977DK63YC.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC977DK71Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53EB384A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00010476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000007 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC978DK41Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001808=0x00008030 7 | 0x55AA55AA=0x1 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0xB0001800=0x00030456 11 | 0x55AA55AA=0x1 12 | 0xB0001804=0x00000021 13 | 0x55AA55AA=0x1 14 | 0xB0001804=0x00000023 15 | 0x55AA55AA=0x1 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0xB0001804=0x00000027 19 | 0x55AA55AA=0x1 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0xB0001820=0x00000000 23 | 0xB0001824=0x00000000 24 | 0xB000181C=0x00004000 25 | 0xB0001818=0x00000332 26 | 0xB0001810=0x00000004 27 | 0xB0001804=0x00000027 28 | 0x55AA55AA=0x1 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0xB0001804=0x0000002B 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001818=0x00000832 35 | 0xB000181C=0x00004781 36 | 0xB000181C=0x00004405 37 | 0xB0001804=0x00000020 38 | 0xB0001834=0x00888820 39 | 0x55AA55AA=0x1 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0xB0000218=0x00000008 43 | 0xB8003060=0x00000033 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FFFC 50 | 0xB8003220=0x00000007 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC978DK51Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000005 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0x55AA55AA=0x1 44 | 0x55AA55AA=0x1 45 | 0x55AA55AA=0x1 46 | 0xB0000218=0x00000008 47 | 0xB8003060=0x00000033 48 | 0xB80030A0=0x00007FFF 49 | 0xB80030E0=0x0000FF00 50 | 0xB8003120=0x0000FFFC 51 | 0xB8003160=0x0000F800 52 | 0xB80031A0=0x0000803C 53 | 0xB80031E0=0x0000FFFC 54 | 0xB8003220=0x00000007 55 | 0xB000022C=0x00000100 56 | 0xB000022C=0x00000100 57 | 0xB000022C=0x00000100 58 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/NUC978DK61Y.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/SCM601L216UE-XXX-40401752.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/SCM601L216UE-XXX-40402132.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/SCM601L216UE.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/SCM602L128UE-XXX-40401752.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/SCM602L128UE-XXX-40402132.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/SCM602L128UE.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000006 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/SCM603L128UE.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53DCD84A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00030476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000005 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0x55AA55AA=0x1 42 | 0x55AA55AA=0x1 43 | 0xB0000218=0x00000008 44 | 0xB80030A0=0x00007FFF 45 | 0xB80030E0=0x0000FF00 46 | 0xB8003120=0x0000FFFC 47 | 0xB8003160=0x0000F800 48 | 0xB80031A0=0x0000803C 49 | 0xB80031E0=0x0000FF7C 50 | 0xB8003220=0x00000001 51 | 0xB000022C=0x00000100 52 | 0xB000022C=0x00000100 53 | 0xB000022C=0x00000100 54 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/sys_cfg/SCM604L216VE.ini: -------------------------------------------------------------------------------- 1 | 0xB0000220=0x01000000 2 | 0xB0000264=0xC0000018 3 | 0xB0000220=0x01000018 4 | 0x55AA55AA=0x1 5 | 0x55AA55AA=0x1 6 | 0xB0001828=0x53EB384A 7 | 0xB0001808=0x00008014 8 | 0x55AA55AA=0x1 9 | 0x55AA55AA=0x1 10 | 0x55AA55AA=0x1 11 | 0xB0001800=0x00010476 12 | 0x55AA55AA=0x1 13 | 0xB0001804=0x00000021 14 | 0x55AA55AA=0x1 15 | 0xB0001804=0x00000023 16 | 0x55AA55AA=0x1 17 | 0x55AA55AA=0x1 18 | 0x55AA55AA=0x1 19 | 0xB0001804=0x00000027 20 | 0x55AA55AA=0x1 21 | 0x55AA55AA=0x1 22 | 0x55AA55AA=0x1 23 | 0xB0001820=0x00000000 24 | 0xB0001824=0x00000000 25 | 0xB000181C=0x00004000 26 | 0xB0001818=0x00000332 27 | 0xB0001810=0x00000007 28 | 0xB0001804=0x00000027 29 | 0x55AA55AA=0x1 30 | 0x55AA55AA=0x1 31 | 0x55AA55AA=0x1 32 | 0xB0001804=0x0000002B 33 | 0xB0001804=0x0000002B 34 | 0xB0001804=0x0000002B 35 | 0xB0001818=0x00000232 36 | 0xB000181C=0x00004781 37 | 0xB000181C=0x00004401 38 | 0xB0001804=0x00000020 39 | 0xB0001834=0x00888820 40 | 0x55AA55AA=0x1 41 | 0xB0000218=0x00000008 42 | 0xB8003160=0x00008000 43 | 0xB80031A0=0x00008000 44 | 0xB000022C=0x00000100 45 | 0xB000022C=0x00000100 46 | 0xB000022C=0x00000100 -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/xusb.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/Release/xusb.bin -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/xusb128.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/Release/xusb128.bin -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/xusb16.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/Release/xusb16.bin -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/xusb32.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/Release/xusb32.bin -------------------------------------------------------------------------------- /NuWriter/NuWriter/Release/xusb64.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/Release/xusb64.bin -------------------------------------------------------------------------------- /NuWriter/NuWriter/SPIDlg.h: -------------------------------------------------------------------------------- 1 | #ifndef __SPIDLG_H__ 2 | #define __SPIDLG_H__ 3 | 4 | #pragma once 5 | #include "afxwin.h" 6 | #include "NuWriterDlg.h" 7 | 8 | 9 | // CSPIDlg dialog 10 | 11 | class CSPIDlg : public CDialog 12 | { 13 | DECLARE_DYNAMIC(CSPIDlg) 14 | 15 | public: 16 | CSPIDlg(CWnd* pParent = NULL); // standard constructor 17 | virtual ~CSPIDlg(); 18 | 19 | // Dialog Data 20 | enum { IDD = IDD_SPI }; 21 | 22 | protected: 23 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 24 | virtual BOOL OnInitDialog(); 25 | virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); 26 | LRESULT ShowStatus( WPARAM pos, LPARAM message); 27 | DECLARE_MESSAGE_MAP() 28 | public: 29 | afx_msg void OnBnClickedSpiDownload(); 30 | BOOL XUSB_Pack(CString& portName,CString& m_pathName,int *len); 31 | BOOL XUSB_Burn(CString& portName,CString& m_pathName,int *len); 32 | static unsigned WINAPI Download_proc(void* args); 33 | void Download(); 34 | 35 | afx_msg void OnBnClickedSpiVerify(); 36 | BOOL XUSB_Verify(CString& portName,CString& m_pathName); 37 | static unsigned WINAPI Verify_proc(void* args); 38 | void Verify(); 39 | 40 | afx_msg void OnBnClickedSpiRead(); 41 | BOOL XUSB_Read(CString& portName,CString& m_pathName,unsigned int addr,unsigned int len); 42 | //BOOL XUSB_Read(CString& portName,CString& m_pathName); 43 | static unsigned WINAPI Read_proc(void* args); 44 | void Read(); 45 | 46 | afx_msg void OnBnClickedSpiEraseall(); 47 | BOOL XUSB_Erase(CString& portName); 48 | static unsigned WINAPI Erase_proc(void* args); 49 | void Erase(); 50 | 51 | CReportCtrl m_imagelist; 52 | CString m_filename; 53 | CString m_filename2; 54 | CString m_blocks; 55 | CString m_sblocks; 56 | int m_erase_flag; 57 | HANDLE m_ExitEvent; 58 | CProgressCtrl m_progress; 59 | 60 | CString m_imagename; 61 | CString m_startblock; 62 | CString m_execaddr; 63 | int m_type; 64 | 65 | CButton m_spi_enc_check; 66 | CComboBox m_combo_encrypt; 67 | 68 | NORBOOT_NAND_HEAD *m_fhead; 69 | FooButton m_burn; 70 | FooButton m_verify; 71 | FooButton m_read; 72 | FooButton m_eraseall; 73 | FooButton m_browse; 74 | 75 | //CSPIReadDlg read_dlg; 76 | int nblock; 77 | afx_msg void OnBnClickedSpiBrowse(); 78 | afx_msg void OnBnClickedSpiEncE(); 79 | 80 | CString TmpOffset; 81 | int TmpOffsetFlag; 82 | BOOL InitFile(int flag); 83 | int InitFlag; 84 | afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); 85 | CStatic m_status; 86 | 87 | char *encbuf; 88 | unsigned int enclen; 89 | }; 90 | 91 | #endif -------------------------------------------------------------------------------- /NuWriter/NuWriter/SPIReadDlg.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __SPIREADDLG_H__ 3 | #define __SPIREADDLG_H__ 4 | 5 | #include "NuWriterDlg.h" 6 | #include "afxwin.h" 7 | 8 | #pragma once 9 | 10 | 11 | // CSPIReadDlg dialog 12 | 13 | class CReadDlg : public CDialog 14 | { 15 | DECLARE_DYNAMIC(CReadDlg) 16 | 17 | public: 18 | CReadDlg(CWnd* pParent = NULL); // standard constructor 19 | virtual ~CReadDlg(); 20 | 21 | // Dialog Data 22 | enum { IDD = IDD_READ }; 23 | 24 | protected: 25 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 26 | virtual BOOL OnInitDialog(); 27 | DECLARE_MESSAGE_MAP() 28 | public: 29 | afx_msg void OnBnClickedButton1(); 30 | 31 | CString m_filename2; 32 | CString m_fileinfo2; //savepath 33 | 34 | CEdit m_sblocks; //start block 35 | CEdit m_blocks; //end block 36 | afx_msg void OnBnClickedSpireadBroswse(); 37 | FooButton m_browse; 38 | afx_msg void OnBnClickedOk(); 39 | CString block; 40 | CString sblock; 41 | 42 | CString SizeName; 43 | int type; /* 0:RAWSPI 1:RAWNAND 2:RAWMMC */ 44 | CStatic m_sizename; 45 | CString _path; 46 | FooButton m_cancel; 47 | FooButton m_ok; 48 | CStatic m_filepath; 49 | CStatic m_startname; 50 | CString StartName; 51 | }; 52 | 53 | #endif -------------------------------------------------------------------------------- /NuWriter/NuWriter/SelChipDlg.cpp: -------------------------------------------------------------------------------- 1 | // SelChipDlg.cpp : implementation file 2 | // 3 | 4 | #include "stdafx.h" 5 | #include "NuWriterDlg.h" 6 | #include "SelChipDlg.h" 7 | 8 | 9 | // CSelChipDlg dialog 10 | 11 | IMPLEMENT_DYNAMIC(CSelChipDlg, CDialog) 12 | 13 | CSelChipDlg::CSelChipDlg(CWnd* pParent /*=NULL*/) 14 | : CDialog(CSelChipDlg::IDD, pParent) 15 | { 16 | 17 | } 18 | 19 | CSelChipDlg::~CSelChipDlg() 20 | { 21 | } 22 | 23 | void CSelChipDlg::DoDataExchange(CDataExchange* pDX) 24 | { 25 | CDialog::DoDataExchange(pDX); 26 | DDX_Control(pDX, IDC_COMBO1, m_chip); 27 | DDX_Control(pDX, IDC_COMBO_DDR, m_ddrtype); 28 | DDX_Control(pDX, IDC_STATIC_DDR_PAR, m_ddr_static); 29 | DDX_Control(pDX, IDOK, m_countinue); 30 | DDX_Control(pDX, IDC_CHECK1, m_check); 31 | DDX_Control(pDX, IDCANCEL, m_quit); 32 | } 33 | 34 | 35 | BEGIN_MESSAGE_MAP(CSelChipDlg, CDialog) 36 | ON_BN_CLICKED(IDOK, &CSelChipDlg::OnBnClickedOk) 37 | ON_CBN_SELCHANGE(IDC_COMBO1, &CSelChipDlg::OnCbnSelchangeCombo1) 38 | ON_BN_CLICKED(IDC_CHECK1, &CSelChipDlg::OnBnClickedCheck1) 39 | ON_WM_TIMER() 40 | ON_CBN_DROPDOWN(IDC_COMBO_DDR, &CSelChipDlg::OnCbnDropdownComboDdr) 41 | ON_CBN_DROPDOWN(IDC_COMBO1, &CSelChipDlg::OnCbnDropdownCombo1) 42 | END_MESSAGE_MAP() 43 | 44 | 45 | // CSelChipDlg message handlers 46 | inline BOOL CSelChipDlg::OnInitDialog() 47 | { 48 | CDialog::OnInitDialog(); 49 | SetWindowPos(&this->wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE); 50 | CNuWriterDlg* mainWnd=(CNuWriterDlg*)(AfxGetApp()->m_pMainWnd); 51 | 52 | this->SetWindowText(PROJECT_NAME); 53 | 54 | m_chip.AddString(_T("NUC970/N9H30/N9H31 series")); 55 | m_chip.SetCurSel(0); 56 | 57 | //init DDR & key dirctory------------------------------------------------ 58 | DDRBuf=NULL; 59 | mainWnd->GetExeDir(szDirForDDR); 60 | szDirForDDR=szDirForDDR+_T("sys_cfg\\"); 61 | //---Check ddr dirctory has how much *.ini------------------------------- 62 | vector sList; 63 | vector::iterator item; 64 | 65 | mainWnd->LoadDirINI(szDirForDDR,_T(".ini"),sList); 66 | int count=0; 67 | for(item=sList.begin();item!=sList.end();item++) 68 | m_ddrtype.AddString(*item); 69 | m_ddrtype.SetCurSel(mainWnd->DDR_Idx); 70 | //----------------------------------------------------------------------- 71 | DisplayFormat(); 72 | 73 | TimeString=_T("Continue(%d)"); 74 | 75 | 76 | 77 | if(mainWnd->TimeEn) 78 | { 79 | CString tmp; 80 | Counter=mainWnd->Timeus/1000; 81 | m_check.SetCheck(1); 82 | tmp.Format(TimeString,Counter); 83 | m_countinue.SetWindowText(tmp); 84 | if(mainWnd->Timeus<1000) 85 | SetTimer(0,mainWnd->Timeus,NULL); //1 second to interrupt 86 | else 87 | SetTimer(0,1000,NULL); //1 second to interrupt 88 | }else 89 | m_check.SetCheck(0); 90 | 91 | COLORREF col = RGB(0xFF, 0x00, 0xFF); 92 | m_countinue.setBitmapId(IDB_CONTINUE, col); 93 | m_countinue.setGradient(true); 94 | m_quit.setBitmapId(IDB_EXIT, col); 95 | m_quit.setGradient(true); 96 | return TRUE; 97 | } 98 | 99 | 100 | void CSelChipDlg::DisplayFormat() 101 | { 102 | #if 1 103 | m_ddr_static.EnableWindow(1); 104 | m_ddrtype.EnableWindow(1); 105 | #else 106 | switch(m_chip.GetCurSel()) 107 | { 108 | case NUC900_SERIES: 109 | m_ddr_static.EnableWindow(0); 110 | m_ddrtype.EnableWindow(0); 111 | break; 112 | 113 | case NUC970_SERIES: 114 | m_ddr_static.EnableWindow(1); 115 | m_ddrtype.EnableWindow(1); 116 | break; 117 | } 118 | #endif 119 | } 120 | 121 | void CSelChipDlg::OnBnClickedOk() 122 | { 123 | CNuWriterDlg* mainWnd=(CNuWriterDlg*)(AfxGetApp()->m_pMainWnd); 124 | CString ddrName; 125 | mainWnd->TargetChip=m_chip.GetCurSel(); 126 | mainWnd->DDR_Idx=m_ddrtype.GetCurSel(); 127 | 128 | m_ddrtype.GetLBText(m_ddrtype.GetCurSel(),ddrName); 129 | mainWnd->DDRFileFullPath.Format(_T("%s%s"),szDirForDDR,ddrName); 130 | mainWnd->DDRFileName.Format(_T("%s"),ddrName); 131 | if(m_check.GetCheck()==TRUE) 132 | mainWnd->TimeEn=1; 133 | else 134 | mainWnd->TimeEn=0; 135 | 136 | OnOK(); 137 | } 138 | 139 | void CSelChipDlg::OnCbnSelchangeCombo1() 140 | { 141 | DisplayFormat(); 142 | } 143 | 144 | void CSelChipDlg::OnTimer(UINT_PTR nIDEvent) 145 | { 146 | if(Counter>0) 147 | { 148 | CString tmp; 149 | Counter--; 150 | tmp.Format(TimeString,Counter); 151 | m_countinue.SetWindowText(tmp); 152 | }else 153 | { 154 | KillTimer(0); 155 | OnBnClickedOk(); 156 | } 157 | 158 | 159 | CDialog::OnTimer(nIDEvent); 160 | } 161 | 162 | void CSelChipDlg::OnBnClickedCheck1() 163 | { 164 | CNuWriterDlg* mainWnd=(CNuWriterDlg*)(AfxGetApp()->m_pMainWnd); 165 | 166 | if(m_check.GetCheck()==TRUE) 167 | { 168 | mainWnd->TimeEn=TRUE; 169 | CString tmp; 170 | Counter=mainWnd->Timeus/1000; 171 | m_check.SetCheck(TRUE); 172 | tmp.Format(TimeString,Counter); 173 | m_countinue.SetWindowText(tmp); 174 | SetTimer(0,1000,NULL); //1 second to interrupt 175 | 176 | }else{ 177 | mainWnd->TimeEn=FALSE; 178 | KillTimer(FALSE); 179 | m_countinue.SetWindowText(_T("Continue")); 180 | } 181 | 182 | } 183 | 184 | void CSelChipDlg::OnCbnDropdownComboDdr() 185 | { 186 | KillTimer(0); 187 | } 188 | 189 | void CSelChipDlg::OnCbnDropdownCombo1() 190 | { 191 | KillTimer(0); 192 | } -------------------------------------------------------------------------------- /NuWriter/NuWriter/SelChipDlg.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "afxwin.h" 3 | 4 | 5 | // CSelChipDlg dialog 6 | 7 | class CSelChipDlg : public CDialog 8 | { 9 | DECLARE_DYNAMIC(CSelChipDlg) 10 | 11 | public: 12 | CSelChipDlg(CWnd* pParent = NULL); // standard constructor 13 | virtual ~CSelChipDlg(); 14 | 15 | // Dialog Data 16 | enum { IDD = IDD_TARGET_CHIP }; 17 | 18 | protected: 19 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 20 | virtual BOOL OnInitDialog(); 21 | void DisplayFormat(); 22 | DECLARE_MESSAGE_MAP() 23 | public: 24 | CString szDirForDDR; 25 | char *DDRBuf; 26 | 27 | afx_msg void OnBnClickedOk(); 28 | CComboBox m_chip; 29 | CComboBox m_ddrtype; 30 | CStatic m_ddr_static; 31 | 32 | int Counter; 33 | CString TimeString; 34 | public: 35 | afx_msg void OnCbnSelchangeCombo1(); 36 | public: 37 | afx_msg void OnTimer(UINT_PTR nIDEvent); 38 | public: 39 | FooButton m_countinue; 40 | FooButton m_quit; 41 | CButton m_check; 42 | 43 | afx_msg void OnBnClickedCheck1(); 44 | afx_msg void OnCbnDropdownComboDdr(); 45 | afx_msg void OnCbnDropdownCombo1(); 46 | 47 | }; 48 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/Sliders.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Sliders.cpp - the slider subclassing module 3 | // 4 | /////////////////////////////////////////////////////////////////// 5 | // 6 | // Copyright (C) 1998 Rick York - Feel free to use this as 7 | // you wish provided that this notice remains intact and 8 | // a small credit is given (like in an about box :). 9 | // 10 | // This class is used to link a slider with an edit box 11 | // for coordinated updates. 12 | // 13 | /////////////////////////////////////////////////////////////////// 14 | // 15 | //@tabs=4 16 | 17 | #include "Stdafx.h" 18 | #include "Sliders.h" 19 | #include "SmartEdit.h" 20 | 21 | 22 | #ifdef _DEBUG 23 | #define new DEBUG_NEW 24 | #endif 25 | 26 | 27 | AfxApi CLinkSlider * GetLinkSlider( CWnd *pcwnd, int id ) 28 | { 29 | return (CLinkSlider *)pcwnd->GetDlgItem( id ); 30 | } 31 | 32 | 33 | /////////////////////////////////////////////////////////// 34 | 35 | 36 | BEGIN_MESSAGE_MAP(CLinkSlider, CSliderCtrl) 37 | //{{AFX_MSG_MAP(CLinkSlider) 38 | ON_WM_HSCROLL_REFLECT() 39 | ON_WM_VSCROLL_REFLECT() 40 | //}}AFX_MSG_MAP 41 | END_MESSAGE_MAP() 42 | 43 | 44 | CLinkSlider::CLinkSlider() : CSliderCtrl() 45 | { 46 | m_pEdit = NULL; 47 | m_iPosition = INT_MAX; 48 | m_bVertical = FALSE; 49 | } 50 | 51 | 52 | void CLinkSlider::SetEditLink( CSmartEdit *pedit ) 53 | { 54 | m_pEdit = pedit; 55 | DWORD style = GetStyle(); 56 | if( style & TBS_VERT ) 57 | m_bVertical = TRUE; 58 | } 59 | 60 | 61 | void CLinkSlider::SetSlidePos( const int pos ) 62 | { 63 | if( m_bVertical ) 64 | m_iPosition = m_iMax - ( pos - m_iMin ); 65 | else 66 | m_iPosition = pos; 67 | 68 | SetPos( m_iPosition ); 69 | } 70 | 71 | 72 | void CLinkSlider::SetSlideRange( const int imin, const int imax ) 73 | { 74 | m_iMin = imin; 75 | m_iMax = imax; 76 | SetRange( m_iMin, m_iMax ); 77 | } 78 | 79 | 80 | void CLinkSlider::HScroll( UINT ncode, UINT pos ) 81 | { 82 | CSliderCtrl::OnHScroll( ncode, pos, NULL ); 83 | if( ! m_pEdit ) 84 | return; 85 | 86 | switch( ncode ) 87 | { 88 | case TB_PAGEUP : 89 | case TB_PAGEDOWN : 90 | m_iPosition = GetPos(); 91 | m_pEdit->UpdateEdit( m_iPosition ); 92 | break; 93 | 94 | case TB_THUMBTRACK : 95 | m_iPosition = pos; 96 | m_pEdit->UpdateEdit( pos ); 97 | break; 98 | } 99 | } 100 | 101 | 102 | void CLinkSlider::VScroll( UINT ncode, UINT pos ) 103 | { 104 | CSliderCtrl::OnVScroll( ncode, pos, NULL ); 105 | if( ! m_pEdit ) 106 | return; 107 | 108 | switch( ncode ) 109 | { 110 | // we have to play some games with vertical sliders - 111 | // max position is on the bottom and min is on the top 112 | 113 | case TB_PAGEUP : 114 | case TB_PAGEDOWN : 115 | m_iPosition = m_iMax - ( GetPos() - m_iMin ); 116 | m_pEdit->UpdateEdit( m_iPosition ); 117 | break; 118 | 119 | case TB_THUMBTRACK : 120 | m_iPosition = m_iMax - ( pos - m_iMin ); 121 | m_pEdit->UpdateEdit( m_iPosition ); 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/Sliders.h: -------------------------------------------------------------------------------- 1 | // 2 | // Sliders.h - header for slider subclassing module 3 | // 4 | /////////////////////////////////////////////////////////////////// 5 | // 6 | // Copyright (C) 1998 Rick York - Feel free to use this as 7 | // you wish provided that this notice remains intact and 8 | // a small credit is given (like in an about box :). 9 | // 10 | // This class is used to link a slider with an edit box 11 | // for coordinated updates. 12 | // 13 | /////////////////////////////////////////////////////////////////// 14 | // 15 | //@tabs=4 16 | 17 | #ifdef _SLIDERS_H 18 | #error repeated include of this file 19 | #else // _SLIDERS_H 20 | #define _SLIDERS_H 21 | #endif // _SLIDERS_H 22 | 23 | 24 | #ifndef __cplusplus 25 | #error this is file may be used in C++ only 26 | #endif 27 | 28 | 29 | #ifndef AfxExt 30 | 31 | #ifdef EXTENSION_DLL // define this if controls are in a DLL 32 | #define AfxExt AFX_EXT_CLASS 33 | #define AfxApi AFX_EXT_API 34 | #else // EXTENSION_DLL 35 | #define AfxExt // controls are NOT in a DLL 36 | #define AfxApi 37 | #endif // EXTENSION_DLL 38 | 39 | #endif // AfxExt 40 | 41 | 42 | class AfxExt CSmartEdit; 43 | 44 | 45 | class AfxExt CLinkSlider : public CSliderCtrl 46 | { 47 | public: 48 | // Construction 49 | CLinkSlider(); 50 | 51 | CSmartEdit * m_pEdit; 52 | 53 | int m_iMin; 54 | int m_iMax; 55 | int m_iPosition; 56 | BOOL m_bVertical; 57 | 58 | void SetSlidePos( const int pos ); 59 | void SetSlideRange( const int min, const int max ); 60 | 61 | void SetEditLink( CSmartEdit *pedit ); 62 | 63 | // Implementation 64 | protected: 65 | //{{AFX_MSG(CLinkSlider) 66 | afx_msg void HScroll( UINT ncode, UINT pos ); 67 | afx_msg void VScroll( UINT ncode, UINT pos ); 68 | //}}AFX_MSG 69 | 70 | DECLARE_MESSAGE_MAP() 71 | }; 72 | 73 | 74 | AfxApi CLinkSlider * GetLinkSlider( CWnd *pcwnd, int id ); 75 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/SmartEdit.h: -------------------------------------------------------------------------------- 1 | // 2 | // SmartEdit.h - CSmartEdit is a specialized CEdit control 3 | // that only allows characters of a given type. 4 | // Available types are defined below. 5 | // 6 | /////////////////////////////////////////////////////////////////// 7 | // 8 | // This is a part of the Microsoft Foundation Classes C++ library. 9 | // Copyright (C) 1992-1997 Microsoft Corporation 10 | // All rights reserved. 11 | // 12 | // This source code is only intended as a supplement to the 13 | // Microsoft Foundation Classes Reference and related 14 | // electronic documentation provided with the library. 15 | // See these sources for detailed information regarding the 16 | // Microsoft Foundation Classes product. 17 | // 18 | /////////////////////////////////////////////////////////////////// 19 | // 20 | // Copyright (C) 1998 Rick York - Feel free to use this as 21 | // you wish provided that these notices remain intact and 22 | // a small credit is given (like in an about box ;). 23 | // 24 | // This began life as part of the CTRLTEST sample from the 25 | // MSDN disks and was called CParsedEdit. I have changed 26 | // its name to reflect its enhanced functionality which 27 | // includes support for more input types : floating point, 28 | // underscore, and negative sign; and linking with a slider 29 | // for coordinated updates. 30 | // 31 | /////////////////////////////////////////////////////////////////// 32 | // 33 | //@tabs=4 34 | 35 | 36 | #ifdef _SMARTEDIT_H 37 | #error repeated include of this file 38 | #else // _SMARTEDIT_H 39 | #define _SMARTEDIT_H 40 | #endif // _SMARTEDIT_H 41 | 42 | 43 | #ifndef __cplusplus 44 | #error this is file may be used in C++ only 45 | #endif 46 | 47 | 48 | // smart edit control sub-styles 49 | 50 | #define SES_NUMBERS 0x0001 // no negative sign allowed 51 | #define SES_LETTERS 0x0002 // also upper and lower case 52 | #define SES_FLOATINGPT 0x0004 // allows '-', '.', and 'E' 53 | #define SES_OTHERCHARS 0x0008 // allows punctuation 54 | #define SES_SIGNED 0x0010 // allows negative sign also 55 | #define SES_UNDERSCORE 0x0020 // allows the underscore 56 | #define SES_HEXADECIMAL 0x0040 // allows hex chars (0-9,A-F,X) 57 | #define SES_ALL 0xFFFF // anything goes 58 | 59 | // define some constant data types 60 | 61 | typedef const char * ccp; 62 | typedef const int cint; 63 | typedef const double cdbl; 64 | 65 | 66 | #ifndef AfxExt 67 | 68 | #ifdef EXTENSION_DLL // define this if controls are in a DLL 69 | #define AfxExt AFX_EXT_CLASS 70 | #define AfxApi AFX_EXT_API 71 | #else // EXTENSION_DLL 72 | #define AfxExt // controls are NOT in a DLL 73 | #define AfxApi 74 | #endif // EXTENSION_DLL 75 | 76 | #endif // AfxExt 77 | 78 | 79 | class AfxExt CLinkSlider; // a specialized slider control 80 | 81 | 82 | class AfxExt CSmartEdit : public CEdit 83 | { 84 | private: 85 | WORD m_wParseType; 86 | 87 | protected: 88 | // Overridables 89 | virtual void OnBadInput(); 90 | 91 | public: 92 | CSmartEdit(); 93 | virtual ~CSmartEdit(); 94 | 95 | int SetParseType( WORD type ); 96 | BOOL SubclassEdit( UINT nID, CWnd* pParent, 97 | WORD wParseStyle ); 98 | 99 | ///////////////////////////////////////////////////////////// 100 | // code for linking with a slider 101 | 102 | // link the slider and edit control first 103 | 104 | void SetSlideLink( CWnd *pParent, int sliderid ); 105 | 106 | int SetParams( cint imin, cint imax, cint ticbands ); 107 | //int SetParams( cdbl dmin, cdbl dmax, 108 | // cint tbands, ccp fmtstring ); 109 | int SetParams( cdbl dmin, cdbl dmax, 110 | cint tbands, CString fmtstring ); 111 | 112 | int SetValue( cint ivalue ); 113 | int SetValue( cdbl dvalue ); 114 | int UpdateEdit( cint position ); 115 | 116 | //void SetFormatString( ccp fmtstring ); 117 | void SetFormatString( CString fmtstring ); 118 | 119 | private : 120 | int InitSlider(); 121 | 122 | // Implementation 123 | 124 | private: 125 | CLinkSlider * m_pSlider; 126 | 127 | //TCHAR * m_pFormat; 128 | CString m_pFormat; 129 | int m_iTextId; 130 | int m_iSliderId; 131 | int m_iBands; 132 | BOOL m_bUseFp; 133 | int m_iMin, m_iMax, m_iValue, m_iRange; 134 | double m_dMin, m_dMax, m_dValue, m_dRange; 135 | 136 | // end of code for linking with a slider 137 | ///////////////////////////////////////////////////////////// 138 | 139 | protected: 140 | //{{AFX_MSG(CSmartEdit) 141 | afx_msg void OnChar(UINT, UINT, UINT); 142 | afx_msg void OnUpdate(); // used with a linked slider 143 | //}}AFX_MSG 144 | 145 | DECLARE_MESSAGE_MAP() 146 | }; 147 | 148 | 149 | AfxApi CSmartEdit * GetSmartEdit( CWnd *pcwnd, int id ); 150 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/SubFormCollection.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | #include "NuWriterDlg.h" 3 | 4 | #ifdef _DEBUG 5 | #undef THIS_FILE 6 | static char THIS_FILE[]=__FILE__; 7 | #define new DEBUG_NEW 8 | #endif 9 | 10 | ////////////////////////////////////////////////////////////////////// 11 | // Construction/Destruction 12 | ////////////////////////////////////////////////////////////////////// 13 | 14 | CSubFormCollection::CSubFormCollection() 15 | { 16 | // initialize some members 17 | m_nActiveForm = -1; 18 | m_Rect.right = 0; 19 | m_Rect.top = 0; 20 | m_Rect.bottom = 0; 21 | m_Rect.left = 0; 22 | m_bCentered = false; 23 | } 24 | 25 | CSubFormCollection::~CSubFormCollection() 26 | { 27 | // Free all sub forms on destruction 28 | for (int i = 0; i <= m_Forms.GetUpperBound(); i++) { 29 | CDialog* pDlg = m_Forms.GetAt(i); 30 | 31 | pDlg->DestroyWindow(); 32 | delete pDlg; 33 | } 34 | } 35 | 36 | ////////////////////////////////////////////////////////////////////// 37 | // Methods 38 | ////////////////////////////////////////////////////////////////////// 39 | 40 | bool CSubFormCollection::SetActive(int ix) 41 | { 42 | 43 | if (ix > m_Forms.GetUpperBound()) { 44 | // does not exist 45 | return(false); 46 | } 47 | m_nActiveForm = ix; // make it the active one 48 | return(true); 49 | } 50 | 51 | 52 | bool CSubFormCollection::CreateSubForm(UINT id,CWnd* pParentWnd) 53 | { 54 | CDialog* pDlg; 55 | 56 | switch(id) { 57 | case IDD_SDRAM: 58 | pDlg = new CRAMDlg(); 59 | break; 60 | case IDD_SPI: 61 | pDlg = new CSPIDlg(); 62 | break; 63 | case IDD_NAND: 64 | pDlg = new CNANDDlg(); 65 | break; 66 | case IDD_MMC: 67 | pDlg = new CMMCDlg(); 68 | break; 69 | case IDD_MTP: 70 | pDlg = new CMTPDlg(); 71 | break; 72 | case IDD_PACK: 73 | pDlg = new CPACKDlg(); 74 | break; 75 | case IDD_FAST: 76 | pDlg = new FastDlg(); 77 | break; 78 | default: 79 | pDlg = new CDialog(); 80 | break; 81 | } 82 | 83 | ASSERT(pDlg != NULL); 84 | 85 | if (pDlg == NULL) return(false); // exit and tell the world about it 86 | AddForm(pDlg); // Add it to the internal table 87 | pDlg->Create(id,pParentWnd); 88 | CRect r; 89 | int x,y; 90 | pDlg->GetWindowRect(&r); // Get the size and position of the dialog in screen coordinates 91 | if (m_bCentered) { 92 | x = m_Rect.left - r.left + ((m_Rect.Width() - r.Width()) / 2); 93 | y = m_Rect.top - r.top + ((m_Rect.Height() - r.Height()) / 2); 94 | } else { // just use the top left corner 95 | x = m_Rect.left - r.left; 96 | y = m_Rect.top - r.top; 97 | } 98 | pDlg->SetWindowPos(pParentWnd,x,y, r.Width(), r.Height(), SWP_NOZORDER); 99 | return(true); // everything ok 100 | } 101 | 102 | bool CSubFormCollection::ShowSubForm(int ix) 103 | { 104 | 105 | ASSERT(ix <= m_Forms.GetUpperBound()); 106 | if (ix > m_Forms.GetUpperBound()) return(false); // does not exist 107 | 108 | CDialog* pDlg; 109 | if (ix != -1) { 110 | if (m_nActiveForm != -1) { 111 | pDlg = m_Forms.GetAt(m_nActiveForm); 112 | ASSERT(pDlg != NULL); 113 | ASSERT(pDlg->m_hWnd != NULL); 114 | if ((pDlg == NULL) 115 | || (pDlg->m_hWnd == NULL)) return(false); 116 | pDlg->ShowWindow(SW_HIDE); 117 | } 118 | m_nActiveForm = ix; // this is the active one now; 119 | } else { 120 | if (m_nActiveForm == -1) { 121 | m_nActiveForm = 0; 122 | } 123 | } 124 | 125 | 126 | 127 | pDlg = m_Forms.GetAt(m_nActiveForm); 128 | ASSERT(pDlg != NULL); 129 | ASSERT(pDlg->m_hWnd != NULL); 130 | if ((pDlg == NULL) 131 | || (pDlg->m_hWnd == NULL)) return(false); 132 | pDlg->ShowWindow(SW_SHOW); 133 | pDlg->Invalidate(); 134 | pDlg->RedrawWindow(); 135 | return(true); 136 | } 137 | 138 | CDialog* CSubFormCollection::GetSubForm(int ix) 139 | { 140 | 141 | ASSERT(ix <= m_Forms.GetUpperBound()); 142 | if (ix > m_Forms.GetUpperBound()) return(false); // does not exist 143 | 144 | CDialog* pDlg; 145 | if (ix != -1) { 146 | if (m_nActiveForm != -1) { 147 | pDlg = m_Forms.GetAt(m_nActiveForm); 148 | ASSERT(pDlg != NULL); 149 | ASSERT(pDlg->m_hWnd != NULL); 150 | if ((pDlg == NULL) 151 | || (pDlg->m_hWnd == NULL)) return(false); 152 | return pDlg; 153 | } 154 | } 155 | return false; 156 | } -------------------------------------------------------------------------------- /NuWriter/NuWriter/SubFormCollection.h: -------------------------------------------------------------------------------- 1 | #if !defined(AFX_SUBFORMCOLLECTION_H__EEF10080_9028_11D3_8594_00105A744766__INCLUDED_) 2 | #define AFX_SUBFORMCOLLECTION_H__EEF10080_9028_11D3_8594_00105A744766__INCLUDED_ 3 | 4 | #if _MSC_VER > 1000 5 | #pragma once 6 | #endif // _MSC_VER > 1000 7 | 8 | #include "stdafx.h" 9 | 10 | class CSubFormCollection 11 | { 12 | public: 13 | CSubFormCollection(); 14 | virtual ~CSubFormCollection(); 15 | 16 | bool SetActive(int ix); // set and display an other sub form 17 | 18 | bool CreateSubForm(UINT id,CWnd* pParentWnd); 19 | // create a subform with a given resource template 20 | 21 | bool ShowSubForm(int ix = -1); 22 | // display the requested subform (by default the active form is displayed) 23 | 24 | void SetRelPos(const CRect& rect) {m_Rect = rect;m_bCentered = false;}; 25 | // set the relative position of the subforms 26 | 27 | void SetCenterPos(const CRect& rect) {m_Rect = rect;m_bCentered = true;}; 28 | // set the position of the subforms and switch the center mode on 29 | 30 | 31 | CDialog* GetSubForm(int ix); 32 | 33 | protected: 34 | CArray m_Forms; // array with all forms 35 | int m_nActiveForm; // index to the currently active sub form 36 | CRect m_Rect; // position of the sub form 37 | bool m_bCentered; // true if the form is centred within the rect, else false 38 | 39 | int AddForm(CDialog* dlg) { return(m_Forms.Add(dlg));}; // internal method for adding a newly created form 40 | }; 41 | 42 | #endif // !defined(AFX_SUBFORMCOLLECTION_H__EEF10080_9028_11D3_8594_00105A744766__INCLUDED_) 43 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/WinUsbLib/setupapi.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/WinUsbLib/setupapi.lib -------------------------------------------------------------------------------- /NuWriter/NuWriter/WinUsbLib/usb200.h: -------------------------------------------------------------------------------- 1 | #ifndef __USB200_H__ 2 | #define __USB200_H__ 3 | 4 | #include "usb100.h" 5 | 6 | 7 | #include 8 | 9 | 10 | #if _MSC_VER >= 1200 11 | #pragma warning(push) 12 | #endif 13 | #pragma warning (disable:4201) 14 | #pragma warning(disable:4214) // named type definition in parentheses 15 | 16 | typedef enum _USB_DEVICE_SPEED { 17 | UsbLowSpeed = 0, 18 | UsbFullSpeed, 19 | UsbHighSpeed 20 | } USB_DEVICE_SPEED; 21 | 22 | typedef enum _USB_DEVICE_TYPE { 23 | Usb11Device = 0, 24 | Usb20Device 25 | } USB_DEVICE_TYPE; 26 | 27 | 28 | // standard definitions for the port status 29 | // word of the HUB port register 30 | 31 | #define USB_PORT_STATUS_CONNECT 0x0001 32 | #define USB_PORT_STATUS_ENABLE 0x0002 33 | #define USB_PORT_STATUS_SUSPEND 0x0004 34 | #define USB_PORT_STATUS_OVER_CURRENT 0x0008 35 | #define USB_PORT_STATUS_RESET 0x0010 36 | #define USB_PORT_STATUS_POWER 0x0100 37 | #define USB_PORT_STATUS_LOW_SPEED 0x0200 38 | #define USB_PORT_STATUS_HIGH_SPEED 0x0400 39 | 40 | typedef union _BM_REQUEST_TYPE { 41 | struct _BM { 42 | UCHAR Recipient:2; 43 | UCHAR Reserved:3; 44 | UCHAR Type:2; 45 | UCHAR Dir:1; 46 | }; 47 | UCHAR B; 48 | } BM_REQUEST_TYPE, *PBM_REQUEST_TYPE; 49 | 50 | typedef struct _USB_DEFAULT_PIPE_SETUP_PACKET { 51 | BM_REQUEST_TYPE bmRequestType; 52 | UCHAR bRequest; 53 | 54 | union _wValue { 55 | struct { 56 | UCHAR LowByte; 57 | UCHAR HiByte; 58 | }; 59 | USHORT W; 60 | } wValue; 61 | 62 | union _wIndex { 63 | struct { 64 | UCHAR LowByte; 65 | UCHAR HiByte; 66 | }; 67 | USHORT W; 68 | } wIndex; 69 | USHORT wLength; 70 | } USB_DEFAULT_PIPE_SETUP_PACKET, *PUSB_DEFAULT_PIPE_SETUP_PACKET; 71 | 72 | // setup packet is eight bytes -- defined by spec 73 | C_ASSERT(sizeof(USB_DEFAULT_PIPE_SETUP_PACKET) == 8); 74 | 75 | 76 | #define USB_DEVICE_QUALIFIER_DESCRIPTOR_TYPE 0x06 77 | #define USB_OTHER_SPEED_CONFIGURATION_DESCRIPTOR_TYPE 0x07 78 | 79 | typedef struct _USB_DEVICE_QUALIFIER_DESCRIPTOR { 80 | UCHAR bLength; 81 | UCHAR bDescriptorType; 82 | USHORT bcdUSB; 83 | UCHAR bDeviceClass; 84 | UCHAR bDeviceSubClass; 85 | UCHAR bDeviceProtocol; 86 | UCHAR bMaxPacketSize0; 87 | UCHAR bNumConfigurations; 88 | UCHAR bReserved; 89 | } USB_DEVICE_QUALIFIER_DESCRIPTOR, *PUSB_DEVICE_QUALIFIER_DESCRIPTOR; 90 | 91 | 92 | typedef union _USB_HIGH_SPEED_MAXPACKET { 93 | struct _MP { 94 | USHORT MaxPacket:11; /* 0..10 */ 95 | USHORT HSmux:2; /* 11..12 */ 96 | USHORT Reserved:3; /* 13..15 */ 97 | }; 98 | USHORT us; 99 | } USB_HIGH_SPEED_MAXPACKET, *PUSB_HIGH_SPEED_MAXPACKET; 100 | 101 | #define USB_INTERFACE_ASSOCIATION_DESCRIPTOR_TYPE 0x0B 102 | 103 | typedef struct _USB_INTERFACE_ASSOCIATION_DESCRIPTOR { 104 | 105 | UCHAR bLength; 106 | UCHAR bDescriptorType; 107 | UCHAR bFirstInterface; 108 | UCHAR bInterfaceCount; 109 | UCHAR bFunctionClass; 110 | UCHAR bFunctionSubClass; 111 | UCHAR bFunctionProtocol; 112 | UCHAR iFunction; 113 | 114 | } USB_INTERFACE_ASSOCIATION_DESCRIPTOR, *PUSB_INTERFACE_ASSOCIATION_DESCRIPTOR; 115 | 116 | 117 | #if _MSC_VER >= 1200 118 | #pragma warning(pop) 119 | #endif 120 | 121 | 122 | 123 | #include 124 | 125 | #endif // __USB200_H__ 126 | 127 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/WinUsbLib/winusb.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/WinUsbLib/winusb.lib -------------------------------------------------------------------------------- /NuWriter/NuWriter/WinUsbLib/winusbio.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | 3 | Copyright (c) 2002 Microsoft Corporation 4 | 5 | Module Name: 6 | 7 | wusbio.h 8 | 9 | Abstract: 10 | 11 | Public header for WINUSB 12 | 13 | Environment: 14 | 15 | User and Kernel Mode 16 | 17 | Notes: 18 | 19 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 20 | KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 21 | IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR 22 | PURPOSE. 23 | 24 | Copyright (c) 2001 Microsoft Corporation. All Rights Reserved. 25 | 26 | 27 | Revision History: 28 | 29 | 11/12/2002 : created 30 | 31 | 32 | ****************************************************************************/ 33 | 34 | #ifndef __WUSBIO_H__ 35 | #define __WUSBIO_H__ 36 | 37 | #if(NTDDI_VERSION >= NTDDI_WINXP) 38 | 39 | #include 40 | 41 | // Pipe policy types 42 | #define SHORT_PACKET_TERMINATE 0x01 43 | #define AUTO_CLEAR_STALL 0x02 44 | #define PIPE_TRANSFER_TIMEOUT 0x03 45 | #define IGNORE_SHORT_PACKETS 0x04 46 | #define ALLOW_PARTIAL_READS 0x05 47 | #define AUTO_FLUSH 0x06 48 | #define RAW_IO 0x07 49 | #define MAXIMUM_TRANSFER_SIZE 0x08 50 | #define RESET_PIPE_ON_RESUME 0x09 51 | 52 | // Power policy types 53 | // 54 | // Add 0x80 for Power policy types in order to prevent overlap with 55 | // Pipe policy types to prevent "accidentally" setting the wrong value for the 56 | // wrong type. 57 | // 58 | #define AUTO_SUSPEND 0x81 59 | #define SUSPEND_DELAY 0x83 60 | 61 | // Device Information types 62 | #define DEVICE_SPEED 0x01 63 | 64 | // Device Speeds 65 | #define LowSpeed 0x01 66 | #define FullSpeed 0x02 67 | #define HighSpeed 0x03 68 | 69 | // {DA812BFF-12C3-46a2-8E2B-DBD3B7834C43} 70 | #include 71 | DEFINE_GUID(WinUSB_TestGuid, 0xda812bff, 0x12c3, 0x46a2, 0x8e, 0x2b, 0xdb, 0xd3, 0xb7, 0x83, 0x4c, 0x43); 72 | 73 | 74 | typedef struct _WINUSB_PIPE_INFORMATION { 75 | USBD_PIPE_TYPE PipeType; 76 | UCHAR PipeId; 77 | USHORT MaximumPacketSize; 78 | UCHAR Interval; 79 | } WINUSB_PIPE_INFORMATION, *PWINUSB_PIPE_INFORMATION; 80 | 81 | #endif // (NTDDI_VERSION >= NTDDI_WINXP) 82 | 83 | #endif // __WUSBIO_H__ 84 | 85 | 86 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/aes.h: -------------------------------------------------------------------------------- 1 | #ifndef _AES_H 2 | #define _AES_H 3 | 4 | #ifndef uint8 5 | #define uint8 unsigned char 6 | #endif 7 | 8 | #ifndef uint32 9 | #define uint32 unsigned long int 10 | #endif 11 | 12 | typedef struct 13 | { 14 | uint32 erk[64]; /* encryption round keys */ 15 | uint32 drk[64]; /* decryption round keys */ 16 | int nr; /* number of rounds */ 17 | } 18 | aes_context; 19 | 20 | int aes_set_key( aes_context *ctx, uint8 *key, int nbits ); 21 | void aes_encrypt( aes_context *ctx, uint8 input[16], uint8 output[16] ); 22 | void aes_decrypt( aes_context *ctx, uint8 input[16], uint8 output[16] ); 23 | 24 | #endif /* aes.h */ 25 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/device.h: -------------------------------------------------------------------------------- 1 | #ifndef _device_h 2 | #define _device_h 3 | 4 | #include 5 | #include 6 | 7 | //DEFINE_GUID(GUID_CLASS_VCOMPORT, 0x86e0d1e0L, 0x8089, 0x11d0, 0x9c, 0xe4, 0x08, 8 | //0x00, 0x3e, 0x30, 0x1f, 0x73); 9 | 10 | DEFINE_GUID(GUID_CLASS_VCOMPORT, 0x9b2095ce, 0x99a1, 0x44d9, 0xa7, 0xc6, 11 | 0xc7, 0xcb, 0x58, 0x41, 0xfe, 0x88); 12 | 13 | #endif -------------------------------------------------------------------------------- /NuWriter/NuWriter/enumser.h: -------------------------------------------------------------------------------- 1 | #ifndef __ENUMSER_H__ 2 | #define __ENUMSER_H__ 3 | 4 | 5 | ///////////////////////// Includes //////////////////////////////////////////// 6 | 7 | #ifndef __AFXTEMPL_H__ 8 | #pragma message("To avoid this message put afxtempl.h in your PCH") 9 | #include 10 | #endif 11 | 12 | 13 | 14 | ///////////////////////// Classes ///////////////////////////////////////////// 15 | 16 | 17 | class CEnumerateSerial 18 | { 19 | public: 20 | #ifndef NO_ENUMSERIAL_USING_CREATEFILE 21 | static BOOL UsingCreateFile(CUIntArray& ports); 22 | #endif 23 | 24 | #ifndef NO_ENUMSERIAL_USING_QUERYDOSDEVICE 25 | static BOOL UsingQueryDosDevice(CUIntArray& ports); 26 | #endif 27 | 28 | #ifndef NO_ENUMSERIAL_USING_GETDEFAULTCOMMCONFIG 29 | static BOOL UsingGetDefaultCommConfig(CUIntArray& ports); 30 | #endif 31 | 32 | #ifndef NO_ENUMSERIAL_USING_SETUPAPI 33 | static BOOL UsingSetupAPI(CUIntArray& ports, CStringArray& sFriendlyNames); 34 | #endif 35 | 36 | #ifndef NO_ENUMSERIAL_USING_ENUMPORTS 37 | static BOOL UsingEnumPorts(CUIntArray& ports); 38 | #endif 39 | 40 | #ifndef NO_ENUMSERIAL_USING_WMI 41 | static BOOL UsingWMI(CUIntArray& ports); 42 | #endif 43 | 44 | protected: 45 | static BOOL IsNumeric(LPCTSTR pszString, BOOL bIgnoreColon); 46 | }; 47 | 48 | #endif //__ENUMSER_H__ -------------------------------------------------------------------------------- /NuWriter/NuWriter/path.ini: -------------------------------------------------------------------------------- 1 | [RAWNOR] 2 | PATH=C:\Nuvoton-work\Work_tmp\temp\bootloader 3 | 4 | [NAND] 5 | PATH=C:\Nuvoton-work\Work_tmp\bootloader 6 | 7 | [SDRAM] 8 | PATH=C:\Nuvoton-work\Work_tmp\ubuntu_shared 9 | 10 | [NOR] 11 | PATH=C:\Nuvoton-work\Work_tmp\ubuntu_shared 12 | 13 | [SPI] 14 | PATH=C:\Nuvoton-work\ToolandDocs\Linux 2.6.35 BSP\Tools\Turbo Writer\Spiboot 15 | 16 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/Add.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/Add.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/Browse.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/Browse.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/Continue.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/Continue.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/Delete.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/Delete.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/EraseAll.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/EraseAll.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/Exit.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/Exit.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/Format.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/Format.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/Modify.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/Modify.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/NuWriter.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/NuWriter.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/NuWriter.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/NuWriter.ico -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/NuWriter.rc2: -------------------------------------------------------------------------------- 1 | // 2 | // NuWriter.RC2 - resources Microsoft Visual C++ does not edit directly 3 | // 4 | 5 | #ifdef APSTUDIO_INVOKED 6 | #error this file is not editable by Microsoft Visual C++ 7 | #endif //APSTUDIO_INVOKED 8 | 9 | 10 | ///////////////////////////////////////////////////////////////////////////// 11 | // Add manually edited resources here... 12 | 13 | ///////////////////////////////////////////////////////////////////////////// 14 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/Output.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/Output.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/ReConnect0.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/ReConnect0.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/ReConnect1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/ReConnect1.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/ReadDevice.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/ReadDevice.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/Verify.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/Verify.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/WriterDevice.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/WriterDevice.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/banner.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/banner.bmp -------------------------------------------------------------------------------- /NuWriter/NuWriter/res/chip.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriter/NuWriter/res/chip.ico -------------------------------------------------------------------------------- /NuWriter/NuWriter/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // NuWriter.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | 8 | -------------------------------------------------------------------------------- /NuWriter/NuWriter/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, 3 | // but are changed infrequently 4 | #ifndef __STDAFX_H__ 5 | #define __STDAFX_H__ 6 | #pragma once 7 | 8 | #ifndef _SECURE_ATL 9 | #define _SECURE_ATL 1 10 | #endif 11 | 12 | #ifndef VC_EXTRALEAN 13 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 14 | #endif 15 | 16 | #include "targetver.h" 17 | 18 | #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit 19 | 20 | // turns off MFC's hiding of some common and often safely ignored warning messages 21 | #define _AFX_ALL_WARNINGS 22 | 23 | #include // MFC core and standard components 24 | #include // MFC extensions 25 | 26 | 27 | #include // MFC Automation classes 28 | 29 | 30 | 31 | #ifndef _AFX_NO_OLE_SUPPORT 32 | #include // MFC support for Internet Explorer 4 Common Controls 33 | #endif 34 | #ifndef _AFX_NO_AFXCMN_SUPPORT 35 | #include // MFC support for Windows Common Controls 36 | #endif // _AFX_NO_AFXCMN_SUPPORT 37 | 38 | 39 | //my project ------------------------------------------------ 40 | #define WM_SDRAM_PROGRESS WM_USER+5 41 | #define WM_SPI_PROGRESS WM_USER+6 42 | #define WM_MMC_PROGRESS WM_USER+7 43 | #define WM_NAND_PROGRESS WM_USER+8 44 | #define WM_PACK_PROGRESS WM_USER+9 45 | #define WM_MTP_PROGRESS WM_USER+10 46 | #define WM_FAST_PROGRESS1 WM_USER+11 47 | #define WM_FAST_PROGRESS2 WM_USER+12 48 | #define WM_FAST_PROGRESS3 WM_USER+13 49 | #define WM_FAST_PROGRESS4 WM_USER+14 50 | #define WM_FAST_PROGRESS5 WM_USER+15 51 | #define WM_FAST_PROGRESS6 WM_USER+16 52 | #define WM_FAST_PROGRESS7 WM_USER+17 53 | #define WM_FAST_PROGRESS8 WM_USER+18 54 | #define WM_FAST_CLOSETHREAD WM_USER+19 55 | #define WM_FAST_TIMEOUTCTL WM_USER+20 56 | 57 | 58 | #include 59 | #include 60 | #include 61 | #include 62 | #include 63 | #include 64 | #include 65 | 66 | #include 67 | #include 68 | #include "Serial.h" 69 | #include "ReportCtrl.h" 70 | #include "AddFileDialog.h" 71 | #include "FooButton.h" 72 | #include 73 | #define COLOR_DOWNLOAD RGB(0, 255, 0) 74 | #define COLOR_ERASE RGB(0, 0, 255) 75 | #define COLOR_BURN RGB(255, 0, 0) 76 | #define COLOR_VERIFY RGB(236, 190, 70) 77 | 78 | //#define WDBG 79 | 80 | #ifdef WDBG 81 | #define DbgOut(Text) OutputDebugString(_T(Text)) 82 | #else 83 | #define DbgOut(Text) 84 | #endif 85 | 86 | 87 | //#undef _MP //shanchun modified 88 | 89 | //#pragma warning(disable: 4200) 90 | //----------------------------------------------------------- 91 | 92 | 93 | 94 | 95 | #ifdef _UNICODE 96 | #if defined _M_IX86 97 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 98 | #elif defined _M_IA64 99 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") 100 | #elif defined _M_X64 101 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") 102 | #else 103 | #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") 104 | #endif 105 | #endif 106 | 107 | 108 | #endif -------------------------------------------------------------------------------- /NuWriter/NuWriter/targetver.h: -------------------------------------------------------------------------------- 1 | 2 | #pragma once 3 | 4 | // The following macros define the minimum required platform. The minimum required platform 5 | // is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run 6 | // your application. The macros work by enabling all features available on platform versions up to and 7 | // including the version specified. 8 | 9 | // Modify the following defines if you have to target a platform prior to the ones specified below. 10 | // Refer to MSDN for the latest info on corresponding values for different platforms. 11 | #ifndef WINVER // Specifies that the minimum required platform is Windows Vista. 12 | #define WINVER 0x0600 // Change this to the appropriate value to target other versions of Windows. 13 | #endif 14 | 15 | #ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista. 16 | #define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows. 17 | #endif 18 | 19 | #ifndef _WIN32_WINDOWS // Specifies that the minimum required platform is Windows 98. 20 | #define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later. 21 | #endif 22 | 23 | #ifndef _WIN32_IE // Specifies that the minimum required platform is Internet Explorer 7.0. 24 | #define _WIN32_IE 0x0700 // Change this to the appropriate value to target other versions of IE. 25 | #endif 26 | 27 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/NuWriterFW.uvmpw: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1.0 5 | 6 |
### uVision Project, (C) Keil Software
7 | 8 | WorkSpace 9 | 10 | 11 | .\NuWriterFW_16MB.uvproj 12 | 1 13 | 14 | 15 | 16 | .\NuWriterFW_32MB.uvproj 17 | 1 18 | 19 | 20 | 21 | .\NuWriterFW_64MB.uvproj 22 | 1 23 | 24 | 25 | 26 | .\NuWriterFW_128MB.uvproj 27 | 1 28 | 1 29 | 30 | 31 |
32 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/NuWriterFW_128MB.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriterFW/NuWriterFW/NuWriterFW_128MB.bin -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/NuWriterFW_16MB.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriterFW/NuWriterFW/NuWriterFW_16MB.bin -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/NuWriterFW_32MB.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriterFW/NuWriterFW/NuWriterFW_32MB.bin -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/NuWriterFW_64MB.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriterFW/NuWriterFW/NuWriterFW_64MB.bin -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/Readme.txt: -------------------------------------------------------------------------------- 1 | {0x20, 'T', 'V', 'N'} = {0X20, 0X54,0X56,0X4E} -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/del_obj .bat: -------------------------------------------------------------------------------- 1 | RD /S /Q obj 2 | del *.SCHung 3 | del *.uvopt 4 | del *.dep 5 | del *.bak 6 | del *.dep -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/header_128MB.bat: -------------------------------------------------------------------------------- 1 | set dt=%date:/=% 2 | set newdate=%dt:~0,6%13 3 | romh NuWriterFW_128MB.bin 0x07f00040 %newdate% 4 | xcopy xusb.bin xusb128MB.bin /m /q /Y 5 | xcopy xusb128MB.bin ..\\..\\NuWriter\\NuWriter\\Release\\xusb128.bin /q /Y -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/header_16MB.bat: -------------------------------------------------------------------------------- 1 | set dt=%date:/=% 2 | set newdate=%dt:~0,6%13 3 | romh NuWriterFW_16MB.bin 0x0f00040 %newdate% 4 | xcopy xusb.bin xusb16MB.bin /m /q /Y 5 | xcopy xusb16MB.bin ..\\..\\NuWriter\\NuWriter\\Release\\xusb16.bin /q /Y -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/header_32MB.bat: -------------------------------------------------------------------------------- 1 | set dt=%date:/=% 2 | set newdate=%dt:~0,6%13 3 | romh NuWriterFW_32MB.bin 0x01f00040 %newdate% 4 | xcopy xusb.bin xusb32MB.bin /m /q /Y 5 | xcopy xusb32MB.bin ..\\..\\NuWriter\\NuWriter\\Release\\xusb32.bin /q /Y -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/header_64MB.bat: -------------------------------------------------------------------------------- 1 | set dt=%date:/=% 2 | set newdate=%dt:~0,6%13 3 | romh NuWriterFW_64MB.bin 0x03f00040 %newdate% 4 | xcopy xusb.bin xusb64MB.bin /m /q /Y 5 | xcopy xusb64MB.bin ..\\..\\NuWriter\\NuWriter\\Release\\xusb64.bin /q /Y -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/romh.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriterFW/NuWriterFW/romh.exe -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/FPGA.ini: -------------------------------------------------------------------------------- 1 | E INT 0xB0000220 = 0x01000019 2 | E INT 0xb0001800 = 0x00070476 3 | E INT 0xb0001810 = 0x00000007 4 | E INT 0xb0001804 = 0x00000001 5 | E INT 0xb0001804 = 0x00000003 6 | E INT 0xb0001804 = 0x00000007 7 | E INT 0xb000181C = 0x00002445 8 | E INT 0xb0001818 = 0x00004001 9 | E INT 0xb0001804 = 0x0000000B 10 | E INT 0xb0001804 = 0x0000000B 11 | E INT 0xb0001804 = 0x0000000B 12 | E INT 0xb0001818 = 0x00000232 13 | E INT 0xb000181C = 0x000027C3 14 | E INT 0xb000181C = 0x00002443 15 | E INT 0xb0001808 = 0x000080C0 16 | E INT 0xb0001804 = 0x00000020 17 | E INT 0xb0001830 = 0x00001010 18 | E INT 0xb0001834 = 0x00888800 19 | LOAD %L INCREMENTAL 20 | $ = 0x1F00040 -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/chip.ini: -------------------------------------------------------------------------------- 1 | LOAD %L INCREMENTAL 2 | $ = 0x1F00040 -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/chip_128.ini: -------------------------------------------------------------------------------- 1 | LOAD %L INCREMENTAL 2 | $ = 0x7F00040 -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/chip_16.ini: -------------------------------------------------------------------------------- 1 | LOAD %L INCREMENTAL 2 | $ = 0xF00040 -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/chip_64.ini: -------------------------------------------------------------------------------- 1 | LOAD %L INCREMENTAL 2 | $ = 0x3F00040 -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/config.h: -------------------------------------------------------------------------------- 1 | #if defined(TURBOWRITER64) 2 | #define EXEADDR 0x03F00040 3 | #elif defined(TURBOWRITER32) 4 | #define EXEADDR 0x01F00040 5 | #elif defined(TURBOWRITER16) 6 | #define EXEADDR 0x0F00040 7 | #elif defined(TURBOWRITER128) 8 | #define EXEADDR 0x07F00040 9 | #endif 10 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/exesdramdtb.s: -------------------------------------------------------------------------------- 1 | ;/*************************************************************************** 2 | ; * * 3 | ; * Copyright (c) 2017 Nuvoton Technolog. All rights reserved. * 4 | ; * * 5 | ; ***************************************************************************/ 6 | ; 7 | 8 | AREA DTB_INIT, CODE, READONLY 9 | 10 | EXPORT fw_dtbfunc 11 | 12 | fw_dtbfunc 13 | 14 | BX r3; 15 | END 16 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/filesystem.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright (c) 2013 Windond Electronics Corp. 4 | * All rights reserved. 5 | * 6 | * $Workfile: filesystem.h $ 7 | * 8 | * $Author: schung $ 9 | ******************************************************************************/ 10 | 11 | #ifndef __FILESYSTEM_H_ 12 | #define __FILESYSTEM_H_ 13 | 14 | #include "wbio.h" 15 | #include "fmi.h" 16 | 17 | #define BOOT_SECTOR_SIGNATURE 0x55AA 18 | 19 | //Partition Table Entry 20 | #pragma pack(push,1) 21 | typedef struct _PTE { 22 | UINT8 pteBootIndicator; 23 | UINT8 pteStartHead; 24 | UINT8 pteStartSector; 25 | UINT8 pteStartCylinder; 26 | UINT8 pteSystemID; 27 | UINT8 pteEndHead; 28 | UINT8 pteEndSector; 29 | UINT8 pteEndCylinder; 30 | UINT32 pteFirstSector; // First Partition Sector 31 | UINT32 ptePartitionSize; 32 | } PTE, *PPTE; 33 | #pragma pack(pop) 34 | 35 | 36 | //Master Boot Record (Sector) 37 | #pragma pack(push,1) 38 | typedef struct _MBR { 39 | UCHAR mbrBootCommand[446]; // Offset 40 | // First Partition 41 | PTE mbrPartition[4]; //[0]:1BEh, [1]:1CEh, [2]:1DEh, [3]:1EEh 42 | UINT16 mbrSignature; // 1FEh ~ 1FFh 43 | } MBR, *PMBR; 44 | #pragma pack(pop) 45 | 46 | //CHS Value 47 | #pragma pack(push,1) 48 | typedef struct _CHS { 49 | UCHAR chsTrack; 50 | UCHAR chsSector; 51 | UCHAR chsCylinder; 52 | } CHS, *PCHS; 53 | #pragma pack(pop) 54 | 55 | 56 | #define GET16_L(bptr,n) (bptr[n] | (bptr[n+1] << 8)) 57 | #define GET32_L(bptr,n) (bptr[n] | (bptr[n+1] << 8) | (bptr[n+2] << 16) | (bptr[n+3] << 24)) 58 | #define PUT16_L(bptr,n,val) bptr[n] = val & 0xFF; \ 59 | bptr[n+1] = (val >> 8) & 0xFF; 60 | #define PUT32_L(bptr,n,val) bptr[n] = val & 0xFF; \ 61 | bptr[n+1] = (val >> 8) & 0xFF; \ 62 | bptr[n+2] = (val >> 16) & 0xFF; \ 63 | bptr[n+3] = (val >> 24) & 0xFF; 64 | 65 | #define GET16_B(bptr,n) ((bptr[n]) << 8 | bptr[n+1]) 66 | #define GET32_B(bptr,n) ((bptr[n] << 24) | (bptr[n+1] << 16) | (bptr[n+2] << 8) | bptr[n+3]) 67 | #define PUT16_B(bptr,n,val) bptr[n+1] = val & 0xFF; \ 68 | bptr[n] = (val >> 8) & 0xFF; 69 | #define PUT32_B(bptr,n,val) bptr[n+3] = val & 0xFF; \ 70 | bptr[n+2] = (val >> 8) & 0xFF; \ 71 | bptr[n+1] = (val >> 16) & 0xFF; \ 72 | bptr[n] = (val >> 24) & 0xFF; 73 | #define min(x,y) (((x) < (y)) ? (x) : (y)) 74 | //#define MIN(x,y) (((x) < (y)) ? (x) : (y)) 75 | #define max(x,y) (((x) > (y)) ? (x) : (y)) 76 | #define MAX(x,y) (((x) > (y)) ? (x) : (y)) 77 | 78 | /*----------------------------------------------------------------------------------------*/ 79 | /* Number of FAT sector buffer */ 80 | /*----------------------------------------------------------------------------------------*/ 81 | #define NUM_SECTOR_BUFFER 16 /* !!at least 8!! */ 82 | 83 | static UINT32 TotalSector=0; 84 | #if (NUM_SECTOR_BUFFER < 8) 85 | #error "NUM_SECTOR_BUFFER too small!!" 86 | #endif 87 | 88 | INT fmiSDWrite(UINT32 uStartSecN,UINT32 nCount,UINT8 *pucSecBuff); 89 | //PMBR create_mbr(UINT32 TotalSize,UINT32 HideSize); 90 | PMBR create_mbr(UINT32 TotalSize, FW_MMC_IMAGE_T *myPmmcImage); 91 | INT32 FormatFat32(PMBR pmbr,UINT32 nCount); 92 | void MBR_DecodingCHS(UINT32 PartitionSize, UINT32 *CIdx, UINT32 *TIdx, UINT32 *SIdx); 93 | #endif /*FILESYSTEM_H_*/ 94 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/main.c: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * @file main.c 3 | * @brief XUB.bin code 4 | * @version 1.0.1 5 | * @date 04, September, 2012 6 | * 7 | * @note 8 | * Copyright (C) 2012-2014 Nuvoton Technology Corp. All rights reserved. 9 | ******************************************************************************/ 10 | #include "config.h" 11 | #include "usbd.h" 12 | #include "sdglue.h" 13 | #include "filesystem.h" //for eMMC format test 14 | 15 | extern void ParseFlashType(void); 16 | extern UINT32 eMMCBlockSize; 17 | 18 | UINT32 PLL_Get(UINT32 reg,UINT srcclk) 19 | { 20 | UINT32 N,M,P; 21 | N =((inpw(reg) & 0x007F)>>0)+1; 22 | M =((inpw(reg) & 0x1F80)>>7)+1; 23 | P =((inpw(reg) & 0xE000)>>13)+1; 24 | return (srcclk*N/(M*P)); 25 | } 26 | void CPU_Info(void) 27 | { 28 | UINT32 system=12; 29 | UINT32 cpu,pclk; 30 | switch( ((inpw(REG_CLKDIV0) & (0x3<<3))>>3)) { 31 | case 0: 32 | system=12; 33 | break; 34 | case 1: 35 | return; 36 | case 2: /* ACLKout */ 37 | system=PLL_Get(REG_APLLCON,system); 38 | break; 39 | case 3: /* UCLKout */ 40 | system=PLL_Get(REG_UPLLCON,system); 41 | break; 42 | } 43 | system= ( system/(((inpw(REG_CLKDIV0) & (0x7<<0))>>0)+1) )/ (((inpw(REG_CLKDIV0) & (0xF<<8))>>8)+1); 44 | cpu = (system/(((inpw(REG_CLKDIV0) & (0xf<<16))>>16)+1)); 45 | pclk = ((system)/(((inpw(REG_CLKDIV0) & (0xf<<24))>>24)+1))/2; 46 | sysprintf("CPU: %dMHz, DDR: %dMHz, SYS: %dMHz, PCLK: %dMHz\n",cpu,system/2,system,pclk); 47 | } 48 | /*---------------------------------------------------------------------------- 49 | MAIN function 50 | *----------------------------------------------------------------------------*/ 51 | int main() 52 | { 53 | UINT32 StartAddr=0,ExeAddr=EXEADDR; 54 | //PMBR pmbr; 55 | 56 | #if 0 57 | outpw(REG_PWRON, inpw(REG_PWRON) & ~0x400); /* pull low D+ for USB 1.1 host detection */ 58 | outpw(REG_CLKSEL, inpw(REG_CLKSEL)|CPU_FROM_EXTAL15M); /* system clock source is from external clock */ 59 | #endif //AHBIPRST 60 | UNLOCKREG(); 61 | 62 | *((volatile unsigned int *)REG_AIC_MDCR)=0xFFFFFFFF; // disable all interrupt channel 63 | *((volatile unsigned int *)REG_AIC_MDCRH)=0xFFFFFFFF; // disable all interrupt channel 64 | /* copy arm vctor table to 0x0 */ 65 | memcpy((unsigned char *)StartAddr,(unsigned char *)ExeAddr,0x40); 66 | 67 | outpw(REG_AHBIPRST,1<<19); //USBD reset 68 | outpw(REG_AHBIPRST,0<<19); 69 | outpw(REG_USBD_PHY_CTL, inpw(REG_USBD_PHY_CTL) & ~0x100); 70 | outpw(REG_HCLKEN, inpw(REG_HCLKEN) & ~0x80000); 71 | 72 | 73 | 74 | outpw(REG_HCLKEN, inpw(REG_HCLKEN) | (1<<22)); //Enable eMMC clock 75 | outpw(REG_HCLKEN, inpw(REG_HCLKEN) | (1<<21)); //Enable NAND clock 76 | //outpw(REG_HCLKEN, inpw(REG_HCLKEN) | (1<<23)); //Enable CRYPTO clock 77 | outpw(REG_PCLKEN0, inpw(REG_PCLKEN0) | (1<<16)); //Enable UART0 clock 78 | outpw(REG_PCLKEN1, inpw(REG_PCLKEN1) | (1<<4 )); //Enable SPI1 clock 79 | outpw(REG_PCLKEN1, inpw(REG_PCLKEN1) | (1<<26 )); //Enable MTPC clock 80 | 81 | outpw(REG_PCLKEN0, inpw(REG_PCLKEN0) | 0x8); 82 | outpw(0xB8003120, 0x8000); 83 | outpw(0xB8003124, 0x4000); 84 | 85 | 86 | sysInitializeUART(); 87 | MSG_DEBUG("0x%x\n", inpw(REG_USBD_PHY_CTL)); 88 | 89 | sysprintf("=======================================\n"); 90 | sysprintf("Run firmware code\n"); 91 | CPU_Info(); 92 | 93 | /* enable USB engine */ 94 | udcInit(); 95 | 96 | /* start Timer 0 */ 97 | #if 1 98 | sysSetTimerReferenceClock(TIMER0, 12000000); 99 | sysStartTimer(TIMER0, 100, PERIODIC_MODE); 100 | #endif 101 | 102 | fmiHWInit(); 103 | sysDelay(10);//For connection stability 104 | 105 | #if 1 /* SD Init */ 106 | _sd_ReferenceClock = 300000;//12000; // kHz upll or hxt 107 | eMMCBlockSize=fmiInitSDDevice(); 108 | sysDelay(10); //For connection stability 109 | MSG_DEBUG("eMMCBlockSize=%08x\n",eMMCBlockSize); 110 | // pmbr=create_mbr(eMMCBlockSize,30); 111 | // FormatFat32(pmbr,0); 112 | // while(1); 113 | #endif 114 | 115 | sysprintf("Parse NuWriter command line\n"); 116 | sysprintf("=======================================\n"); 117 | while(1) { 118 | ParseFlashType(); 119 | } 120 | 121 | } 122 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/scat_c.scf: -------------------------------------------------------------------------------- 1 | ;/****************************************************************************** 2 | ; * 3 | ; * Copyright (c) 2003 Windond Electronics Corp. 4 | ; * All rights reserved. 5 | ; * 6 | ; * $Workfile: $ 7 | ; * 8 | ; * $Author: $ 9 | ; ******************************************************************************/ 10 | ;/* 11 | ; * $History: $ 12 | ; */ 13 | ; This scatter loading setting is for NUC900. 14 | ; After booting, the ROM was remapped to 0xAF000000 and SDRAM was 15 | ; initialized. Remapping and SDRAM initialization were done by init.s 16 | ; Ater the init.s exected, it pass the control right to __main.o of C Library. 17 | ; The __main.o would copy vector table and RO codes to memory according to the 18 | ; scatter loading setting. 19 | ; 20 | ; NOTE: The heap base of C Library is defined in retarget.c. 21 | ; It is needed to be set for C Library. 22 | 23 | ROM_LOAD 0x01F00040 24 | { 25 | ROM1 +0 0xfff00 26 | { 27 | *.o (WB_INIT, +First) 28 | *(+RO) 29 | *(+RW) 30 | *(+ZI) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/scat_c_128.scf: -------------------------------------------------------------------------------- 1 | ;/****************************************************************************** 2 | ; * 3 | ; * Copyright (c) 2003 Windond Electronics Corp. 4 | ; * All rights reserved. 5 | ; * 6 | ; * $Workfile: $ 7 | ; * 8 | ; * $Author: $ 9 | ; ******************************************************************************/ 10 | ;/* 11 | ; * $History: $ 12 | ; */ 13 | ; This scatter loading setting is for NUC900. 14 | ; After booting, the ROM was remapped to 0xAF000000 and SDRAM was 15 | ; initialized. Remapping and SDRAM initialization were done by init.s 16 | ; Ater the init.s exected, it pass the control right to __main.o of C Library. 17 | ; The __main.o would copy vector table and RO codes to memory according to the 18 | ; scatter loading setting. 19 | ; 20 | ; NOTE: The heap base of C Library is defined in retarget.c. 21 | ; It is needed to be set for C Library. 22 | 23 | ROM_LOAD 0x07F00040 24 | { 25 | ROM1 +0 0xfff00 26 | { 27 | *.o (WB_INIT, +First) 28 | *(+RO) 29 | *(+RW) 30 | *(+ZI) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/scat_c_16.scf: -------------------------------------------------------------------------------- 1 | ;/****************************************************************************** 2 | ; * 3 | ; * Copyright (c) 2003 Windond Electronics Corp. 4 | ; * All rights reserved. 5 | ; * 6 | ; * $Workfile: $ 7 | ; * 8 | ; * $Author: $ 9 | ; ******************************************************************************/ 10 | ;/* 11 | ; * $History: $ 12 | ; */ 13 | ; This scatter loading setting is for NUC900. 14 | ; After booting, the ROM was remapped to 0xAF000000 and SDRAM was 15 | ; initialized. Remapping and SDRAM initialization were done by init.s 16 | ; Ater the init.s exected, it pass the control right to __main.o of C Library. 17 | ; The __main.o would copy vector table and RO codes to memory according to the 18 | ; scatter loading setting. 19 | ; 20 | ; NOTE: The heap base of C Library is defined in retarget.c. 21 | ; It is needed to be set for C Library. 22 | 23 | ROM_LOAD 0x00F00040 24 | { 25 | ROM1 +0 0xfff00 26 | { 27 | *.o (WB_INIT, +First) 28 | *(+RO) 29 | *(+RW) 30 | *(+ZI) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/scat_c_64.scf: -------------------------------------------------------------------------------- 1 | ;/****************************************************************************** 2 | ; * 3 | ; * Copyright (c) 2003 Windond Electronics Corp. 4 | ; * All rights reserved. 5 | ; * 6 | ; * $Workfile: $ 7 | ; * 8 | ; * $Author: $ 9 | ; ******************************************************************************/ 10 | ;/* 11 | ; * $History: $ 12 | ; */ 13 | ; This scatter loading setting is for NUC900. 14 | ; After booting, the ROM was remapped to 0xAF000000 and SDRAM was 15 | ; initialized. Remapping and SDRAM initialization were done by init.s 16 | ; Ater the init.s exected, it pass the control right to __main.o of C Library. 17 | ; The __main.o would copy vector table and RO codes to memory according to the 18 | ; scatter loading setting. 19 | ; 20 | ; NOTE: The heap base of C Library is defined in retarget.c. 21 | ; It is needed to be set for C Library. 22 | 23 | ROM_LOAD 0x03F00040 24 | { 25 | ROM1 +0 0xfff00 26 | { 27 | *.o (WB_INIT, +First) 28 | *(+RO) 29 | *(+RW) 30 | *(+ZI) 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/sdglue.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * 3 | * Copyright (c) 2013 Windond Electronics Corp. 4 | * All rights reserved. 5 | * 6 | * $Workfile: sdglue.h $ 7 | * 8 | * $Author: schung $ 9 | ******************************************************************************/ 10 | #ifndef __SDGLUE_H__ 11 | #define __SDGLUE_H__ 12 | 13 | #include "wbtypes.h" 14 | #include "sd.h" 15 | 16 | #define SD_SECTOR 512 17 | #define SD_MUL 8 18 | #define MMC_INFO_SECTOR 1 19 | 20 | INT fmiInitSDDevice(void); 21 | INT fmiSD_Read(UINT32 uSector, UINT32 uBufcnt, UINT32 uDAddr); 22 | INT fmiSD_Write(UINT32 uSector, UINT32 uBufcnt, UINT32 uSAddr); 23 | 24 | 25 | void Burn_MMC_RAW(UINT32 len, UINT32 offset,UINT8 *ptr); 26 | void Read_MMC_RAW(UINT32 len, UINT32 offset,UINT8 *ptr); 27 | 28 | 29 | //------------------------------------------------------------------ 30 | int ChangeMMCImageType(UINT32 imageNo, UINT32 imageType); 31 | int SetMMCImageInfo(FW_MMC_IMAGE_T *mmcImageInfo); 32 | UINT32 GetMMCImageInfo(unsigned int *image); 33 | UINT32 GetMMCReserveSpace(void); 34 | void GetMMCImage(void); 35 | int DelMMCImage(UINT32 imageNo); 36 | #endif 37 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/standalone.c: -------------------------------------------------------------------------------- 1 | /* 2 | * standalone.c - minimal bootstrap for C library 3 | * Copyright (C) 2000 ARM Limited. 4 | * All rights reserved. 5 | */ 6 | 7 | /* 8 | * RCS $Revision: 1 $ 9 | * Checkin $Date: 07/07/05 2:54p $ 0 10 | * Revising $Author: Sjlu0 $ 11 | */ 12 | 13 | /* 14 | * This code defines a run-time environment for the C library. 15 | * Without this, the C startup code will attempt to use semi-hosting 16 | * calls to get environment information. 17 | */ 18 | 19 | extern unsigned int Image$$ROM1$$ZI$$Limit; 20 | 21 | 22 | void _sys_exit(int return_code) 23 | { 24 | label: goto label; /* endless loop */ 25 | } 26 | 27 | void _ttywrch(int ch) 28 | { 29 | char tempch = (char)ch; 30 | (void)tempch; 31 | } 32 | #if 1 33 | __value_in_regs struct R0_R3 {unsigned heap_base, stack_base, heap_limit, stack_limit;} 34 | __user_setup_stackheap(unsigned int R0, unsigned int SP, unsigned int R2, unsigned int SL) 35 | 36 | { 37 | 38 | struct R0_R3 config; 39 | 40 | 41 | config.heap_base = (unsigned int)&Image$$ROM1$$ZI$$Limit; 42 | config.stack_base = SP; 43 | 44 | 45 | return config; 46 | } 47 | #endif 48 | /* end of file standalone.c */ 49 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/wb_init.s: -------------------------------------------------------------------------------- 1 | 2 | 3 | AREA WB_INIT, CODE, READONLY 4 | 5 | ;-------------------------------------------- 6 | ; Mode bits and interrupt flag (I&F) defines 7 | ;-------------------------------------------- 8 | USR_MODE EQU 0x10 9 | FIQ_MODE EQU 0x11 10 | IRQ_MODE EQU 0x12 11 | SVC_MODE EQU 0x13 12 | ABT_MODE EQU 0x17 13 | UDF_MODE EQU 0x1B 14 | SYS_MODE EQU 0x1F 15 | 16 | I_BIT EQU 0x80 17 | F_BIT EQU 0x40 18 | 19 | ;---------------------------- 20 | ; System / User Stack Memory 21 | ;---------------------------- 22 | RAM_Limit EQU 0x01FF0000 ; For unexpanded hardware board 23 | 24 | UND_Stack EQU RAM_Limit 25 | Abort_Stack EQU RAM_Limit+1024 26 | IRQ_Stack EQU RAM_Limit+2048 ; followed by IRQ stack 27 | FIQ_Stack EQU RAM_Limit+3072 ; followed by IRQ stack 28 | SVC_Stack EQU RAM_Limit+4096 ; SVC stack at top of memory 29 | USR_Stack EQU RAM_Limit+5120 30 | 31 | 32 | ENTRY 33 | EXPORT Reset_Go 34 | 35 | 36 | EXPORT Vector_Table 37 | Vector_Table 38 | B Reset_Go ; Modified to be relative jumb for external boot 39 | LDR PC, Undefined_Addr 40 | LDR PC, SWI_Addr 41 | LDR PC, Prefetch_Addr 42 | LDR PC, Abort_Addr 43 | DCD 0x0 44 | LDR PC, IRQ_Addr 45 | LDR PC, FIQ_Addr 46 | 47 | Reset_Addr DCD Reset_Go 48 | Undefined_Addr DCD Undefined_Handler 49 | SWI_Addr DCD SWI_Handler1 50 | Prefetch_Addr DCD Prefetch_Handler 51 | Abort_Addr DCD Abort_Handler 52 | DCD 0 53 | IRQ_Addr DCD IRQ_Handler 54 | FIQ_Addr DCD FIQ_Handler 55 | 56 | 57 | ; ************************ 58 | ; Exception Handlers 59 | ; ************************ 60 | 61 | ; The following dummy handlers do not do anything useful in this example. 62 | ; They are set up here for completeness. 63 | 64 | Undefined_Handler 65 | B Undefined_Handler 66 | SWI_Handler1 67 | B SWI_Handler1 68 | Prefetch_Handler 69 | B Prefetch_Handler 70 | Abort_Handler 71 | B Abort_Handler 72 | IRQ_Handler 73 | B IRQ_Handler 74 | FIQ_Handler 75 | B FIQ_Handler 76 | 77 | 78 | Reset_Go 79 | 80 | ;-------------------------------- 81 | ; Initial Stack Pointer register 82 | ;-------------------------------- 83 | ;INIT_STACK 84 | MSR CPSR_c, #UDF_MODE :OR: I_BIT :OR: F_BIT 85 | LDR SP, =UND_Stack 86 | 87 | MSR CPSR_c, #ABT_MODE :OR: I_BIT :OR: F_BIT 88 | LDR SP, =Abort_Stack 89 | 90 | MSR CPSR_c, #IRQ_MODE :OR: I_BIT :OR: F_BIT 91 | LDR SP, =IRQ_Stack 92 | 93 | MSR CPSR_c, #FIQ_MODE :OR: I_BIT :OR: F_BIT 94 | LDR SP, =FIQ_Stack 95 | 96 | MSR CPSR_c, #SYS_MODE :OR: I_BIT :OR: F_BIT 97 | LDR SP, =USR_Stack 98 | 99 | MSR CPSR_c, #SVC_MODE :OR: I_BIT :OR: F_BIT 100 | LDR SP, =SVC_Stack 101 | 102 | ;------------------------------------------------------ 103 | ; Set the normal exception vector of CP15 control bit 104 | ;------------------------------------------------------ 105 | MRC p15, 0, r0 , c1, c0 ; r0 := cp15 register 1 106 | BIC r0, r0, #0x2000 ; Clear bit13 in r1 107 | MCR p15, 0, r0 , c1, c0 ; cp15 register 1 := r0 108 | 109 | 110 | IMPORT __main 111 | ;----------------------------- 112 | ; enter the C code 113 | ;----------------------------- 114 | B __main 115 | 116 | END 117 | 118 | 119 | 120 | 121 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/wb_init_128.s: -------------------------------------------------------------------------------- 1 | 2 | 3 | AREA WB_INIT, CODE, READONLY 4 | 5 | ;-------------------------------------------- 6 | ; Mode bits and interrupt flag (I&F) defines 7 | ;-------------------------------------------- 8 | USR_MODE EQU 0x10 9 | FIQ_MODE EQU 0x11 10 | IRQ_MODE EQU 0x12 11 | SVC_MODE EQU 0x13 12 | ABT_MODE EQU 0x17 13 | UDF_MODE EQU 0x1B 14 | SYS_MODE EQU 0x1F 15 | 16 | I_BIT EQU 0x80 17 | F_BIT EQU 0x40 18 | 19 | ;---------------------------- 20 | ; System / User Stack Memory 21 | ;---------------------------- 22 | RAM_Limit EQU 0x07FF0000 ; For unexpanded hardware board 23 | 24 | UND_Stack EQU RAM_Limit 25 | Abort_Stack EQU RAM_Limit+1024 26 | IRQ_Stack EQU RAM_Limit+2048 ; followed by IRQ stack 27 | FIQ_Stack EQU RAM_Limit+3072 ; followed by IRQ stack 28 | SVC_Stack EQU RAM_Limit+4096 ; SVC stack at top of memory 29 | USR_Stack EQU RAM_Limit+5120 30 | 31 | 32 | ENTRY 33 | EXPORT Reset_Go 34 | 35 | 36 | EXPORT Vector_Table 37 | Vector_Table 38 | B Reset_Go ; Modified to be relative jumb for external boot 39 | LDR PC, Undefined_Addr 40 | LDR PC, SWI_Addr 41 | LDR PC, Prefetch_Addr 42 | LDR PC, Abort_Addr 43 | DCD 0x0 44 | LDR PC, IRQ_Addr 45 | LDR PC, FIQ_Addr 46 | 47 | Reset_Addr DCD Reset_Go 48 | Undefined_Addr DCD Undefined_Handler 49 | SWI_Addr DCD SWI_Handler1 50 | Prefetch_Addr DCD Prefetch_Handler 51 | Abort_Addr DCD Abort_Handler 52 | DCD 0 53 | IRQ_Addr DCD IRQ_Handler 54 | FIQ_Addr DCD FIQ_Handler 55 | 56 | 57 | ; ************************ 58 | ; Exception Handlers 59 | ; ************************ 60 | 61 | ; The following dummy handlers do not do anything useful in this example. 62 | ; They are set up here for completeness. 63 | 64 | Undefined_Handler 65 | B Undefined_Handler 66 | SWI_Handler1 67 | B SWI_Handler1 68 | Prefetch_Handler 69 | B Prefetch_Handler 70 | Abort_Handler 71 | B Abort_Handler 72 | IRQ_Handler 73 | B IRQ_Handler 74 | FIQ_Handler 75 | B FIQ_Handler 76 | 77 | 78 | Reset_Go 79 | 80 | ;-------------------------------- 81 | ; Initial Stack Pointer register 82 | ;-------------------------------- 83 | ;INIT_STACK 84 | MSR CPSR_c, #UDF_MODE :OR: I_BIT :OR: F_BIT 85 | LDR SP, =UND_Stack 86 | 87 | MSR CPSR_c, #ABT_MODE :OR: I_BIT :OR: F_BIT 88 | LDR SP, =Abort_Stack 89 | 90 | MSR CPSR_c, #IRQ_MODE :OR: I_BIT :OR: F_BIT 91 | LDR SP, =IRQ_Stack 92 | 93 | MSR CPSR_c, #FIQ_MODE :OR: I_BIT :OR: F_BIT 94 | LDR SP, =FIQ_Stack 95 | 96 | MSR CPSR_c, #SYS_MODE :OR: I_BIT :OR: F_BIT 97 | LDR SP, =USR_Stack 98 | 99 | MSR CPSR_c, #SVC_MODE :OR: I_BIT :OR: F_BIT 100 | LDR SP, =SVC_Stack 101 | 102 | ;------------------------------------------------------ 103 | ; Set the normal exception vector of CP15 control bit 104 | ;------------------------------------------------------ 105 | MRC p15, 0, r0 , c1, c0 ; r0 := cp15 register 1 106 | BIC r0, r0, #0x2000 ; Clear bit13 in r1 107 | MCR p15, 0, r0 , c1, c0 ; cp15 register 1 := r0 108 | 109 | 110 | IMPORT __main 111 | ;----------------------------- 112 | ; enter the C code 113 | ;----------------------------- 114 | B __main 115 | 116 | END 117 | 118 | 119 | 120 | 121 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/wb_init_16.s: -------------------------------------------------------------------------------- 1 | 2 | 3 | AREA WB_INIT, CODE, READONLY 4 | 5 | ;-------------------------------------------- 6 | ; Mode bits and interrupt flag (I&F) defines 7 | ;-------------------------------------------- 8 | USR_MODE EQU 0x10 9 | FIQ_MODE EQU 0x11 10 | IRQ_MODE EQU 0x12 11 | SVC_MODE EQU 0x13 12 | ABT_MODE EQU 0x17 13 | UDF_MODE EQU 0x1B 14 | SYS_MODE EQU 0x1F 15 | 16 | I_BIT EQU 0x80 17 | F_BIT EQU 0x40 18 | 19 | ;---------------------------- 20 | ; System / User Stack Memory 21 | ;---------------------------- 22 | RAM_Limit EQU 0x00FF0000 ; For unexpanded hardware board 23 | 24 | UND_Stack EQU RAM_Limit 25 | Abort_Stack EQU RAM_Limit+1024 26 | IRQ_Stack EQU RAM_Limit+2048 ; followed by IRQ stack 27 | FIQ_Stack EQU RAM_Limit+3072 ; followed by IRQ stack 28 | SVC_Stack EQU RAM_Limit+4096 ; SVC stack at top of memory 29 | USR_Stack EQU RAM_Limit+5120 30 | 31 | 32 | ENTRY 33 | EXPORT Reset_Go 34 | 35 | 36 | EXPORT Vector_Table 37 | Vector_Table 38 | B Reset_Go ; Modified to be relative jumb for external boot 39 | LDR PC, Undefined_Addr 40 | LDR PC, SWI_Addr 41 | LDR PC, Prefetch_Addr 42 | LDR PC, Abort_Addr 43 | DCD 0x0 44 | LDR PC, IRQ_Addr 45 | LDR PC, FIQ_Addr 46 | 47 | Reset_Addr DCD Reset_Go 48 | Undefined_Addr DCD Undefined_Handler 49 | SWI_Addr DCD SWI_Handler1 50 | Prefetch_Addr DCD Prefetch_Handler 51 | Abort_Addr DCD Abort_Handler 52 | DCD 0 53 | IRQ_Addr DCD IRQ_Handler 54 | FIQ_Addr DCD FIQ_Handler 55 | 56 | 57 | ; ************************ 58 | ; Exception Handlers 59 | ; ************************ 60 | 61 | ; The following dummy handlers do not do anything useful in this example. 62 | ; They are set up here for completeness. 63 | 64 | Undefined_Handler 65 | B Undefined_Handler 66 | SWI_Handler1 67 | B SWI_Handler1 68 | Prefetch_Handler 69 | B Prefetch_Handler 70 | Abort_Handler 71 | B Abort_Handler 72 | IRQ_Handler 73 | B IRQ_Handler 74 | FIQ_Handler 75 | B FIQ_Handler 76 | 77 | 78 | Reset_Go 79 | 80 | ;-------------------------------- 81 | ; Initial Stack Pointer register 82 | ;-------------------------------- 83 | ;INIT_STACK 84 | MSR CPSR_c, #UDF_MODE :OR: I_BIT :OR: F_BIT 85 | LDR SP, =UND_Stack 86 | 87 | MSR CPSR_c, #ABT_MODE :OR: I_BIT :OR: F_BIT 88 | LDR SP, =Abort_Stack 89 | 90 | MSR CPSR_c, #IRQ_MODE :OR: I_BIT :OR: F_BIT 91 | LDR SP, =IRQ_Stack 92 | 93 | MSR CPSR_c, #FIQ_MODE :OR: I_BIT :OR: F_BIT 94 | LDR SP, =FIQ_Stack 95 | 96 | MSR CPSR_c, #SYS_MODE :OR: I_BIT :OR: F_BIT 97 | LDR SP, =USR_Stack 98 | 99 | MSR CPSR_c, #SVC_MODE :OR: I_BIT :OR: F_BIT 100 | LDR SP, =SVC_Stack 101 | 102 | ;------------------------------------------------------ 103 | ; Set the normal exception vector of CP15 control bit 104 | ;------------------------------------------------------ 105 | MRC p15, 0, r0 , c1, c0 ; r0 := cp15 register 1 106 | BIC r0, r0, #0x2000 ; Clear bit13 in r1 107 | MCR p15, 0, r0 , c1, c0 ; cp15 register 1 := r0 108 | 109 | 110 | IMPORT __main 111 | ;----------------------------- 112 | ; enter the C code 113 | ;----------------------------- 114 | B __main 115 | 116 | END 117 | 118 | 119 | 120 | 121 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/wb_init_64.s: -------------------------------------------------------------------------------- 1 | 2 | 3 | AREA WB_INIT, CODE, READONLY 4 | 5 | ;-------------------------------------------- 6 | ; Mode bits and interrupt flag (I&F) defines 7 | ;-------------------------------------------- 8 | USR_MODE EQU 0x10 9 | FIQ_MODE EQU 0x11 10 | IRQ_MODE EQU 0x12 11 | SVC_MODE EQU 0x13 12 | ABT_MODE EQU 0x17 13 | UDF_MODE EQU 0x1B 14 | SYS_MODE EQU 0x1F 15 | 16 | I_BIT EQU 0x80 17 | F_BIT EQU 0x40 18 | 19 | ;---------------------------- 20 | ; System / User Stack Memory 21 | ;---------------------------- 22 | RAM_Limit EQU 0x03FF0000 ; For unexpanded hardware board 23 | 24 | UND_Stack EQU RAM_Limit 25 | Abort_Stack EQU RAM_Limit+1024 26 | IRQ_Stack EQU RAM_Limit+2048 ; followed by IRQ stack 27 | FIQ_Stack EQU RAM_Limit+3072 ; followed by IRQ stack 28 | SVC_Stack EQU RAM_Limit+4096 ; SVC stack at top of memory 29 | USR_Stack EQU RAM_Limit+5120 30 | 31 | 32 | ENTRY 33 | EXPORT Reset_Go 34 | 35 | 36 | EXPORT Vector_Table 37 | Vector_Table 38 | B Reset_Go ; Modified to be relative jumb for external boot 39 | LDR PC, Undefined_Addr 40 | LDR PC, SWI_Addr 41 | LDR PC, Prefetch_Addr 42 | LDR PC, Abort_Addr 43 | DCD 0x0 44 | LDR PC, IRQ_Addr 45 | LDR PC, FIQ_Addr 46 | 47 | Reset_Addr DCD Reset_Go 48 | Undefined_Addr DCD Undefined_Handler 49 | SWI_Addr DCD SWI_Handler1 50 | Prefetch_Addr DCD Prefetch_Handler 51 | Abort_Addr DCD Abort_Handler 52 | DCD 0 53 | IRQ_Addr DCD IRQ_Handler 54 | FIQ_Addr DCD FIQ_Handler 55 | 56 | 57 | ; ************************ 58 | ; Exception Handlers 59 | ; ************************ 60 | 61 | ; The following dummy handlers do not do anything useful in this example. 62 | ; They are set up here for completeness. 63 | 64 | Undefined_Handler 65 | B Undefined_Handler 66 | SWI_Handler1 67 | B SWI_Handler1 68 | Prefetch_Handler 69 | B Prefetch_Handler 70 | Abort_Handler 71 | B Abort_Handler 72 | IRQ_Handler 73 | B IRQ_Handler 74 | FIQ_Handler 75 | B FIQ_Handler 76 | 77 | 78 | Reset_Go 79 | 80 | ;-------------------------------- 81 | ; Initial Stack Pointer register 82 | ;-------------------------------- 83 | ;INIT_STACK 84 | MSR CPSR_c, #UDF_MODE :OR: I_BIT :OR: F_BIT 85 | LDR SP, =UND_Stack 86 | 87 | MSR CPSR_c, #ABT_MODE :OR: I_BIT :OR: F_BIT 88 | LDR SP, =Abort_Stack 89 | 90 | MSR CPSR_c, #IRQ_MODE :OR: I_BIT :OR: F_BIT 91 | LDR SP, =IRQ_Stack 92 | 93 | MSR CPSR_c, #FIQ_MODE :OR: I_BIT :OR: F_BIT 94 | LDR SP, =FIQ_Stack 95 | 96 | MSR CPSR_c, #SYS_MODE :OR: I_BIT :OR: F_BIT 97 | LDR SP, =USR_Stack 98 | 99 | MSR CPSR_c, #SVC_MODE :OR: I_BIT :OR: F_BIT 100 | LDR SP, =SVC_Stack 101 | 102 | ;------------------------------------------------------ 103 | ; Set the normal exception vector of CP15 control bit 104 | ;------------------------------------------------------ 105 | MRC p15, 0, r0 , c1, c0 ; r0 := cp15 register 1 106 | BIC r0, r0, #0x2000 ; Clear bit13 in r1 107 | MCR p15, 0, r0 , c1, c0 ; cp15 register 1 := r0 108 | 109 | 110 | IMPORT __main 111 | ;----------------------------- 112 | ; enter the C code 113 | ;----------------------------- 114 | B __main 115 | 116 | END 117 | 118 | 119 | 120 | 121 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/source/wbfmi.h: -------------------------------------------------------------------------------- 1 | #ifndef _FMILIB_H_ 2 | #define _FMILIB_H_ 3 | 4 | #define FMI_SD_CARD0 0 5 | #define FMI_SD_CARD1 1 6 | #define FMI_SM_CARD 2 7 | #define FMI_MS_CARD0 3 8 | #define FMI_MS_CARD1 4 9 | 10 | #define FMI_MS_TYPE 0 11 | #define FMI_MSPRO_TYPE 1 12 | 13 | #define FMI_SD_WRITE_PROTECT -1 14 | #define FMI_NO_SD_CARD -2 15 | #define FMI_NO_SM_CARD -3 16 | #define FMI_SD_INIT_ERROR -4 17 | #define FMI_SM_INIT_ERROR -5 18 | #define FMI_SD_CRC7_ERROR -6 19 | #define FMI_SD_CRC16_ERROR -7 20 | #define FMI_SD_CRC_ERROR -8 21 | #define FMI_SM_STATE_ERROR -9 22 | #define FMI_SM_ECC_ERROR -10 23 | #define FMI_ERR_DEVICE -11 24 | #define FMI_TIMEOUT -12 25 | #define FMI_SD_INIT_TIMEOUT -13 26 | #define FMI_SD_SELECT_ERROR -14 27 | #define FMI_MS_INIT_ERROR -15 28 | #define FMI_MS_INT_TIMEOUT -16 29 | #define FMI_MS_BUSY_TIMEOUT -17 30 | #define FMI_MS_CRC_ERROR -18 31 | #define FMI_MS_INT_CMDNK -19 32 | #define FMI_MS_INT_ERR -20 33 | #define FMI_MD_INT_BREQ -21 34 | #define FMI_MS_INT_CED_ERR -22 35 | #define FMI_MS_READ_PAGE_ERROR -23 36 | #define FMI_MS_COPY_PAGE_ERR -24 37 | #define FMI_MS_ALLOC_ERR -25 38 | #define FMI_MS_WRONG_SEGMENT -26 39 | #define FMI_MS_WRONG_PHYBLOCK -27 40 | #define FMI_MS_WRONG_TYPE -28 41 | #define FMI_MS_WRITE_DISABLE -29 42 | #define FMI_NO_MS_CARD -30 43 | #define FMI_SM_RB_ERR -31 44 | #define FMI_SM_STATUS_ERR -32 45 | 46 | #define FMI_SD_CMD8_ERROR -33 47 | 48 | // function prototype 49 | VOID fmiInitDevice(void); 50 | VOID fmiSetFMIReferenceClock(UINT32 uClock); 51 | 52 | INT fmiSD_Read(UINT32 uChipSel, UINT32 uSector, UINT32 uBufcnt, UINT32 uDAddr); 53 | INT fmiSD_Write(UINT32 uChipSel, UINT32 uSector, UINT32 uBufcnt, UINT32 uSAddr); 54 | INT fmiSM_Read(UINT32 uChipSel, UINT32 uSector, UINT32 uBufcnt, UINT32 uDAddr); 55 | INT fmiSM_Write(UINT32 uChipSel, UINT32 uSector, UINT32 uBufcnt, UINT32 uSAddr); 56 | INT fmiSM_ChipErase(UINT32 uChipSel); 57 | INT fmiMS_Read(UINT32 uChipSel, UINT32 uSector, UINT32 uBufcnt, UINT32 uDAddr); 58 | INT fmiMS_Write(UINT32 uChipSel, UINT32 uSector, UINT32 uBufcnt, UINT32 uSAddr); 59 | 60 | // for file system 61 | INT fmiInitSMDevice(UINT32 uChipSel); 62 | INT fmiInitSDDevice(UINT32 uChipSel); 63 | INT fmiInitMSDevice(UINT32 uChipSel); 64 | //PDISK_T *fmiGetpDisk(UINT32 uCard); 65 | 66 | // callback function 67 | VOID fmiSetCallBack(UINT32 uCard, PVOID pvRemove, PVOID pvInsert); 68 | 69 | #endif //_FMILIB_H_ 70 | -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/xusb.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriterFW/NuWriterFW/xusb.bin -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/xusb128MB.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriterFW/NuWriterFW/xusb128MB.bin -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/xusb16MB.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriterFW/NuWriterFW/xusb16MB.bin -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/xusb32MB.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriterFW/NuWriterFW/xusb32MB.bin -------------------------------------------------------------------------------- /NuWriterFW/NuWriterFW/xusb64MB.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriterFW/NuWriterFW/xusb64MB.bin -------------------------------------------------------------------------------- /NuWriterFW/SYSLIB/Lib/wberrcode.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | * * 3 | * Copyright (c) 2008 Nuvoton Technology. All rights reserved. * 4 | * * 5 | ***************************************************************************/ 6 | 7 | /**************************************************************************** 8 | * 9 | * FILENAME 10 | * wberrcode.h 11 | * 12 | * VERSION 13 | * 1.0 14 | * 15 | * DESCRIPTION 16 | * The Error Codes returned by Nuvoton S/W library are defined as the following 17 | * format: 18 | * 0xFFFFXX## (XX : Module ID, ##:Error Number) 19 | * 20 | * The Module IDs for each S/W library are defined in this file. The error 21 | * numbers are defined by S/W library according to its requirement. 22 | * 23 | * 24 | * DATA STRUCTURES 25 | * None 26 | * 27 | * FUNCTIONS 28 | * None 29 | * 30 | * HISTORY 31 | * 2008-06-26 Ver 1.0 draft by Min-Nan Cheng 32 | * REMARK 33 | * None 34 | **************************************************************************/ 35 | #ifndef _WBERRCODE_H_ 36 | #define _WBERRCODE_H_ 37 | 38 | /* Error Code's Module ID */ 39 | #define FMI_ERR_ID 0xFFFF0100 /* FMI library ID */ 40 | #define ADO_ERR_ID 0xFFFF0200 /* Audio library ID */ 41 | #define USB_ERR_ID 0xFFFF0300 /* USB Device library ID */ 42 | #define GDMA_ERR_ID 0xFFFF0400 /* GDMA library ID */ 43 | #define ATA_ERR_ID 0xFFFF0500 /* ATA library ID */ 44 | #define DMAC_ERR_ID 0xFFFF0600 /* DMA library ID */ 45 | #define TMR_ERR_ID 0xFFFF0700 /* Timer library ID */ 46 | #define GE_ERR_ID 0xFFFF0800 /* 2D graphics library ID */ 47 | #define AIC_ERR_ID 0xFFFF0900 /* AIC library ID */ 48 | #define SYSLIB_ERR_ID 0xFFFF0A00 /* System library ID */ 49 | #define USBO_ERR_ID 0xFFFF0C00 /* OHCI library ID */ 50 | #define USBH_ERR_ID 0xFFFF0D00 /* USB Host library ID */ 51 | #define RTC_ERR_ID 0xFFFF0E00 /* RTC library ID */ 52 | #define GPIO_ERR_ID 0xFFFF0F00 /* GPIO library ID */ 53 | #define SMARTCARD_ERR_ID 0xFFFF1000 /* Smartcard library ID */ 54 | #define I2C_ERR_ID 0xFFFF1100 /* I2C library ID */ 55 | #define SPI_ERR_ID 0xFFFF1200 /* SPI library ID */ 56 | #define PWM_ERR_ID 0xFFFF1300 /* PWM library ID */ 57 | #define KEYPAD_ERR_ID 0xFFFF1400 /* KEYPAD library ID*/ 58 | #define PS2_ERR_ID 0xFFFF1500 /* PS2 library ID */ 59 | #define MAC_ERR_ID 0xFFFF1600 /* MAC library ID */ 60 | #define UART_ERR_ID 0xFFFF1700 /* UART library ID */ 61 | #define LCD_ERR_ID 0xFFFF1800 /* LCD library ID */ 62 | #define USI_ERR_ID 0xFFFF1900 /* USI library ID */ 63 | #define ADC_ERR_ID 0xFFFF1A00 /* ADC library ID */ 64 | 65 | 66 | #define FAT_ERR_ID 0xFFFF8200 /* FAT file system library ID */ 67 | #define AACE_ERR_ID 0xFFFF8400 /* AAC encoder ID */ 68 | #define AACD_ERR_ID 0xFFFF8600 /* AAC/AAC+ decoder ID */ 69 | #define AMRNE_ERR_ID 0xFFFF8800 /* AMR NB encoder ID */ 70 | #define AMRND_ERR_ID 0xFFFF8A00 /* AMR NB decoder ID */ 71 | #define AMRWD_ERR_ID 0xFFFF8C00 /* AMR WB decoder ID */ 72 | #define MP3_ERR_ID 0xFFFF9000 /* MP3 decoder ID */ 73 | #define WMA_ERR_ID 0xFFFF9200 /* WMA decoder ID */ 74 | #define ADPCM_ERR_ID 0xFFFF9400 /* ADPCM encoder/decoder ID */ 75 | 76 | #define FONT_ERR_ID 0xFFFFA000 /* FONT library ID */ 77 | #define FILTER_ERR_ID 0xFFFFA200 /* Image Filter library ID */ 78 | #define PBRIDGE_ERR_ID 0xFFFFA400 /* PictBridge ID */ 79 | 80 | /* Macros for handing error code */ 81 | #define WBAPI_RESULT_IS_ERROR(value) ((value) < 0) ? 1 : 0 /* 1:error, 0:non-err */ 82 | #define WBAPI_GET_ERROR_ID(value) ((value) & 0x0000FF00) >> 8 /* get Module ID of error code */ 83 | #define WBAPI_GET_ERROR_NUMBER(value) ((value) & 0x000000FF) /* get Error Number of error code */ 84 | 85 | /* Error Number defined by XXX library */ 86 | 87 | #endif /* _WBERRCODE_H */ 88 | -------------------------------------------------------------------------------- /NuWriterFW/SYSLIB/Lib/wbio.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * * 3 | * Copyright (c) 2008 Nuvoton Technology. All rights reserved. * 4 | * * 5 | ***************************************************************************/ 6 | 7 | /**************************************************************************** 8 | * 9 | * FILENAME 10 | * WBIO.h 11 | * 12 | * VERSION 13 | * 1.0 14 | * 15 | * DESCRIPTION 16 | * This file contains I/O macros, and basic macros and inline functions. 17 | * 18 | * DATA STRUCTURES 19 | * None 20 | * 21 | * FUNCTIONS 22 | * None 23 | * 24 | * HISTORY 25 | * 03/28/02 Ver 1.0 Created by PC30 YCHuang 26 | * 27 | * REMARK 28 | * None 29 | **************************************************************************/ 30 | 31 | #ifndef _WBIO_H 32 | #define _WBIO_H 33 | 34 | #ifndef _WBTYPES_H_ 35 | #include "wbtypes.h" 36 | #endif 37 | 38 | /* W90N960 */ 39 | #define LITTLE_ENDIAN 40 | 41 | 42 | #define outpb(port,value) (*((UINT8 volatile *) (port))=value) 43 | #define inpb(port) (*((UINT8 volatile *) (port))) 44 | #define outphw(port,value) (*((UINT16 volatile *) (port))=value) 45 | #define inphw(port) (*((UINT16 volatile *) (port))) 46 | #define outpw(port,value) (*((UINT32 volatile *) (port))=value) 47 | #define inpw(port) (*((UINT32 volatile *) (port))) 48 | 49 | #define readb(addr) (*(UINT8 volatile *)(addr)) 50 | #define writeb(addr,x) ((*(UINT8 volatile *)(addr)) = (UINT8 volatile)x) 51 | #define readhw(addr) (*(UINT16 volatile *)(addr)) 52 | #define writehw(addr,x) ((*(UINT16 volatile *)(addr)) = (UINT16 volatile)x) 53 | #define readw(addr) (*(UINT32 volatile *)(addr)) 54 | #define writew(addr,x) ((*(UINT32 volatile *)(addr)) = (UINT32 volatile)x) 55 | 56 | #define Maximum(a,b) (a>b ? a : b) 57 | #define Minimum(a,b) (a=b ? 1 : 0) 62 | #define LittleEqual(a,b) (a<=b ? 1 : 0) 63 | 64 | static __inline UINT16 Swap16(UINT16 val) 65 | { 66 | return (val<<8) | (val>>8); 67 | } 68 | 69 | static __inline UINT32 Swap32(UINT32 val) 70 | { 71 | return (val<<24) | ((val<<8)&0xff0000) | ((val>>8)&0xff00) | (val>>24); 72 | } 73 | 74 | static __inline UINT16 Get16(PUINT8 addr) 75 | { 76 | #ifdef LITTLE_ENDIAN 77 | return ((addr[1]<<8) | addr[0]); 78 | #else 79 | return ((addr[0]<<8) | addr[1]); 80 | #endif 81 | } 82 | 83 | static __inline UINT32 Get32(PUINT8 addr) 84 | { 85 | #ifdef LITTLE_ENDIAN 86 | return (addr[3]<<24) | (addr[2]<<16) | (addr[1]<<8) | addr[0]; 87 | #else 88 | return (addr[0]<<24) | (addr[1]<<16) | (addr[2]<<8) | addr[3]; 89 | #endif 90 | } 91 | 92 | static __inline void Set16(UINT16 val, PUINT8 addr) 93 | { 94 | #ifdef LITTLE_ENDIAN 95 | addr[0] = (UINT8) val; 96 | addr[1] = (UINT8)(val >> 8); 97 | #else 98 | addr[0] = (UINT8)(val >> 8); 99 | addr[1] = (UINT8) val; 100 | #endif 101 | } 102 | 103 | static __inline void Set32(UINT32 val, PUINT8 addr) 104 | { 105 | #ifdef LITTLE_ENDIAN 106 | addr[0] = (UINT8) val; 107 | addr[1] = (UINT8)(val >> 8); 108 | addr[2] = (UINT8)(val >> 16); 109 | addr[3] = (UINT8)(val >> 24); 110 | #else 111 | addr[0] = (UINT8)(val >> 24); 112 | addr[1] = (UINT8)(val >> 16); 113 | addr[2] = (UINT8)(val >> 8); 114 | addr[3] = (UINT8) val & 0xff; 115 | #endif 116 | } 117 | 118 | #endif /* _WBIO_H */ 119 | 120 | -------------------------------------------------------------------------------- /NuWriterFW/SYSLIB/Lib/wbtypes.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | * * 3 | * Copyright (c) 2008 Nuvoton Technology. All rights reserved. * 4 | * * 5 | ***************************************************************************/ 6 | 7 | /**************************************************************************** 8 | * 9 | * FILENAME 10 | * wbtypes.h 11 | * 12 | * VERSION 13 | * 1.0 14 | * 15 | * DESCRIPTION 16 | * This file contains PreDefined data types for NUC900 software development 17 | * 18 | * DATA STRUCTURES 19 | * None 20 | * 21 | * FUNCTIONS 22 | * None 23 | * 24 | * HISTORY 25 | * 03/11/02 Ver 1.0 Created by PC30 YCHuang 26 | * 27 | * REMARK 28 | * None 29 | **************************************************************************/ 30 | 31 | #ifndef _WBTYPES_H 32 | #define _WBTYPES_H 33 | 34 | /* Nuvoton NUC900 coding standard draft 2.0 */ 35 | /* wbtypes.h Release 1.0 */ 36 | 37 | #define CONST const 38 | 39 | #define FALSE 0 40 | #define TRUE 1 41 | 42 | typedef void VOID; 43 | typedef void * PVOID; 44 | 45 | typedef char BOOL; 46 | typedef char * PBOOL; 47 | 48 | typedef char INT8; 49 | typedef char CHAR; 50 | typedef char * PINT8; 51 | typedef char * PCHAR; 52 | typedef unsigned char UINT8; 53 | typedef unsigned char UCHAR; 54 | typedef unsigned char * PUINT8; 55 | typedef unsigned char * PUCHAR; 56 | typedef char * PSTR; 57 | typedef const char * PCSTR; 58 | 59 | typedef short SHORT; 60 | typedef short * PSHORT; 61 | typedef unsigned short USHORT; 62 | typedef unsigned short * PUSHORT; 63 | 64 | typedef short INT16; 65 | typedef short * PINT16; 66 | typedef unsigned short UINT16; 67 | typedef unsigned short * PUINT16; 68 | 69 | typedef int INT; 70 | typedef int * PINT; 71 | typedef unsigned int UINT; 72 | typedef unsigned int * PUINT; 73 | 74 | typedef int INT32; 75 | typedef int * PINT32; 76 | typedef unsigned int UINT32; 77 | typedef unsigned int * PUINT32; 78 | 79 | typedef __int64 INT64; 80 | typedef unsigned __int64 UINT64; 81 | 82 | typedef float FLOAT; 83 | typedef float * PFLOAT; 84 | 85 | typedef double DOUBLE; 86 | typedef double * PDOUBLE; 87 | 88 | typedef int SIZE_T; 89 | 90 | typedef unsigned char REG8; 91 | typedef unsigned short REG16; 92 | typedef unsigned int REG32; 93 | 94 | #endif /* _WBTYPES_H */ 95 | 96 | -------------------------------------------------------------------------------- /NuWriterFW/SYSLIB/Src/SysLib/obj/syslib.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OpenNuvoton/NUC970_NuWriter/7bf45ccc67c94d9327280ee6b3ce9186fd469a79/NuWriterFW/SYSLIB/Src/SysLib/obj/syslib.lib -------------------------------------------------------------------------------- /NuWriterFW/SYSLIB/Src/wb_config.c: -------------------------------------------------------------------------------- 1 | 2 | /*************************************************************************** 3 | * * 4 | * Copyright (c) 2008 Nuvoton Technolog. All rights reserved. * 5 | * * 6 | ***************************************************************************/ 7 | /**************************************************************************** 8 | * 9 | * FILENAME : wb_config.c 10 | * 11 | * VERSION : 1.0 12 | * 13 | * DESCRIPTION : 14 | * PLL control functions of Nuvoton ARM9 MCU 15 | * 16 | * HISTORY 17 | * 2008-06-25 Ver 1.0 draft by Min-Nan Cheng 18 | * 19 | ****************************************************************************/ 20 | #include "wblib.h" 21 | 22 | WB_PLL_T _sysClock; 23 | 24 | 25 | int sysSetPLLConfig(WB_PLL_T *sysClk) 26 | { 27 | #if 0 28 | unsigned volatile int loop; 29 | 30 | outpw(REG_CLKSEL, inpw(REG_CLKSEL)|CPU_FROM_EXTAL15M); /* system clock source is from external clock */ 31 | 32 | outpw(REG_PLLCON0, sysClk->pll0); //PLL0 output 33 | outpw(REG_PLLCON1, sysClk->pll1); //PLL1 output 34 | 35 | outpw(REG_CLKDIV, inpw(REG_CLKDIV)|(sysClk->ahb_clk<<24)|(sysClk->apb_clk<<26)); //clcok divider 36 | 37 | for (loop=0; loop<0x10000; loop++) ; //waits for 1~2 ms 38 | 39 | if (sysClk->cpu_src == CPU_FROM_PLL0) 40 | { 41 | //if (sysClk->pll0 == PLL_200MHZ) 42 | // outpw(REG_CKSKEW, (inpw(REG_CKSKEW)&0xFFFFFF00)|0x64); 43 | if ((sysClk->pll0 == PLL_133MHZ) && (sysClk->ahb_clk == AHB_CPUCLK_1_1)) 44 | outpw(REG_CKSKEW, (inpw(REG_CKSKEW)&0xFFFFFF00)|0x44); 45 | else 46 | outpw(REG_CKSKEW, (inpw(REG_CKSKEW)&0xFFFFFF00)|0x48); 47 | 48 | } 49 | else if (sysClk->cpu_src == CPU_FROM_PLL1) 50 | { 51 | //if (sysClk->pll1 == PLL_200MHZ) 52 | // outpw(REG_CKSKEW, (inpw(REG_CKSKEW)&0xFFFFFF00)|0x64); 53 | //else 54 | if ((sysClk->pll1 == PLL_133MHZ) && (sysClk->ahb_clk == AHB_CPUCLK_1_1)) 55 | outpw(REG_CKSKEW, (inpw(REG_CKSKEW)&0xFFFFFF00)|0x44); 56 | else 57 | outpw(REG_CKSKEW, (inpw(REG_CKSKEW)&0xFFFFFF00)|0x48); 58 | 59 | } 60 | else 61 | outpw(REG_CKSKEW, (inpw(REG_CKSKEW)&0xFFFFFF00)|0x48); 62 | 63 | 64 | /* 65 | if ((sysClk->cpu_src == CPU_FROM_PLL0) && (sysClk->pll0 == PLL_200MHZ)) 66 | outpw(REG_CKSKEW, (inpw(REG_CKSKEW)&0xFFFFFF00)|0x64); 67 | else if ((sysClk->cpu_src == CPU_FROM_PLL1) && (sysClk->pll1 == PLL_200MHZ)) 68 | outpw(REG_CKSKEW, (inpw(REG_CKSKEW)&0xFFFFFF00)|0x64); 69 | else 70 | outpw(REG_CKSKEW, (inpw(REG_CKSKEW)&0xFFFFFF00)|0x68); 71 | */ 72 | outpw(REG_CLKSEL, (inpw(REG_CLKSEL)&0xFFFFFFFC)|sysClk->cpu_src); 73 | 74 | /* added by cmn [09/11/2007] */ 75 | _sysClock.pll0 = sysClk->pll0; 76 | _sysClock.pll1 = sysClk->pll1; 77 | _sysClock.cpu_src = sysClk->cpu_src; 78 | _sysClock.ahb_clk = sysClk->ahb_clk; 79 | _sysClock.apb_clk = sysClk->apb_clk; 80 | #endif 81 | 82 | return 0; 83 | 84 | } /* end sysSetPLLConfig */ 85 | 86 | 87 | 88 | int sysGetPLLConfig(WB_PLL_T *sysClk) 89 | { 90 | 91 | sysClk->pll0 = _sysClock.pll0; 92 | sysClk->pll1 = _sysClock.pll1; 93 | sysClk->cpu_src = _sysClock.cpu_src; 94 | sysClk->ahb_clk = _sysClock.ahb_clk; 95 | sysClk->apb_clk = _sysClock.apb_clk; 96 | 97 | return 0; 98 | 99 | } /* end sysGetPLLConfig */ 100 | -------------------------------------------------------------------------------- /NuWriterFW/SYSLIB/Src/wb_dcache.s: -------------------------------------------------------------------------------- 1 | ;/*************************************************************************** 2 | ; * * 3 | ; * Copyright (c) 2008 Nuvoton Technolog. All rights reserved. * 4 | ; * * 5 | ; ***************************************************************************/ 6 | ; 7 | 8 | AREA MEM_INIT, CODE, READONLY 9 | 10 | EXPORT sys_flush_and_clean_dcache 11 | 12 | sys_flush_and_clean_dcache 13 | 14 | tci_loop 15 | MRC p15, 0, r15, c7, c14, 3 ; test clean and invalidate 16 | BNE tci_loop 17 | 18 | BX r14 19 | 20 | 21 | END 22 | -------------------------------------------------------------------------------- /NuWriterFW/SYSLIB/Src/wb_sysctl.s: -------------------------------------------------------------------------------- 1 | ;/*************************************************************************** 2 | ; * * 3 | ; * Copyright (c) 2008 Nuvoton Technology. All rights reserved. * 4 | ; * * 5 | ; ***************************************************************************/ 6 | ; 7 | 8 | AREA SYS_INIT, CODE, READONLY 9 | 10 | EXPORT sysSetupCP15 11 | 12 | sysSetupCP15 13 | 14 | MOV r1, r0 ; _mmuSectionTable 15 | MCR p15, 0, r1, c2, c0, 0 ; write translation table base register c2 16 | 17 | MOV r1, #0x40000000 18 | MCR p15, 0, r1, c3, c0, 0 ; domain access control register c3 19 | 20 | MRC p15, 0, r1, c1, c0, 0 ; read control register c1 21 | ORR r1, r1, #0x1000 ; set enable icache bit 22 | ORR r1, r1, #0x5 ; set enable dcache and MMU bits 23 | MCR p15, 0, r1, c1, c0, 0 ; write control regiser c1 24 | 25 | BX r14 26 | 27 | 28 | END 29 | --------------------------------------------------------------------------------