This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Expert,
I am trying to read the boot mode register on AM2434 HS FS (not OTP fused) by using "load_dmsc_hsfs.js" and print the boot mode values in Scripting Console. Please find the attached file, which has my code to read the boot mode register. The same script I added is successfully working on our board having AM2324 GP, but, it is not working on AM2324 HS FS. The value of the boot register is always "zero" in my script below.
Is there a different way to access the boot mode register on HS FS? Could you clarify this and let me know how to read correctly the boot mode register by the script?
Regards,
Moonil
/cfs-file/__key/communityserver-discussions-components-files/908/load_5F00_dmsc_5F00_hsfs.txt
Hi Moonil Heo,
I think the registers are firewalled in HS-FS devices. You need to run the initialization application which installs the SYSFW and releases firewalls. Only after that you will be able to access the Boot Mode Registers.
Can you move your software logic at this location and try again ?
Best Regards,
Aakash
Hi Aakash,
Thanks for your prompt response. I was able to see NOBOOT mode in the ScriptConsole with your solution. However, please be aware that my goal is to check whether all boot modes are configured well with various jumper settings on the board. Your solution can show only NOBOOT mode since the boot mode register can be read only after "sciclient_ccs_init.release.out" runs. I think it is not required to read the boot mode register in this case since we can assume that NOBOOT mode is well configured once CCS debug session works.
Can I ask you again how to check all boot modes like UART and SPI using the script as it worked in GP? no need to run debug session for this test, only need to check boot mode. FYI, our product can configure UART, SPI, and NOBOOT modes as primary boot modes using jumpers and the backup boot mode is UART.
Regards,
Moonil
Hi Aakash,
I tried to read the boot mode register while changing the jumpers for boot mode on the board after the application bootup.
After the application bootup with SPI boot mode, or NOBOOT mode in CCS, I changed the jumpers while the application was running and read the boot mode register. In my test, it shows only SPI or NOBOOT mode, which means the boot mode register is fixed right after the power cycle and not changed during application operation, even though the jumper is changed.
so, I still need a solution like disabling the firewall before reading the boot mode register in the script.
Could you please share what you checked on this?
Regards,
Moonil
Hi Moonil Heo,
Can you check if you are doing the KICK Unlock before reading ?
You can use this software for the same -
dsMCU1_0.memory.writeWord(0, 0x43001008, 0x68EF3490); /* Kick 0 Unlock for DEVSTAT_REG_KICK_PARTITION */
dsMCU1_0.memory.writeWord(0, 0x4300100C, 0xD172BC5A); /* Kick 1 Unlock for DEVSTAT_REG_KICK_PARTITION */
Best Regards,
Aakash
Hi Asash,
I tried the script before reading the boot mode register but found an error below.
MAIN_Cortex_R5_0_0: Trouble Writing Memory Block at 0x43001008 on Page 0 of Length 0x4: (Error -1065 @ 0x0) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 9.10.0.00080) org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Error writing memory: Errors during memory.writeData(): Address: 0x43001008 Error: 0x80000 (C:/git/repo/bcs_163/code/sdk_ti/tools/ccs_load/am243x/load_dmsc_hsfs.js#142) (C:/git/repo/bcs_163/code/sdk_ti/tools/ccs_load/am243x/load_dmsc_hsfs.js#142)
Could you let me know the reason for this error and share your test result?
Regards,
Moonil
Hi Moonil Heo,
Then in that case the registers are locked via firewall and only gets opened when Public ROM gets an valid image. Try sending an image in UART boot mode with similar software i.e. getting the boot modes etc.
Hope it helps.
Best Regards,
Aakash
Hi Aakash,
Do you mean there is no way to read the boot mode register from script "load_dmsc_hsfs.js"? otherwise, could you share your idea in more detail again?
Regards,
Moonil
Hi Moonil Heo,
It depends on your boot mode. In order for PublicROM retrieves the valid image via given boot mode, it will open the firewall for the registers to read the valid boot mode of the device. So irrespective of the boot-mode, you cannot create a script which does that.
My suggestion was to always keep the boot mode as DEV BOOT MODE or UART BOOT MODE with the valid image is transferred via UART. Only post this process, the script will work. Hope this makes sense.
Best Regards,
Aakash