diff --git a/0_Doc/0_Update Folder/Jira memo.txt b/0_Doc/0_Update Folder/Jira memo.txt new file mode 100644 index 0000000..a01c0d4 --- /dev/null +++ b/0_Doc/0_Update Folder/Jira memo.txt @@ -0,0 +1,43 @@ +■ Jira MCAL 팀에 문의시(티켓 토스) +1. Label변경: REKR -> MCAL_team_SoC +2. 담당자 삭제 + +■ Jira 답글 + +> MCAL experts +Dears MCAL experts +Dears Renesas experts +Hello, Phat Phan. +Hello, Mobis India Team. +Hello, Team + +This is gentle reminder. +Could you please review and support this ticket ? + +If you don't mind, Could you let me know update information? + +The customer has requested a conference call with the Renesas person in charge to review the progress and discuss questions. +Please let us know your available schedule time slots for a conference call in the afternoon, Japan Standard Time. + +------------------------------------------- +Thank you for your time and consideration. + +Best regards +Woody.Jang +------------------------------------------- + +Hello, Renesas Team + +I have updated the materials as previously shared on Teams. +Please review them for your reference. + +Best regards +Woody.Jang + + +Since there are no respond in a while, I will be proceeding to close the ticket. +Please feel free to reopen it if you still need additional support. +Thank you for your time and consideration. + +Thank you for your speech. +Let's continue next Monday. diff --git a/0_Doc/0_Update Folder/Mobis_정례_메모.xlsx b/0_Doc/0_Update Folder/Mobis_정례_메모.xlsx new file mode 100644 index 0000000..27a5bfb Binary files /dev/null and b/0_Doc/0_Update Folder/Mobis_정례_메모.xlsx differ diff --git a/0_Doc/0_Update Folder/PRK3 MCU Issue History.txt b/0_Doc/0_Update Folder/PRK3 MCU Issue History.txt new file mode 100644 index 0000000..27032c3 --- /dev/null +++ b/0_Doc/0_Update Folder/PRK3 MCU Issue History.txt @@ -0,0 +1,401 @@ +ڣɾ PMIC (w/MTCI) https://onefieldjira.renesas.com/browse/REKR_MOBIS-597 + PMIC I2C End Notification ȣ⿡ (6/187/18) + ? ü Workaround Spinlock ȵ + ?Aging Ͽ ͸ (7/1) + + ۸׻罺 յ (7/1) + ? ߻ Ư ° ׻罺 翡 + ?7/11 ׻罺 亯 ޷ Ǵ Ϳ ƴϾ 7/14 Ϳ û + +> Mobis յ , I2C ϵ ȸε ̻ Ȯ, I2C 켱 , I2C Ŭ , ׸ I2C Լ ϰ Ȯ Ͽ, ٸ ߰ߵ ʾҽϴ. +> ̿ ߻ ÿ Ͽ Jira(https://onefieldjira.renesas.com/browse/REKR_MOBIS-597)) 翡 Ͽ, ȸ Դϴ. + + + ߻? +Ŭ Ͱ 2 . ҽǵǴ . ϱ? ͸ ٴ Ѱ? +ͷƮ ߻ϴ ? + +> м +>ȸǹ? ϸ ? +> ε ٿ Testغ +> ٸ I2C ̽ غ + + +ߴ ܵα + + + Լ ʱȭ ص Ͱ ? + ϴ ? + + + γ ̳ʸ ־ Ȯغ. + PMIC I2C ϸ ? + PMIC I2C Ȯغ + + + PMIC ִµ + + 1.2 SM 6.10 Unintended Interrupt Check ׸ ׽Ʈ ͷƮ ׻ 1023 ׻罺 ڸƿ û(7/11) + - https://onefieldjira.renesas.com/browse/REKR_MOBIS-694 + Mobis ε PMIC ȸ ־ϴ. Support ʿϴٰ ǴܵǾ Jira Mobis ε û ߽ϴ. +> Mobis ε ü CloseϿϴ. + + +I2C Frequency, Duty ̵ û(7/10) + 365kHz, 25% 400kHz, 50% ʿ + Mobis ׽Ʈ Duty 50% ȮεǾ, ǽɵǴ κп ߰ ޶ Mobis ûϿϴ. +> Mobis Ȯ . + +ڣGlobal timestamp ġ û(7/14) + A-Core(Linux) Timestamp ڵ带 ϰ , ̸ 񽺿 Ͽϴ. (https://onefieldjira.renesas.com/browse/REKR_MOBIS-686) + ش ڵ GHS RH850 Ϸ(ICUMX IPL) GCC ARM 10.3 Ϸ(CR5 ھ CA ھ ) 尡 Ǵ Ȯ Ͽϴ. + ̿ 񽺰 Autosar R-Core ȯ濡 ° ش ڵ带 Ͽ ؾ մϴ. +> Mobis + +4. Safety Mechanism + SAN ؼ Unintended Interrupt Check ϶  ϰ  ͷƮ ߴ Ʈ м ʿ. + + PG û + CR52-Core Ϻ Safety Mechanism ϷѴ. + ִ ̵尡 ʿϴ. CR52-Core Safety Sample Code ڷḦ ûѴ. + + AI + Post Build Time  ǹ Ȯ + ECM( ) Ͽ 6.10 Unintended Interrupt Check , + ʿ װ ͷƮ ˸  Ǵ Ȯ + + sob san 6 Ҵ  + api  ޴. Ȯ + + Ʈ ε. Ʈ н  Ǵ. + ecm Ʈ ϴ Ʈ Űó Ȯ + ֱ. + + +Summary +ɾ PMIC + 1.1 I2C Error + PGκ Jira ǿ ȸ ٸ , Բ ش ֿ켱 ϰ ֽϴ. + + 1.2 SM 6.10 Unintended Interrupt Check ׸ ׽Ʈ ͷƮ ׻ 1023 + Mobis ε Jira ϷϿ, ش ̽ Mobis ü (Close) óϿϴ. + +I2C Frequency, Duty ̵ û + (365kHz, 25% 400kHz, 50% ʿ) + Mobis ׽Ʈ , Ƽ(Duty) 50% ȮεǾ, ǽɵǴ κп ߰ ûϿ Mobis Ȯ Դϴ. + Mobis Duty 50% ϴ Ȯ(Close) + +Global timestamp ġ û(7/14) + A-Core(Linux) Ÿӽ ڵ带 Mobis Ͽ, Mobis R-Core ȯ濡 ° ش ڵ带 Դϴ. + + + Ʒ Update ʾƵ . + 13 , PRK3 TMM material +MCU Issue ǥ . + ϴ 켱 CR-Core Issue Ʈ Դϴ. +1. CR-Core PMIC I2C ϴµ ϰ I2C Ϸ ͷƮ ߻ ʴ Դϴ. + +  Ȯ Ҳ + ߻ ʾ Register м + I2C H/W Ȯ + + +  Test ߴ + 1. I2C ä 5 ͷƮ 켱 ְ Ǿ, ߻ϰ ֽϴ. + 2. CddIic_Ch5Write CddIic_Ch5Read Լ ȯ RTE_E_OK, Լ ȣ ü Ÿϴ. + 3. I2C ̽ PMIC IC VDD IC̸, VDD IC I2C ¿ ߻մϴ. + 4. I2C ӵ 400 kbps 200 kbps ߾, ذ ʾҽϴ. + +2. Global timestamp + : AP-Core Ǿ ֽϴٸ, CR52 ھ A76 ھ Global timestamp ϰ CR-Core ְ ġ û . + Ȯ timestamp AP-Coreʸ Sample Code ־ CR-Core ְԲ ġ ϴ. + Linuxȯ濡 CR-Core CA-Core Ǵ Sample Code , + BSW Autosar ȯ濡 ǰԲ ϰ ֽϴ. + +> ĿƮ +> ҽ ڵ ICUMX IPL GHS RH850 Ϸ CR52 ھ CA ھ GCC ARM 10.3 Ϸ Ͽ ߽ϴ. +> ۾ ȯ Linux Windows ȯ濡 ص ƹ ϴ. + +3. Ƽ ī򿡼 ͷƮ ׻ ϰ ϴ +4. I2C Duty + + + + + غ +Ƽ +츮, Power +Tr32 +. + + + µ 湮 û Ȯ +0. : Ұ +1. -> BWW_RTE Ŭ -> Open Terminal -> .\Build.bat RS4 NONE NONE + Out ϵ + - ġ ڵ Ȯ -> ε ޾ƾ. + - I2C ڵ ̰͸ м . + +CtCdSDL.c + +2. Binary Write -> Terraterm TTL +3. Tr32 -> C̺꿡 T32_V4H_202406 ->Bin -> Win64->t32start.exe +4. Tool USB ̼ ʿ. + +Ȯ + +Ʈ û +1. work-around + - ϰ OK Ȯ + +>https://teams.microsoft.com/l/meetingrecap?driveId=b%211Ktorb39oEaU7AGlmVVBuSfS_Kik4l9IpyahL7k8C9l96WPy5vpnTqNa_XPG_ZSR&driveItemId=01ELYJII2JVXYZCIVS7BAKX3H4T5WDBCJQ&sitePath=https%3A%2F%2Frenesasgroup-my.sharepoint.com%2F%3Av%3A%2Fg%2Fpersonal%2Fwoody_jang_xc_renesas_com%2FEUmt8ZEisvhAq-z8n2wwiTABcW6An7HFaI4r1Ro3RilWeg&fileUrl=https%3A%2F%2Frenesasgroup-my.sharepoint.com%2Fpersonal%2Fwoody_jang_xc_renesas_com%2FDocuments%2FRecordings%2FLuis%2520Kim%2520%25EB%258B%2598%25EA%25B3%25BC%2520%25ED%2586%25B5%25ED%2599%2594-20250814_181815-%25EB%25AA%25A8%25EC%259E%2584%2520%25EB%2585%25B9%25EC%259D%258C%25EB%2585%25B9%25ED%2599%2594.mp4%3Fweb%3D1&threadId=19%3A3a29c45c-eca8-4c42-b896-b55901017294_d53fa3a3-f232-4b71-8005-843b42ba969f%40unq.gbl.spaces&callId=e63b625a-db6e-4147-8fb9-575d11409401&threadType=OneOnOneChat&meetingType=Unknown&subType=RecapSharingLink_RecapCore +DDR ޸ + + MPU ϰ ִ. +Ȥ 츮 MPU ϴ ִ°? + +The customer is having trouble setting up the MPU(memory protection unit). +Do you have any examples of setting up the MPU? + + + + Ȯ + ִ + +Ʈ ڵ Test +ͷƮ Ǿ Ȯ + + +Write 2 Test + + + + +MCAL ʿ ʱȭ ϴ ִ Ȯ + + + +1. -> Ͱ . +2. ʱȭ -> Ǵ . +3. ͷƮ ̺ -> OS ɸ . +ؼ Ϸ . + + +RV-VRAM +MPU ޸ + +RCar ޸𸮱(RAM(DRAM, SRAM)) + +CR-Core's Startup żҵ + +Ƽھϴµ ־, CR-Core Boot(Core0, Core1, Core2) & ޸ ټ ְھ? + + +ȳϼ. Դϴ. + +I2C Stuck ȸ 帳ϴ. +Test ȯ : CR-Core(Core0, Core2) CA-Core + Binary : 2025-07-22 20250703IPL.zip, ADASPRK3.srec(NotePC ¾ CR-Core S/W) + +Case 1. Ŀ 漳 Ȯ. -> پ Ȯ +Case 2. OS-Stuck -> м Ұ +Case 3. ܺο I2C Module ʱȭ -> м Ұ +񽺿 Core0 ̰ Ϸ Ȯ + +񽺿 ̱ھ I2C Stuck ߻ ʴ´ٰ ε Ȯ߰ ڸ Ȯߴ. + +Multi ھ ߾ȵǰ ִ. + Ȯ Ʒ κ +RTVAM 256? + +32ΰ 8 ΰ +Sca. м + + +Gen4_R-Car + + +Ƽھ ޸ 並 ش޶. + +Ʈ ó +V4H internal memory structure ( ex: RT-VRAM ) +RT-VRAM use case for multi CR-core usage +How set up MPU for multi CR-core use case +Spinlock for multi CR-core use case( ex: SPI/GPT/watchdog ) +When using system RAM as share memory(non-cached), how guarantee access order + + ʿ . +(1) booting issue with multi CR core usage case +(2) I2C stuck issue with multi CR core use case + +Ƽھ  ϴ° + ھ ޸ ? +1. Shared Memory ? +2. Core ϴ ޸𸮸 + +2 normal non-cacheable ѵ. + + +RT-VRAM/DRAM/RT-SRAM? + + +5 ִ åӴ. + +20250827 Multi Core Boot Fail ȯ +MCU (CR0~2) Ƽھ 뿡 ־, ھ MPU (Memory Protection Unit) ǵ帳ϴ. +CR0~2 ھ AUTOSAR ϸ, ̹ ϳԴϴ. + ڵ/ʹ DDR ޸𸮿 ε Ǿ մϴ. + ھ AUTOSAR SHARED MEMORY System RAM ̿մϴ. + prefect abort exception ߻մϴ. +̴ mpu ʾƼ մϴ. +Arm Cortex R52 ھ ۿ ´ ʿ Դϴ. +Ư DDR ޸𸮴 RT-VRAM1 Extended մϴ. + ij÷ µ ,  MPU ϸ ǵ帳ϴ. + +CR0~2 ھ AUTOSAR ϸ, ̹ ϳ +ڵ/ʹ DDR ޸(RT-VRAM1 Extended ) ε +System RAM SHARED MEMORY + prefect abort exception ߻ +MPU Single Core Ȥ Multi Core 𸣰 MPU Ǵ ʾ ߻ϴ + + +MCU Ʈ AP Ʈ +MCU +C0 -> . C2 ٸ鼭 . +C1 -> å Ѵٰ . +C2 -> C0 . + +C0 -> +C1 -> Abort, ܷ . ׸ +C2-> Abort, ܷ . ׸ + +C0 only, C1, C2 Ʈ C0 (3% ). -> C0 C2 ϴ . +SC1 Ǿµ, SC3 . +ATCM, BTCM, CTCM. +AP Ű ߵ +Iij, Dij. + +AP +T ̷. R5ھ strong order .(޸ .) +ʹ ̹ ÷ ϴ . + ޸𸮴 ʿ. + +MPU +IO <- MCAL start, asm +1. ŸƮ ´ Ȯ ʿ. + +2. ھ ϳ ϸ, ij ڵ Ҵ? ھ 3̸ ھϳ ϴ ij پ峪? +RT-VRAM1 ij Ǹ鼭 RT-VRAM1 28M Ȯ. 1M ij . ij ³? +RT-VRAM ´°? + +EVB ̱OK, NG, ƼNG ҽ ڵ ȯ ޱ. + + +2.ICMUX ε忡 MPU ϰ . Boot Ȯ ʿ. +0x80000000 MPU off ε, ⼭ MPU ؾ ? + +I2C . +5 ߰ û. + + +1. ý, + ̵? + Ÿֿ̹ ? +MPU Ÿֿ̹? + +ڵ . +EVB Test Ȯ ߴ Ȯϰ ڵ Open + + +20250909 +Boot Ȯ +Core-1(IPL, Systemram) -> Core0(DDR) -> Core1(DDR)-> Core2(DDR) +I-Cashϰ DDR ޸ϰ ٸ. I-Cash . + +ܿ ̽: CR1/CR2 code jump area ̽ +ش ̽ 500ms on/off ׽Ʈ ߻Ͽ, ȯ ȲԴϴ. + +20250911: ᱹ DRAM ϸ ھ ְ ھ ִ. ̰ ذؾ . + ϱ м , ھ(Core1, Core2) ÿ DDR , Ư ھ(Core1 Ǵ Core2) DDR ִ Error ߻ϴ ǴܵǾϴ. + +Core0, Core1, Core2 Ŭ ΰ? +MPU ξ  ƿƮ ? + ؾϴ°? + +Hello +Ͻŵ. Ƽ ϰڴ. +׸ ϰڴ. +1. AP ھ Ŭͷ Ǿ ִ H/W Manual Ȯߴµ, CR ھ ? Ŭͷ Ǿ ִ°? +2. AXI DDR ϴµ ھ 1 ھ2 ÿ AXI ؼ ߻ϴ° ƴϳĴ ǰ ִ. + CRھ AXI ÿ ִ°? + +20250912: +Multicore(CR-Core0, CR-Core1, CR-Core2) 긵ϰ ִ 󿡼 +ھ3 ũϰ OS ʱȭ Ҷ, ھ ũ ߴ ھ ȣ ͷƮ ְ ޽ϴ. +̶ ͷƮ ļ ߻ ϸ ͷƮ ó ϴ ڵ带 ÿ ϰ Ǵµ + ھ ͷƮ ó ϴ ڵ忡 ؼ ϴµ , + ھ ؼ ߻ϴ Դϴ +. +ᱹ OS ÿ ھ DDR Memory ߻ϴ . + ھ ȣ ͷƮ ְ ޴ κп ־, ͷƮ ļ ߻ ʵ ̸ . + û, ͷƮ ÿ ߻ϰ ÿ ȸ ִ . +DDR Memory ߻ϴ ȸ ִ . + + +1ũ ð . + + + + + watchdog ȰȭǸ booting failure ÿ ڵ rebootingǾ ٴ ǰ̾ϴ. +ATCM , ߰ Ȯ ʿҰ ˴ϴ. +HS ڷ м + + +Ȯ, +T32 + ϰ + +Jira-724: CRC Ȯ Ǹ Close ޶. +Jira-725: I2c ޾Ƽ Ʈ о, Jira 亯 ϰڴ. +Jira-726: ġ , SoC ñ׳ ߻ ȵ. Ȯϰ Jira 亯 ڴ. + +724 Ȳ Ȯ. +725 Woody +Address 0x117(TIMEOUT_SOCACTIVA_ST) : 125ms -> 250ms ] +0x117 ؼ Ȯϰ 5:6:7 bit 1:1:1 (0x07) 250ms WriteѴ ٽ ؼ Ȯ +read 0xC3(1100_0011) -> write 0xE3 + + Ȯ Ұ +ATOSAR 170ms ʿ. + +ڿġ ž(ŷ ž)ϰ ŸƮ ϴ Ȯ + + CR ھ ״ ͵ Ȯ + 湮 + +[20251002] + +Windowsȯ濡 PMIC +- Read/Write Tool +- ġ , + +1. ICCOM Ȯغ -> غ صα +2. ޸ 浹 ǰ ϱ -> ε ٸ ٸ. Ʈ ʿ. 쿡 󼭴 嵵 ʿ +MPU Ǹ, 亯 ؾ. -> H/W °? -> Ͼ ʿ. ǰ . +SC3ʹ ִ. + ߰ Ǿ 簡 Ȳ ûϰ ִ 亯 ޶. + +3. MCAL MCU ´ Ȯ -> ̰ Ȯ ʿ. +4. CPG fusa ͸ ̵ -> MTCI -> + +5. PMIC ġ, SOC Ƽ̼ Ÿ +PMIC + + + + +Ʈ ߻ϸ, Ʒó ذ ? ַ with src +ġ ̺ ϰ -> -> ġ ο̺ + + ù Ŀ ̽ 10 ʿ. HKMC . diff --git a/0_Doc/0_Update Folder/Project All_2026.xlsx b/0_Doc/0_Update Folder/Project All_2026.xlsx new file mode 100644 index 0000000..30aebcc Binary files /dev/null and b/0_Doc/0_Update Folder/Project All_2026.xlsx differ diff --git a/0_Doc/0_Update Folder/Woody Login 번호 정리.xlsx b/0_Doc/0_Update Folder/Woody Login 번호 정리.xlsx new file mode 100644 index 0000000..cd5db10 Binary files /dev/null and b/0_Doc/0_Update Folder/Woody Login 번호 정리.xlsx differ diff --git a/0_Doc/0_Update Folder/정산/2025_12월 정산 후불하이패스_이용내역.pdf b/0_Doc/0_Update Folder/정산/2025_12월 정산 후불하이패스_이용내역.pdf new file mode 100644 index 0000000..fec775e Binary files /dev/null and b/0_Doc/0_Update Folder/정산/2025_12월 정산 후불하이패스_이용내역.pdf differ diff --git a/0_Doc/0_Update Folder/정산/2025_12월 정산 후불하이패스_이용내역.xls b/0_Doc/0_Update Folder/정산/2025_12월 정산 후불하이패스_이용내역.xls new file mode 100644 index 0000000..65d1a99 Binary files /dev/null and b/0_Doc/0_Update Folder/정산/2025_12월 정산 후불하이패스_이용내역.xls differ diff --git a/0_Doc/0_Update Folder/정산/2025_12월 정산.xlsx b/0_Doc/0_Update Folder/정산/2025_12월 정산.xlsx new file mode 100644 index 0000000..b053ed3 Binary files /dev/null and b/0_Doc/0_Update Folder/정산/2025_12월 정산.xlsx differ diff --git a/0_Doc/0_Update Folder/정산/2026_1월 정산.xlsx b/0_Doc/0_Update Folder/정산/2026_1월 정산.xlsx new file mode 100644 index 0000000..ceb65c8 Binary files /dev/null and b/0_Doc/0_Update Folder/정산/2026_1월 정산.xlsx differ diff --git a/0_Doc/0_Update Folder/정산/2026_X월 정산.xlsx b/0_Doc/0_Update Folder/정산/2026_X월 정산.xlsx new file mode 100644 index 0000000..fb8547d Binary files /dev/null and b/0_Doc/0_Update Folder/정산/2026_X월 정산.xlsx differ diff --git a/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide.pdf b/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide.pdf new file mode 100644 index 0000000..ffa68d5 Binary files /dev/null and b/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide.pdf differ diff --git a/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/teratermmacro/Flash_Bootloader_V3H.ttl b/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/teratermmacro/Flash_Bootloader_V3H.ttl new file mode 100644 index 0000000..64fec2a --- /dev/null +++ b/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/teratermmacro/Flash_Bootloader_V3H.ttl @@ -0,0 +1,223 @@ +;--------------------------------------------------- +; Setting load image parameter +;--------------------------------------------------- +ARRAY_NUM = 7 +strdim IMGNM ARRAY_NUM +IMGNM[0] = 'bootparam_sa0.srec' +IMGNM[1] = 'icumxa_loader.srec' +IMGNM[2] = 'dummy_fw.srec' +IMGNM[3] = 'cert_header_sa6.srec' +IMGNM[4] = 'dummy_rtos.srec' +IMGNM[5] = 'bl31-condor.srec' +IMGNM[6] = 'u-boot-elf-condor.srec' + +strdim SAVEADR ARRAY_NUM +SAVEADR[0] = '0' +SAVEADR[1] = '40000' +SAVEADR[2] = '0c0000' +SAVEADR[3] = '180000' +SAVEADR[4] = '1c0000' +SAVEADR[5] = '2c0000' +SAVEADR[6] = '840000' + +strdim WRITESEL ARRAY_NUM +WRITESEL[0] = 'Flash' +WRITESEL[1] = 'Flash' +WRITESEL[2] = 'Flash' +WRITESEL[3] = 'Flash' +WRITESEL[4] = 'Flash' +WRITESEL[5] = 'Flash' +WRITESEL[6] = 'Flash' + +;--------------------------------------------------- +; Setting FlashWriter parameter +;--------------------------------------------------- +FLASHWRITER_FILE = 'ICUMXA_Flash_writer_SCIF_DUMMY_CERT_EB200400_condor.mot' +FLASHWRITER_SPEED = 115200 + +;--------------------------------------------------- +; Select load all images or selected image +;--------------------------------------------------- +LOAD_FILES = 'all' +;LOAD_FILES = 'selected' + +;--------------------------------------------------- +; DO NOT EDIT THE FOLLOWING LINES +;--------------------------------------------------- +; Main program +;--------------------------------------------------- +getdir DIR + +call Load_FlashWriter + +;Automatically identify the start address from S-record. +strdim IMGADR ARRAY_NUM + +strcompare LOAD_FILES 'selected' +if result==0 then + call Load_selected_image +else + call Load_all_image +endif + +end + +;--------------------------------------------------- +; load FlashWriter +;--------------------------------------------------- +:Load_FlashWriter +filesearch FLASHWRITER_FILE +if result=0 then + sprintf 'File "%s" not found' FLASHWRITER_FILE + messagebox inputstr 'error' + break +endif + +setbaud 115200 +sprintf2 FILE_NAME '%s\%s' DIR FLASHWRITER_FILE +sendfile FILE_NAME 1 +wait '>' + +return + +;--------------------------------------------------- +; load all images +;--------------------------------------------------- +:Load_All_image + +; file check +for i 0 ARRAY_NUM-1 + filesearch IMGNM[i] + if result=0 then + sprintf 'File "%s" not found' IMGNM[i] + messagebox inputstr 'error' + break + endif +next + +if result=1 then + for i 0 ARRAY_NUM-1 + index = i + call Decode_srec_start_address + strcompare WRITESEL[i] 'Flash' + if result=0 then + call Load_Image + endif + strcompare WRITESEL[i] 'eMMC' + if result=0 then + call Load_Image_eMMC + endif + next +else + messagebox "Cancel write all images" "error" +endif + +;messagebox "Write Complete" "" +return + +;--------------------------------------------------- +; Select load selected Image +;--------------------------------------------------- +:Load_selected_image +:retry + listbox 'Select the write image file' 'select image' IMGNM + index = result + if index = -1 then + else + ; file check + filesearch IMGNM[index] + If result=0 then + sprintf 'File "%s" not found' IMGNM[index] + messagebox inputstr 'error' + else + call Decode_srec_start_address + call Load_Image + endif + goto retry + endif +return + +;--------------------------------------------------- +; Decoed S-record start address +;--------------------------------------------------- +:Decode_srec_start_address + fileopen fhandle IMGNM[index] 0 1 + if fhandle = -1 then + sprintf 'File "%s" open error' IMGNM[i] + messagebox inputstr 'error' + break + endif + filereadln fhandle strvar + if result=1 then + fileclose fhandle + sprintf 'File "%s" S-record format error' IMGNM[i] + messagebox inputstr 'error' + break + endif + filereadln fhandle strvar + strcopy strvar 5 8 IMGADR[index] + fileclose fhandle +return + +;--------------------------------------------------- +; Load Image To Flash +;--------------------------------------------------- +:Load_Image +mpause 10 +sendln 'xls2' +wait ' Select (1-3)>' +mpause 10 +sendln '3' +wait '(Push Y key)' +mpause 10 +send 'y' +wait '(Push Y key)' +mpause 10 +send 'y' +wait ' Please Input : H' +mpause 1 +sendln IMGADR[index] +wait ' Please Input : H' +sendln SAVEADR[index] +mpause 400 +wait 'CR stop load)' +mpause 400 +sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index] +sendfile FILE_NAME 1 +wait 'complete!' 'Clear OK?(y/n)' +If result=1 goto proc_end +If result=2 goto send_y + +:send_y +send 'y' +wait '>' + +:proc_end +mpause 100 +return + +;--------------------------------------------------- +; Load Image To eMMC +;--------------------------------------------------- +;:Load_Image_eMMC +;mpause 10 +;sendln 'em_w' +;wait '(Push Y key)' +;mpause 10 +;send 'y' +;wait ' Select area(0-2)>' +;mpause 10 +;sendln '1' +;wait 'Please Input Start Address in sector :' +;mpause 1 +;sendln SAVEADR[index] +;wait 'Please Input Program Start Address :' +;sendln IMGADR[index] +;mpause 400 +;wait 'CR stop load)' +;mpause 400 +;sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index] +;sendfile FILE_NAME 1 +;wait 'EM_W Complete!' +;mpause 100 +;return diff --git a/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/teratermmacro/Flash_Bootloader_V3HSK.ttl b/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/teratermmacro/Flash_Bootloader_V3HSK.ttl new file mode 100644 index 0000000..f2e76c3 --- /dev/null +++ b/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/teratermmacro/Flash_Bootloader_V3HSK.ttl @@ -0,0 +1,223 @@ +;--------------------------------------------------- +; Setting load image parameter +;--------------------------------------------------- +ARRAY_NUM = 7 +strdim IMGNM ARRAY_NUM +IMGNM[0] = 'bootparam_sa0.srec' +IMGNM[1] = 'icumxa_loader.srec' +IMGNM[2] = 'dummy_fw.srec' +IMGNM[3] = 'cert_header_sa6.srec' +IMGNM[4] = 'dummy_rtos.srec' +IMGNM[5] = 'bl31-condor.srec' +IMGNM[6] = 'u-boot-elf-v3hsk.srec' + +strdim SAVEADR ARRAY_NUM +SAVEADR[0] = '0' +SAVEADR[1] = '40000' +SAVEADR[2] = '0c0000' +SAVEADR[3] = '180000' +SAVEADR[4] = '1c0000' +SAVEADR[5] = '2c0000' +SAVEADR[6] = '840000' + +strdim WRITESEL ARRAY_NUM +WRITESEL[0] = 'Flash' +WRITESEL[1] = 'Flash' +WRITESEL[2] = 'Flash' +WRITESEL[3] = 'Flash' +WRITESEL[4] = 'Flash' +WRITESEL[5] = 'Flash' +WRITESEL[6] = 'Flash' + +;--------------------------------------------------- +; Setting FlashWriter parameter +;--------------------------------------------------- +FLASHWRITER_FILE = 'ICUMXA_Flash_writer_SCIF_DUMMY_CERT_EB200400_condor.mot' +FLASHWRITER_SPEED = 115200 + +;--------------------------------------------------- +; Select load all images or selected image +;--------------------------------------------------- +LOAD_FILES = 'all' +;LOAD_FILES = 'selected' + +;--------------------------------------------------- +; DO NOT EDIT THE FOLLOWING LINES +;--------------------------------------------------- +; Main program +;--------------------------------------------------- +getdir DIR + +call Load_FlashWriter + +;Automatically identify the start address from S-record. +strdim IMGADR ARRAY_NUM + +strcompare LOAD_FILES 'selected' +if result==0 then + call Load_selected_image +else + call Load_all_image +endif + +end + +;--------------------------------------------------- +; load FlashWriter +;--------------------------------------------------- +:Load_FlashWriter +filesearch FLASHWRITER_FILE +if result=0 then + sprintf 'File "%s" not found' FLASHWRITER_FILE + messagebox inputstr 'error' + break +endif + +setbaud 115200 +sprintf2 FILE_NAME '%s\%s' DIR FLASHWRITER_FILE +sendfile FILE_NAME 1 +wait '>' + +return + +;--------------------------------------------------- +; load all images +;--------------------------------------------------- +:Load_All_image + +; file check +for i 0 ARRAY_NUM-1 + filesearch IMGNM[i] + if result=0 then + sprintf 'File "%s" not found' IMGNM[i] + messagebox inputstr 'error' + break + endif +next + +if result=1 then + for i 0 ARRAY_NUM-1 + index = i + call Decode_srec_start_address + strcompare WRITESEL[i] 'Flash' + if result=0 then + call Load_Image + endif + strcompare WRITESEL[i] 'eMMC' + if result=0 then + call Load_Image_eMMC + endif + next +else + messagebox "Cancel write all images" "error" +endif + +;messagebox "Write Complete" "" +return + +;--------------------------------------------------- +; Select load selected Image +;--------------------------------------------------- +:Load_selected_image +:retry + listbox 'Select the write image file' 'select image' IMGNM + index = result + if index = -1 then + else + ; file check + filesearch IMGNM[index] + If result=0 then + sprintf 'File "%s" not found' IMGNM[index] + messagebox inputstr 'error' + else + call Decode_srec_start_address + call Load_Image + endif + goto retry + endif +return + +;--------------------------------------------------- +; Decoed S-record start address +;--------------------------------------------------- +:Decode_srec_start_address + fileopen fhandle IMGNM[index] 0 1 + if fhandle = -1 then + sprintf 'File "%s" open error' IMGNM[i] + messagebox inputstr 'error' + break + endif + filereadln fhandle strvar + if result=1 then + fileclose fhandle + sprintf 'File "%s" S-record format error' IMGNM[i] + messagebox inputstr 'error' + break + endif + filereadln fhandle strvar + strcopy strvar 5 8 IMGADR[index] + fileclose fhandle +return + +;--------------------------------------------------- +; Load Image To Flash +;--------------------------------------------------- +:Load_Image +mpause 10 +sendln 'xls2' +wait ' Select (1-3)>' +mpause 10 +sendln '3' +wait '(Push Y key)' +mpause 10 +send 'y' +wait '(Push Y key)' +mpause 10 +send 'y' +wait ' Please Input : H' +mpause 1 +sendln IMGADR[index] +wait ' Please Input : H' +sendln SAVEADR[index] +mpause 400 +wait 'CR stop load)' +mpause 400 +sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index] +sendfile FILE_NAME 1 +wait 'complete!' 'Clear OK?(y/n)' +If result=1 goto proc_end +If result=2 goto send_y + +:send_y +send 'y' +wait '>' + +:proc_end +mpause 100 +return + +;--------------------------------------------------- +; Load Image To eMMC +;--------------------------------------------------- +;:Load_Image_eMMC +;mpause 10 +;sendln 'em_w' +;wait '(Push Y key)' +;mpause 10 +;send 'y' +;wait ' Select area(0-2)>' +;mpause 10 +;sendln '1' +;wait 'Please Input Start Address in sector :' +;mpause 1 +;sendln SAVEADR[index] +;wait 'Please Input Program Start Address :' +;sendln IMGADR[index] +;mpause 400 +;wait 'CR stop load)' +;mpause 400 +;sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index] +;sendfile FILE_NAME 1 +;wait 'EM_W Complete!' +;mpause 100 +;return diff --git a/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/teratermmacro/Flash_Bootloader_V3M.ttl b/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/teratermmacro/Flash_Bootloader_V3M.ttl new file mode 100644 index 0000000..2d6219f --- /dev/null +++ b/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/teratermmacro/Flash_Bootloader_V3M.ttl @@ -0,0 +1,220 @@ +;--------------------------------------------------- +; Setting load image parameter +;--------------------------------------------------- +ARRAY_NUM = 6 +strdim IMGNM ARRAY_NUM +IMGNM[0] = 'bootparam_sa0.srec' +IMGNM[1] = 'cr7_loader.srec' +IMGNM[2] = 'cert_header_sa3.srec' +IMGNM[3] = 'dummy_rtos.srec' +IMGNM[4] = 'bl31-eagle.srec' +IMGNM[5] = 'u-boot-elf-eagle.srec' + +strdim SAVEADR ARRAY_NUM +SAVEADR[0] = '0' +SAVEADR[1] = '40000' +SAVEADR[2] = '0c0000' +SAVEADR[3] = '1c0000' +SAVEADR[4] = '2c0000' +SAVEADR[5] = '840000' + +strdim WRITESEL ARRAY_NUM +WRITESEL[0] = 'Flash' +WRITESEL[1] = 'Flash' +WRITESEL[2] = 'Flash' +WRITESEL[3] = 'Flash' +WRITESEL[4] = 'Flash' +WRITESEL[5] = 'Flash' + +;--------------------------------------------------- +; Setting FlashWriter parameter +;--------------------------------------------------- +FLASHWRITER_FILE = 'AArch32_Flash_writer_SCIF_DUMMY_CERT_E6300400_EAGLE.mot' +FLASHWRITER_SPEED = 115200 + +;--------------------------------------------------- +; Select load all images or selected image +;--------------------------------------------------- +LOAD_FILES = 'all' +;LOAD_FILES = 'selected' + +;--------------------------------------------------- +; DO NOT EDIT THE FOLLOWING LINES +;--------------------------------------------------- +; Main program +;--------------------------------------------------- +getdir DIR + +call Load_FlashWriter + +;Automatically identify the start address from S-record. +strdim IMGADR ARRAY_NUM + +strcompare LOAD_FILES 'selected' +if result==0 then + call Load_selected_image +else + call Load_all_image +endif + +end + +;--------------------------------------------------- +; load FlashWriter +;--------------------------------------------------- +:Load_FlashWriter +filesearch FLASHWRITER_FILE +if result=0 then + sprintf 'File "%s" not found' FLASHWRITER_FILE + messagebox inputstr 'error' + break +endif + +setbaud 115200 +sprintf2 FILE_NAME '%s\%s' DIR FLASHWRITER_FILE +sendfile FILE_NAME 1 +wait '>' + +return + +;--------------------------------------------------- +; load all images +;--------------------------------------------------- +:Load_All_image + +; file check +for i 0 ARRAY_NUM-1 + filesearch IMGNM[i] + if result=0 then + sprintf 'File "%s" not found' IMGNM[i] + messagebox inputstr 'error' + break + endif +next + +if result=1 then + for i 0 ARRAY_NUM-1 + index = i + call Decode_srec_start_address + strcompare WRITESEL[i] 'Flash' + if result=0 then + call Load_Image + endif + strcompare WRITESEL[i] 'eMMC' + if result=0 then + call Load_Image_eMMC + endif + next +else + messagebox "Cancel write all images" "error" +endif + +;messagebox "Write Complete" "" +return + +;--------------------------------------------------- +; Select load selected Image +;--------------------------------------------------- +:Load_selected_image +:retry + listbox 'Select the write image file' 'select image' IMGNM + index = result + if index = -1 then + else + ; file check + filesearch IMGNM[index] + If result=0 then + sprintf 'File "%s" not found' IMGNM[index] + messagebox inputstr 'error' + else + call Decode_srec_start_address + call Load_Image + endif + goto retry + endif +return + +;--------------------------------------------------- +; Decoed S-record start address +;--------------------------------------------------- +:Decode_srec_start_address + fileopen fhandle IMGNM[index] 0 1 + if fhandle = -1 then + sprintf 'File "%s" open error' IMGNM[i] + messagebox inputstr 'error' + break + endif + filereadln fhandle strvar + if result=1 then + fileclose fhandle + sprintf 'File "%s" S-record format error' IMGNM[i] + messagebox inputstr 'error' + break + endif + filereadln fhandle strvar + strcopy strvar 5 8 IMGADR[index] + fileclose fhandle +return + +;--------------------------------------------------- +; Load Image To Flash +;--------------------------------------------------- +:Load_Image +mpause 10 +sendln 'xls2' +wait ' Select (1-3)>' +mpause 10 +sendln '3' +wait '(Push Y key)' +mpause 10 +send 'y' +wait '(Push Y key)' +mpause 10 +send 'y' +wait ' Please Input : H' +mpause 1 +sendln IMGADR[index] +wait ' Please Input : H' +sendln SAVEADR[index] +mpause 400 +wait 'CR stop load)' +mpause 400 +sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index] +sendfile FILE_NAME 1 +wait 'complete!' 'Clear OK?(y/n)' +If result=1 goto proc_end +If result=2 goto send_y + +:send_y +send 'y' +wait '>' + +:proc_end +mpause 100 +return + +;--------------------------------------------------- +; Load Image To eMMC +;--------------------------------------------------- +;:Load_Image_eMMC +;mpause 10 +;sendln 'em_w' +;wait '(Push Y key)' +;mpause 10 +;send 'y' +;wait ' Select area(0-2)>' +;mpause 10 +;sendln '1' +;wait 'Please Input Start Address in sector :' +;mpause 1 +;sendln SAVEADR[index] +;wait 'Please Input Program Start Address :' +;sendln IMGADR[index] +;mpause 400 +;wait 'CR stop load)' +;mpause 400 +;sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index] +;sendfile FILE_NAME 1 +;wait 'EM_W Complete!' +;mpause 100 +;return diff --git a/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/teratermmacro/Flash_Bootloader_V3MSK.ttl b/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/teratermmacro/Flash_Bootloader_V3MSK.ttl new file mode 100644 index 0000000..1f63d49 --- /dev/null +++ b/0_Doc/정리필요/01_SDK_V4H/00_R-CarV4H_V4M_V3H_V3M_SDK_StartupGuide_0_29/teratermmacro/Flash_Bootloader_V3MSK.ttl @@ -0,0 +1,220 @@ +;--------------------------------------------------- +; Setting load image parameter +;--------------------------------------------------- +ARRAY_NUM = 6 +strdim IMGNM ARRAY_NUM +IMGNM[0] = 'bootparam_sa0.srec' +IMGNM[1] = 'cr7_loader_v3msk.srec' +IMGNM[2] = 'cert_header_sa3.srec' +IMGNM[3] = 'dummy_rtos.srec' +IMGNM[4] = 'bl31-eagle.srec' +IMGNM[5] = 'u-boot-elf-v3msk.srec' + +strdim SAVEADR ARRAY_NUM +SAVEADR[0] = '0' +SAVEADR[1] = '40000' +SAVEADR[2] = '0c0000' +SAVEADR[3] = '1c0000' +SAVEADR[4] = '2c0000' +SAVEADR[5] = '840000' + +strdim WRITESEL ARRAY_NUM +WRITESEL[0] = 'Flash' +WRITESEL[1] = 'Flash' +WRITESEL[2] = 'Flash' +WRITESEL[3] = 'Flash' +WRITESEL[4] = 'Flash' +WRITESEL[5] = 'Flash' + +;--------------------------------------------------- +; Setting FlashWriter parameter +;--------------------------------------------------- +FLASHWRITER_FILE = 'AArch32_Flash_writer_SCIF_DUMMY_CERT_E6300400_EAGLE.mot' +FLASHWRITER_SPEED = 115200 + +;--------------------------------------------------- +; Select load all images or selected image +;--------------------------------------------------- +LOAD_FILES = 'all' +;LOAD_FILES = 'selected' + +;--------------------------------------------------- +; DO NOT EDIT THE FOLLOWING LINES +;--------------------------------------------------- +; Main program +;--------------------------------------------------- +getdir DIR + +call Load_FlashWriter + +;Automatically identify the start address from S-record. +strdim IMGADR ARRAY_NUM + +strcompare LOAD_FILES 'selected' +if result==0 then + call Load_selected_image +else + call Load_all_image +endif + +end + +;--------------------------------------------------- +; load FlashWriter +;--------------------------------------------------- +:Load_FlashWriter +filesearch FLASHWRITER_FILE +if result=0 then + sprintf 'File "%s" not found' FLASHWRITER_FILE + messagebox inputstr 'error' + break +endif + +setbaud 115200 +sprintf2 FILE_NAME '%s\%s' DIR FLASHWRITER_FILE +sendfile FILE_NAME 1 +wait '>' + +return + +;--------------------------------------------------- +; load all images +;--------------------------------------------------- +:Load_All_image + +; file check +for i 0 ARRAY_NUM-1 + filesearch IMGNM[i] + if result=0 then + sprintf 'File "%s" not found' IMGNM[i] + messagebox inputstr 'error' + break + endif +next + +if result=1 then + for i 0 ARRAY_NUM-1 + index = i + call Decode_srec_start_address + strcompare WRITESEL[i] 'Flash' + if result=0 then + call Load_Image + endif + strcompare WRITESEL[i] 'eMMC' + if result=0 then + call Load_Image_eMMC + endif + next +else + messagebox "Cancel write all images" "error" +endif + +;messagebox "Write Complete" "" +return + +;--------------------------------------------------- +; Select load selected Image +;--------------------------------------------------- +:Load_selected_image +:retry + listbox 'Select the write image file' 'select image' IMGNM + index = result + if index = -1 then + else + ; file check + filesearch IMGNM[index] + If result=0 then + sprintf 'File "%s" not found' IMGNM[index] + messagebox inputstr 'error' + else + call Decode_srec_start_address + call Load_Image + endif + goto retry + endif +return + +;--------------------------------------------------- +; Decoed S-record start address +;--------------------------------------------------- +:Decode_srec_start_address + fileopen fhandle IMGNM[index] 0 1 + if fhandle = -1 then + sprintf 'File "%s" open error' IMGNM[i] + messagebox inputstr 'error' + break + endif + filereadln fhandle strvar + if result=1 then + fileclose fhandle + sprintf 'File "%s" S-record format error' IMGNM[i] + messagebox inputstr 'error' + break + endif + filereadln fhandle strvar + strcopy strvar 5 8 IMGADR[index] + fileclose fhandle +return + +;--------------------------------------------------- +; Load Image To Flash +;--------------------------------------------------- +:Load_Image +mpause 10 +sendln 'xls2' +wait ' Select (1-3)>' +mpause 10 +sendln '3' +wait '(Push Y key)' +mpause 10 +send 'y' +wait '(Push Y key)' +mpause 10 +send 'y' +wait ' Please Input : H' +mpause 1 +sendln IMGADR[index] +wait ' Please Input : H' +sendln SAVEADR[index] +mpause 400 +wait 'CR stop load)' +mpause 400 +sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index] +sendfile FILE_NAME 1 +wait 'complete!' 'Clear OK?(y/n)' +If result=1 goto proc_end +If result=2 goto send_y + +:send_y +send 'y' +wait '>' + +:proc_end +mpause 100 +return + +;--------------------------------------------------- +; Load Image To eMMC +;--------------------------------------------------- +;:Load_Image_eMMC +;mpause 10 +;sendln 'em_w' +;wait '(Push Y key)' +;mpause 10 +;send 'y' +;wait ' Select area(0-2)>' +;mpause 10 +;sendln '1' +;wait 'Please Input Start Address in sector :' +;mpause 1 +;sendln SAVEADR[index] +;wait 'Please Input Program Start Address :' +;sendln IMGADR[index] +;mpause 400 +;wait 'CR stop load)' +;mpause 400 +;sprintf2 FILE_NAME '%s\%s' DIR IMGNM[index] +;sendfile FILE_NAME 1 +;wait 'EM_W Complete!' +;mpause 100 +;return