FreeRTOS SPE-fw help for pin control

Hello All,

I will mention my installation step. I wanted JUST to blink a led. IF someone install and check help to me.

                               <b>Installation Step</b>  
  1. I downloaded https://developer.nvidia.com/embedded/dlc/l4t_rt_aux_cpu_src demo.

  2. I arranged https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q3-update cross compiler

for rt-aux-cpu-demo.

  1. I downloaded Linux_for_Tegrafor flashing.

  2. I compiled rt-aux-cpu-demo on host computer with cross compiler.

  3. GPIO and UART enabled on target_specific.mk (enabled means 1). Then, I did gpio.md and

uart.md .

  1. I flashed tx2 device. Flash output :
[   0.0021 ] Generating RCM messages
[   0.0029 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 0 --download rcm /home/nvidia/Desktop/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin 0 0
[   0.0036 ] RCM 0 is saved as rcm_0.rcm
[   0.0039 ] RCM 1 is saved as rcm_1.rcm
[   0.0039 ] List of rcm files are saved in rcm_list.xml
[   0.0039 ] 
[   0.0039 ] Signing RCM messages
[   0.0045 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0052 ] Assuming zero filled SBK key
[   0.0078 ] 
[   0.0078 ] Copying signature to RCM mesages
[   0.0085 ] tegrarcm_v2 --chip 0x18 0 --updatesig rcm_list_signed.xml
[   0.0099 ] 
[   0.0099 ] Boot Rom communication
[   0.0105 ] tegrarcm_v2 --chip 0x18 0 --rcm rcm_list_signed.xml --skipuid
[   0.0112 ] RCM version 0X180001
[   0.0121 ] Boot Rom communication completed
[   1.0191 ] 
[   2.0234 ] tegrarcm_v2 --isapplet
[   2.0261 ] Applet version 01.00.0000
[   2.0452 ] 
[   2.0482 ] Retrieving EEPROM data
[   2.0485 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/nvidia/Desktop/Linux_for_Tegra/bootloader/cvm.bin
[   2.0514 ] Applet version 01.00.0000
[   2.0689 ] Saved platform info in /home/nvidia/Desktop/Linux_for_Tegra/bootloader/cvm.bin
[   2.1424 ] 
Board ID(3310) version(B02) sku(1000) revision(E.0)
copying bctfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg)... done.
copying misc_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-misc-si-l4t.cfg)... done.
copying pinmux_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg)... done.
copying pmic_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg)... done.
copying pmc_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg)... done.
copying prod_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg)... done.
copying scr_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/minimal_scr.cfg)... done.
copying scr_cold_boot_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/mobile_scr.cfg)... done.
copying bootrom_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg)... done.
copying dev_params(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/emmc.cfg)... done.
Existing bootloader(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused.
copying initrd(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/l4t_initrd.img)... done.
	populating kernel to rootfs... done.
	populating initrd to rootfs... done.
	populating /home/nvidia/Desktop/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb to rootfs... done.
Making Boot image... done.
Existing sosfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin) reused.
copying tegraboot(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/nvtboot.bin)... done.
Existing cpu_bootloader(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused.
Existing mb2blfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/nvtboot_recovery.bin) reused.
Existing mtspreboot(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/preboot_d15_prod_cr.bin) reused.
Existing mts(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/mce_mts_d15_prod_cr.bin) reused.
Existing mb1file(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/mb1_prod.bin) reused.
Existing bpffile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/bpmp.bin) reused.
copying bpfdtbfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb)... done.
Existing scefile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/camera-rtcpu-sce.img) reused.
Existing spefile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/spe.bin) reused.
Existing drameccfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/dram-ecc.bin) reused.
Existing badpagefile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/badpage.bin) reused.
copying wb0boot(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/warmboot.bin)... done.
Existing tosfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/tos-trusty.img) reused.
Existing eksfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/eks.img) reused.
copying dtbfile(/home/nvidia/Desktop/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb)... done.
Copying nv_boot_control.conf to rootfs
sed: can't read /home/nvidia/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /home/nvidia/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /home/nvidia/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /home/nvidia/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /home/nvidia/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /home/nvidia/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /home/nvidia/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
sed: can't read /home/nvidia/Desktop/Linux_for_Tegra/rootfs/etc/nv_boot_control.conf: Not a directory
Existing tbcfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/cboot.bin) reused.
copying tbcdtbfile(/home/nvidia/Desktop/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb)... done.
copying cfgfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/cfg/flash_l4t_t186.xml) to flash.xml... done.
Existing flasher(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/nvtboot_recovery_cpu.bin) reused.
Existing flashapp(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/tegraflash.py) reused.
*** Updating [spe-fw] with spe.bin ***
./tegraflash.py --bl nvtboot_recovery_cpu.bin  --chip 0x18 --applet mb1_recovery_prod.bin --sdram_config P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --misc_config tegra186-mb1-bct-misc-si-l4t.cfg --pinmux_config tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmic_config tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --pmc_config tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --prod_config tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg --scr_config minimal_scr.cfg --scr_cold_boot_config mobile_scr.cfg --br_cmd_config tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --dev_params emmc.cfg  --cfg  flash.xml --bins "mb2_bootloader nvtboot_recovery.bin; mts_preboot preboot_d15_prod_cr.bin; mts_bootpack mce_mts_d15_prod_cr.bin; bpmp_fw bpmp.bin; bpmp_fw_dtb tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb; tlk tos-trusty.img; eks eks.img; bootloader_dtb tegra186-quill-p3310-1000-c03-00-base.dtb"  --cmd "signwrite spe-fw spe.bin; reboot"  
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 
[   0.0268 ] tegrasign_v2 --key None --getmode mode.txt
[   0.0282 ] Assuming zero filled SBK key
[   0.0283 ] 
[   0.0285 ] sign_type   : 3808440620
[   0.0285 ] header_magic: e62800ea
[   0.0303 ] tegrahost_v2 --chip 0x18 --align 1_spe.bin
[   0.0315 ] 
[   0.0327 ] tegrahost_v2 --appendsigheader 1_spe.bin zerosbk
[   0.0341 ] 
[   0.0355 ] tegrasign_v2 --key None --list 1_spe_sigheader.bin_list.xml
[   0.0364 ] Assuming zero filled SBK key
[   0.0393 ] 
[   0.0407 ] tegrahost_v2 --updatesigheader 1_spe_sigheader.bin.encrypt 1_spe_sigheader.bin.hash zerosbk
[   0.0417 ] 
[   0.0418 ] Generating RCM messages
[   0.0426 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 0 --download rcm mb1_recovery_prod.bin 0 0
[   0.0434 ] RCM 0 is saved as rcm_0.rcm
[   0.0437 ] RCM 1 is saved as rcm_1.rcm
[   0.0437 ] List of rcm files are saved in rcm_list.xml
[   0.0437 ] 
[   0.0437 ] Signing RCM messages
[   0.0446 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0454 ] Assuming zero filled SBK key
[   0.0487 ] 
[   0.0487 ] Copying signature to RCM mesages
[   0.0495 ] tegrarcm_v2 --chip 0x18 0 --updatesig rcm_list_signed.xml
[   0.0506 ] 
[   0.0506 ] Boot Rom communication
[   0.0514 ] tegrarcm_v2 --chip 0x18 0 --rcm rcm_list_signed.xml
[   0.0522 ] BootRom is not running
[   5.1876 ] 
[   6.1917 ] tegrarcm_v2 --isapplet
[   6.1944 ] Applet version 01.00.0000
[   6.2139 ] 
[   6.2169 ] tegrasign_v2 --key None --getmode mode.txt
[   6.2183 ] Assuming zero filled SBK key
[   6.2185 ] 
[   6.2185 ] Parsing partition layout
[   6.2236 ] tegraparser_v2 --pt flash.xml.tmp
[   6.2248 ] 
[   6.2248 ] Creating list of images to be signed
[   6.2256 ] tegrahost_v2 --chip 0x18 0 --partitionlayout flash.xml.bin --list images_list.xml zerosbk
[   6.2460 ] 
[   6.2461 ] Generating signatures
[   6.2470 ] tegrasign_v2 --key None --list images_list.xml --pubkeyhash pub_key.key
[   6.2476 ] Assuming zero filled SBK key
[   6.4674 ] 
[   6.4674 ] Reading BCT from device for further operations
[   6.4675 ] Generating blob
[   6.4683 ] tegrahost_v2 --chip 0x18 --align blob_nvtboot_recovery_cpu.bin
[   6.4690 ] 
[   6.4696 ] tegrahost_v2 --appendsigheader blob_nvtboot_recovery_cpu.bin zerosbk
[   6.4705 ] 
[   6.4715 ] tegrasign_v2 --key None --list blob_nvtboot_recovery_cpu_sigheader.bin_list.xml
[   6.4721 ] Assuming zero filled SBK key
[   6.4763 ] 
[   6.4772 ] tegrahost_v2 --updatesigheader blob_nvtboot_recovery_cpu_sigheader.bin.encrypt blob_nvtboot_recovery_cpu_sigheader.bin.hash zerosbk
[   6.4781 ] 
[   6.4788 ] tegrahost_v2 --chip 0x18 --align blob_nvtboot_recovery.bin
[   6.4794 ] 
[   6.4801 ] tegrahost_v2 --appendsigheader blob_nvtboot_recovery.bin zerosbk
[   6.4809 ] 
[   6.4817 ] tegrasign_v2 --key None --list blob_nvtboot_recovery_sigheader.bin_list.xml
[   6.4823 ] Assuming zero filled SBK key
[   6.4842 ] 
[   6.4851 ] tegrahost_v2 --updatesigheader blob_nvtboot_recovery_sigheader.bin.encrypt blob_nvtboot_recovery_sigheader.bin.hash zerosbk
[   6.4859 ] 
[   6.4866 ] tegrahost_v2 --chip 0x18 --align blob_preboot_d15_prod_cr.bin
[   6.4872 ] 
[   6.4879 ] tegrahost_v2 --appendsigheader blob_preboot_d15_prod_cr.bin zerosbk
[   6.4887 ] 
[   6.4898 ] tegrasign_v2 --key None --list blob_preboot_d15_prod_cr_sigheader.bin_list.xml
[   6.4905 ] Assuming zero filled SBK key
[   6.4919 ] 
[   6.4928 ] tegrahost_v2 --updatesigheader blob_preboot_d15_prod_cr_sigheader.bin.encrypt blob_preboot_d15_prod_cr_sigheader.bin.hash zerosbk
[   6.4936 ] 
[   6.4943 ] tegrahost_v2 --chip 0x18 --align blob_mce_mts_d15_prod_cr.bin
[   6.4950 ] 
[   6.4957 ] tegrahost_v2 --appendsigheader blob_mce_mts_d15_prod_cr.bin zerosbk
[   6.4989 ] 
[   6.4999 ] tegrasign_v2 --key None --list blob_mce_mts_d15_prod_cr_sigheader.bin_list.xml
[   6.5005 ] Assuming zero filled SBK key
[   6.5434 ] 
[   6.5444 ] tegrahost_v2 --updatesigheader blob_mce_mts_d15_prod_cr_sigheader.bin.encrypt blob_mce_mts_d15_prod_cr_sigheader.bin.hash zerosbk
[   6.5471 ] 
[   6.5479 ] tegrahost_v2 --chip 0x18 --align blob_bpmp.bin
[   6.5486 ] 
[   6.5492 ] tegrahost_v2 --appendsigheader blob_bpmp.bin zerosbk
[   6.5505 ] 
[   6.5515 ] tegrasign_v2 --key None --list blob_bpmp_sigheader.bin_list.xml
[   6.5520 ] Assuming zero filled SBK key
[   6.5630 ] 
[   6.5640 ] tegrahost_v2 --updatesigheader blob_bpmp_sigheader.bin.encrypt blob_bpmp_sigheader.bin.hash zerosbk
[   6.5652 ] 
[   6.5659 ] tegrahost_v2 --chip 0x18 --align blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb
[   6.5666 ] 
[   6.5672 ] tegrahost_v2 --appendsigheader blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb zerosbk
[   6.5684 ] 
[   6.5692 ] tegrasign_v2 --key None --list blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb_list.xml
[   6.5698 ] Assuming zero filled SBK key
[   6.5795 ] 
[   6.5805 ] tegrahost_v2 --updatesigheader blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.encrypt blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.hash zerosbk
[   6.5816 ] 
[   6.5824 ] tegrahost_v2 --chip 0x18 --align blob_tos-trusty.img
[   6.5830 ] 
[   6.5837 ] tegrahost_v2 --appendsigheader blob_tos-trusty.img zerosbk
[   6.5847 ] 
[   6.5855 ] tegrasign_v2 --key None --list blob_tos-trusty_sigheader.img_list.xml
[   6.5861 ] Assuming zero filled SBK key
[   6.5927 ] 
[   6.5937 ] tegrahost_v2 --updatesigheader blob_tos-trusty_sigheader.img.encrypt blob_tos-trusty_sigheader.img.hash zerosbk
[   6.5947 ] 
[   6.5955 ] tegrahost_v2 --chip 0x18 --align blob_eks.img
[   6.5961 ] 
[   6.5968 ] tegrahost_v2 --appendsigheader blob_eks.img zerosbk
[   6.5974 ] 
[   6.5982 ] tegrasign_v2 --key None --list blob_eks_sigheader.img_list.xml
[   6.5988 ] Assuming zero filled SBK key
[   6.5990 ] 
[   6.5999 ] tegrahost_v2 --updatesigheader blob_eks_sigheader.img.encrypt blob_eks_sigheader.img.hash zerosbk
[   6.6005 ] 
[   6.6012 ] tegrahost_v2 --chip 0x18 --align blob_tegra186-quill-p3310-1000-c03-00-base.dtb
[   6.6019 ] 
[   6.6026 ] tegrahost_v2 --appendsigheader blob_tegra186-quill-p3310-1000-c03-00-base.dtb zerosbk
[   6.6037 ] 
[   6.6045 ] tegrasign_v2 --key None --list blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb_list.xml
[   6.6052 ] Assuming zero filled SBK key
[   6.6123 ] 
[   6.6131 ] tegrahost_v2 --updatesigheader blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.hash zerosbk
[   6.6141 ] 
[   6.6150 ] tegrahost_v2 --chip 0x18 --generateblob blob.xml blob.bin
[   6.6156 ] number of images in blob are 9
[   6.6158 ] blobsize is 4097256
[   6.6159 ] Added binary blob_nvtboot_recovery_cpu_sigheader.bin.encrypt of size 203312
[   6.6175 ] Added binary blob_nvtboot_recovery_sigheader.bin.encrypt of size 89360
[   6.6178 ] Added binary blob_preboot_d15_prod_cr_sigheader.bin.encrypt of size 63104
[   6.6182 ] Added binary blob_mce_mts_d15_prod_cr_sigheader.bin.encrypt of size 2082144
[   6.6186 ] Added binary blob_bpmp_sigheader.bin.encrypt of size 533904
[   6.6190 ] Added binary blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.encrypt of size 466240
[   6.6196 ] Added binary blob_tos-trusty_sigheader.img.encrypt of size 313152
[   6.6199 ] Added binary blob_eks_sigheader.img.encrypt of size 1440
[   6.6201 ] Added binary blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt of size 344448
[   6.6213 ] 
[   6.6213 ] Sending bootloader and pre-requisite binaries
[   6.6222 ] tegrarcm_v2 --download blob blob.bin
[   6.6229 ] Applet version 01.00.0000
[   6.6456 ] Sending blob
[   6.6457 ] [................................................] 100%
[   7.2108 ] 
[   7.2138 ] tegrarcm_v2 --boot recovery
[   7.2166 ] Applet version 01.00.0000
[   7.2362 ] 
[   8.2406 ] tegrarcm_v2 --isapplet
[   8.2606 ] 
[   8.2637 ] tegradevflash_v2 --iscpubl
[   8.2667 ] CPU Bootloader is not running on device.
[   8.2802 ] 
[   9.2846 ] tegrarcm_v2 --isapplet
[   9.3108 ] 
[   9.3141 ] tegradevflash_v2 --iscpubl
[   9.3171 ] Bootloader version 01.00.0000
[   9.3340 ] Bootloader version 01.00.0000
[   9.3349 ] 
[   9.3350 ] Writing partition
[   9.3379 ] tegradevflash_v2 --write spe-fw 1_spe_sigheader.bin.encrypt
[   9.3406 ] Bootloader version 01.00.0000
[   9.3579 ] Writing partition spe-fw with 1_spe_sigheader.bin.encrypt
[   9.3591 ] [................................................] 100%
[   9.4620 ] 
[   9.4622 ] Coldbooting the device
[   9.4652 ] tegradevflash_v2 --reboot coldboot
[   9.4683 ] Bootloader version 01.00.0000
[   9.4753 ] 
*** The [spe-fw] has been updated successfully. ***

What can’t I do ?

  1. I want to JUST blink a led. https://cdn-shop.adafruit.com/1200x900/754-00.jpg
static portTASK_FUNCTION(gpio_app_task, pvParameters)
{
   (void)pvParameters;
	int val;

	val = gpio_direction_out(GPIO_APP_OUT, 0);
	if (0) {
		error_hook("gpio_direction_out failed\r\n");
		return;
	}
	val = gpio_direction_in(GPIO_APP_IN);
	if (0) {
		error_hook("gpio_direction_in failed\r\n");
		return;
	}

	val = gpio_set_irq_type(GPIO_APP_IN, GPIO_IRQ_SINGLE_EDGE,
				GPIO_IRQ_RISING_EDGE);
	if (0) {
		error_hook("gpio_set_irq_type failed\r\n");
		return;
	}

	val = gpio_set_irq_handler(GPIO_APP_IN, can_gpio_irq_handler, NULL);
	if (0) {
		error_hook("gpio_set_irq_handler failed\r\n");
		return;
	}

	val = gpio_enable_irq(GPIO_APP_IN);
	if (0) {
		error_hook("gpio_enable_irq failed\r\n");
		return;
	}
	val = +val;
	while (1) {
		printf("%s - Setting GPIO_APP_OUT to 1 - IRQ should trigger\r\n",
		       __func__);
		gpio_set_value(GPIO_APP_OUT, 1);
		vTaskDelay(GPIO_OUT_SET_DELAY);
		gpio_set_value(GPIO_APP_OUT, 0);
		vTaskDelay(GPIO_OUT_SET_DELAY);
	};
}

I tried JUST BLINK A LED during GPIO_OUT_SET_DELAY on, off ,on ,off …
I bind j26 17pin and led with jumper to breadboard. I tried just easy thing but I couldn’t.
Help for this . Code does not do it. How could I change this code ?

  1. I want to debug rt-aux-cpu-demo. I checked carrier board schematic. my board:

https://icdn7.digitaltrends.com/image/digitaltrends/jetsontx2-03-640x640.jpg

How could I connect with ttl cable and UART port (UARTG in TX2 TRM, UART4_TX/RX in TX2) ? There are no pins for uart4. I used j17 and my output.
I connect my ttl cable to j17 pins 5 and 4. then looking with ‘putty’.
Just output:

Message from SPE R5 UART

How could I get this following output?

main enter
SPE VERSION #: ... ...
HW Function test
Start Scheduler.
in late init

Please help for intend. Briefly just blink led and debugging. But I couldn’t.
Did anyone do above two intentions? Could anyone tell step by step ?

Hello, hamzaygrtc:
Let’s clarify your issues one by one.

  1. UART issue
    Have you ever checked Jetson TX2 schematic (Search ‘Jetson TX1-TX2 Developer Kit Carrier Board Design Files’ in https://developer.nvidia.com/embedded/downloads, and check P2597_C02_Concept_schematics.pdf in that package)?
    There are 2 UART port in TX2 AON cluster and you can check TX2 TRM chapter ‘Always-ON Cluster (AON) and SPE’ – UART for details. And these 2 ports are used in SPE firmware.

1.1 UARTC@0x0c280000: in P2597 schematic, the TX/RX pins are UART1_TXD/RXD, and you can easily access those pins in J17.
This UART port is for UART app testing, and if you set ENABLE_UART_APP flag in soc/t18x/target_specific.mk, some messages will be output to this port. (I’ve seen in another thread that you pasted ‘Message from SPE R5 UART’, and that’s exactly the message UART test app prints, and so SPE UART works.)

1.2 UARTG@0x0c290000: in P2597 schemati, the TX/RX pins are UART4_TX/RX, and those pins are not exported to any jack and you may have to fly wires from resistors to access.
This port is used for SPE debug, and by default, all print code in SPE firmware will be output to this port. (Another processor also shares this port, and you can just ignore those messages after device power-on.)
So if you want to see logs like ‘SPE VERSION #: … …’, please access this UART port.

You can double check doc/uart.md for details.

  1. GPIO.
    Check doc/gpio.md first. Make sure that you can see logs like ‘Setting GPIO_APP_OUT to 1 - IRQ should trigger’ in UART, and that means GPIO app runs. If not, maybe something is missed and please follow steps in doc/gpio.md.
    Then you can use a scope or meter to check voltages in pin 17 of J26, and it should toggle every few seconds.

Hope that can help.
Good luck.

br
ChenJian

Hi jachen ,
1)mobile_scr.cfg:

scr.1549.2 = 0x1C001010; # GPIO_Z_SCR_00_0
scr.1550.2 = 0x1C001010; # GPIO_Z_SCR_01_0

I updated both Linux_for_Tegra/bootloader/t186ref/BCT/mobile_scr.cfg and
Linux_for_Tegra/bootloader/mobile_scr.cfg

2)tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg:

pinmux.0x0c303008 = 0x00000004; # can1_dout_pz0
pinmux.0x0c303010 = 0x00000058; # can1_din_pz1

I updated both
Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg and Linux_for_Tegra/bootloader/tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg

Then again flashed my board with sudo ./flash.sh -k spe-fw jetson-tx2 mmcblk0p1
result :

###############################################################################
# L4T BSP Information:
# R32 , REVISION: 2.1
###############################################################################
# Target Board Information:
# Name: jetson-tx2, Board Family: t186ref, SoC: Tegra 186, 
# OpMode: production, Boot Authentication: NS, 
###############################################################################
./tegraflash.py --chip 0x18 --applet "/home/nvidia/Desktop/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin" --skipuid --cmd "dump eeprom boardinfo cvm.bin" 
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 
[   0.0037 ] Generating RCM messages
[   0.0051 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 0 --download rcm /home/nvidia/Desktop/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin 0 0
[   0.0061 ] RCM 0 is saved as rcm_0.rcm
[   0.0066 ] RCM 1 is saved as rcm_1.rcm
[   0.0066 ] List of rcm files are saved in rcm_list.xml
[   0.0066 ] 
[   0.0067 ] Signing RCM messages
[   0.0076 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0084 ] Assuming zero filled SBK key
[   0.0115 ] 
[   0.0115 ] Copying signature to RCM mesages
[   0.0122 ] tegrarcm_v2 --chip 0x18 0 --updatesig rcm_list_signed.xml
[   0.0133 ] 
[   0.0133 ] Boot Rom communication
[   0.0141 ] tegrarcm_v2 --chip 0x18 0 --rcm rcm_list_signed.xml --skipuid
[   0.0149 ] RCM version 0X180001
[   0.0158 ] Boot Rom communication completed
[   1.0230 ] 
[   2.0276 ] tegrarcm_v2 --isapplet
[   2.0303 ] Applet version 01.00.0000
[   2.0342 ] 
[   2.0368 ] Retrieving EEPROM data
[   2.0369 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/nvidia/Desktop/Linux_for_Tegra/bootloader/cvm.bin
[   2.0375 ] Applet version 01.00.0000
[   2.0701 ] Saved platform info in /home/nvidia/Desktop/Linux_for_Tegra/bootloader/cvm.bin
[   2.1440 ] 
Board ID(3310) version(B02) sku(1000) revision(E.0)
copying bctfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg)... done.
copying misc_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-misc-si-l4t.cfg)... done.
copying pinmux_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg)... done.
copying pmic_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg)... done.
copying pmc_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg)... done.
copying prod_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg)... done.
copying scr_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/minimal_scr.cfg)... done.
copying scr_cold_boot_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/mobile_scr.cfg)... done.
copying bootrom_config(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg)... done.
copying dev_params(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT/emmc.cfg)... done.
Existing bootloader(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused.
copying initrd(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/l4t_initrd.img)... done.
    populating kernel to rootfs... done.
    populating initrd to rootfs... done.
    populating /home/nvidia/Desktop/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb to rootfs... done.
Making Boot image... done.
Existing sosfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin) reused.
copying tegraboot(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/nvtboot.bin)... done.
Existing cpu_bootloader(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused.
Existing mb2blfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/nvtboot_recovery.bin) reused.
Existing mtspreboot(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/preboot_d15_prod_cr.bin) reused.
Existing mts(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/mce_mts_d15_prod_cr.bin) reused.
Existing mb1file(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/mb1_prod.bin) reused.
Existing bpffile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/bpmp.bin) reused.
copying bpfdtbfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb)... done.
Existing scefile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/camera-rtcpu-sce.img) reused.
Existing spefile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/spe.bin) reused.
Existing drameccfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/dram-ecc.bin) reused.
Existing badpagefile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/badpage.bin) reused.
copying wb0boot(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/warmboot.bin)... done.
Existing tosfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/tos-trusty.img) reused.
Existing eksfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/eks.img) reused.
copying dtbfile(/home/nvidia/Desktop/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb)... done.
Copying nv_boot_control.conf to rootfs
Existing tbcfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/cboot.bin) reused.
copying tbcdtbfile(/home/nvidia/Desktop/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb)... done.
copying cfgfile(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/t186ref/cfg/flash_l4t_t186.xml) to flash.xml... done.
Existing flasher(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/nvtboot_recovery_cpu.bin) reused.
Existing flashapp(/home/nvidia/Desktop/Linux_for_Tegra/bootloader/tegraflash.py) reused.
*** Updating [spe-fw] with spe.bin ***
./tegraflash.py --bl nvtboot_recovery_cpu.bin  --chip 0x18 --applet mb1_recovery_prod.bin --sdram_config P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --misc_config tegra186-mb1-bct-misc-si-l4t.cfg --pinmux_config tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmic_config tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --pmc_config tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --prod_config tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg --scr_config minimal_scr.cfg --scr_cold_boot_config mobile_scr.cfg --br_cmd_config tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --dev_params emmc.cfg  --cfg  flash.xml --bins "mb2_bootloader nvtboot_recovery.bin; mts_preboot preboot_d15_prod_cr.bin; mts_bootpack mce_mts_d15_prod_cr.bin; bpmp_fw bpmp.bin; bpmp_fw_dtb tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb; tlk tos-trusty.img; eks eks.img; bootloader_dtb tegra186-quill-p3310-1000-c03-00-base.dtb"  --cmd "signwrite spe-fw spe.bin; reboot"  
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
 
[   0.0079 ] tegrasign_v2 --key None --getmode mode.txt
[   0.0086 ] Assuming zero filled SBK key
[   0.0087 ] 
[   0.0087 ] sign_type   : 3808440620
[   0.0087 ] header_magic: e62800ea
[   0.0096 ] tegrahost_v2 --chip 0x18 --align 1_spe.bin
[   0.0102 ] 
[   0.0109 ] tegrahost_v2 --appendsigheader 1_spe.bin zerosbk
[   0.0117 ] 
[   0.0125 ] tegrasign_v2 --key None --list 1_spe_sigheader.bin_list.xml
[   0.0131 ] Assuming zero filled SBK key
[   0.0150 ] 
[   0.0162 ] tegrahost_v2 --updatesigheader 1_spe_sigheader.bin.encrypt 1_spe_sigheader.bin.hash zerosbk
[   0.0171 ] 
[   0.0171 ] Generating RCM messages
[   0.0181 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 0 --download rcm mb1_recovery_prod.bin 0 0
[   0.0187 ] RCM 0 is saved as rcm_0.rcm
[   0.0190 ] RCM 1 is saved as rcm_1.rcm
[   0.0190 ] List of rcm files are saved in rcm_list.xml
[   0.0190 ] 
[   0.0190 ] Signing RCM messages
[   0.0196 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0202 ] Assuming zero filled SBK key
[   0.0227 ] 
[   0.0227 ] Copying signature to RCM mesages
[   0.0233 ] tegrarcm_v2 --chip 0x18 0 --updatesig rcm_list_signed.xml
[   0.0241 ] 
[   0.0242 ] Boot Rom communication
[   0.0248 ] tegrarcm_v2 --chip 0x18 0 --rcm rcm_list_signed.xml
[   0.0254 ] BootRom is not running
[   5.1622 ] 
[   6.1666 ] tegrarcm_v2 --isapplet
[   6.1692 ] Applet version 01.00.0000
[   6.1885 ] 
[   6.1916 ] tegrasign_v2 --key None --getmode mode.txt
[   6.1928 ] Assuming zero filled SBK key
[   6.1929 ] 
[   6.1930 ] Parsing partition layout
[   6.1938 ] tegraparser_v2 --pt flash.xml.tmp
[   6.1949 ] 
[   6.1950 ] Creating list of images to be signed
[   6.1958 ] tegrahost_v2 --chip 0x18 0 --partitionlayout flash.xml.bin --list images_list.xml zerosbk
[   6.2153 ] 
[   6.2153 ] Generating signatures
[   6.2162 ] tegrasign_v2 --key None --list images_list.xml --pubkeyhash pub_key.key
[   6.2169 ] Assuming zero filled SBK key
[   6.4409 ] 
[   6.4409 ] Reading BCT from device for further operations
[   6.4409 ] Generating blob
[   6.4418 ] tegrahost_v2 --chip 0x18 --align blob_nvtboot_recovery_cpu.bin
[   6.4424 ] 
[   6.4431 ] tegrahost_v2 --appendsigheader blob_nvtboot_recovery_cpu.bin zerosbk
[   6.4440 ] 
[   6.4449 ] tegrasign_v2 --key None --list blob_nvtboot_recovery_cpu_sigheader.bin_list.xml
[   6.4455 ] Assuming zero filled SBK key
[   6.4497 ] 
[   6.4507 ] tegrahost_v2 --updatesigheader blob_nvtboot_recovery_cpu_sigheader.bin.encrypt blob_nvtboot_recovery_cpu_sigheader.bin.hash zerosbk
[   6.4516 ] 
[   6.4524 ] tegrahost_v2 --chip 0x18 --align blob_nvtboot_recovery.bin
[   6.4530 ] 
[   6.4538 ] tegrahost_v2 --appendsigheader blob_nvtboot_recovery.bin zerosbk
[   6.4548 ] 
[   6.4556 ] tegrasign_v2 --key None --list blob_nvtboot_recovery_sigheader.bin_list.xml
[   6.4562 ] Assuming zero filled SBK key
[   6.4582 ] 
[   6.4591 ] tegrahost_v2 --updatesigheader blob_nvtboot_recovery_sigheader.bin.encrypt blob_nvtboot_recovery_sigheader.bin.hash zerosbk
[   6.4599 ] 
[   6.4607 ] tegrahost_v2 --chip 0x18 --align blob_preboot_d15_prod_cr.bin
[   6.4614 ] 
[   6.4621 ] tegrahost_v2 --appendsigheader blob_preboot_d15_prod_cr.bin zerosbk
[   6.4628 ] 
[   6.4636 ] tegrasign_v2 --key None --list blob_preboot_d15_prod_cr_sigheader.bin_list.xml
[   6.4642 ] Assuming zero filled SBK key
[   6.4657 ] 
[   6.4665 ] tegrahost_v2 --updatesigheader blob_preboot_d15_prod_cr_sigheader.bin.encrypt blob_preboot_d15_prod_cr_sigheader.bin.hash zerosbk
[   6.4673 ] 
[   6.4679 ] tegrahost_v2 --chip 0x18 --align blob_mce_mts_d15_prod_cr.bin
[   6.4686 ] 
[   6.4693 ] tegrahost_v2 --appendsigheader blob_mce_mts_d15_prod_cr.bin zerosbk
[   6.4727 ] 
[   6.4738 ] tegrasign_v2 --key None --list blob_mce_mts_d15_prod_cr_sigheader.bin_list.xml
[   6.4744 ] Assuming zero filled SBK key
[   6.5178 ] 
[   6.5188 ] tegrahost_v2 --updatesigheader blob_mce_mts_d15_prod_cr_sigheader.bin.encrypt blob_mce_mts_d15_prod_cr_sigheader.bin.hash zerosbk
[   6.5216 ] 
[   6.5224 ] tegrahost_v2 --chip 0x18 --align blob_bpmp.bin
[   6.5230 ] 
[   6.5237 ] tegrahost_v2 --appendsigheader blob_bpmp.bin zerosbk
[   6.5249 ] 
[   6.5258 ] tegrasign_v2 --key None --list blob_bpmp_sigheader.bin_list.xml
[   6.5264 ] Assuming zero filled SBK key
[   6.5377 ] 
[   6.5388 ] tegrahost_v2 --updatesigheader blob_bpmp_sigheader.bin.encrypt blob_bpmp_sigheader.bin.hash zerosbk
[   6.5401 ] 
[   6.5408 ] tegrahost_v2 --chip 0x18 --align blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb
[   6.5415 ] 
[   6.5421 ] tegrahost_v2 --appendsigheader blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb zerosbk
[   6.5433 ] 
[   6.5442 ] tegrasign_v2 --key None --list blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb_list.xml
[   6.5448 ] Assuming zero filled SBK key
[   6.5543 ] 
[   6.5552 ] tegrahost_v2 --updatesigheader blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.encrypt blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.hash zerosbk
[   6.5563 ] 
[   6.5570 ] tegrahost_v2 --chip 0x18 --align blob_tos-trusty.img
[   6.5577 ] 
[   6.5584 ] tegrahost_v2 --appendsigheader blob_tos-trusty.img zerosbk
[   6.5594 ] 
[   6.5603 ] tegrasign_v2 --key None --list blob_tos-trusty_sigheader.img_list.xml
[   6.5610 ] Assuming zero filled SBK key
[   6.5681 ] 
[   6.5694 ] tegrahost_v2 --updatesigheader blob_tos-trusty_sigheader.img.encrypt blob_tos-trusty_sigheader.img.hash zerosbk
[   6.5705 ] 
[   6.5712 ] tegrahost_v2 --chip 0x18 --align blob_eks.img
[   6.5719 ] 
[   6.5725 ] tegrahost_v2 --appendsigheader blob_eks.img zerosbk
[   6.5732 ] 
[   6.5740 ] tegrasign_v2 --key None --list blob_eks_sigheader.img_list.xml
[   6.5747 ] Assuming zero filled SBK key
[   6.5749 ] 
[   6.5757 ] tegrahost_v2 --updatesigheader blob_eks_sigheader.img.encrypt blob_eks_sigheader.img.hash zerosbk
[   6.5764 ] 
[   6.5771 ] tegrahost_v2 --chip 0x18 --align blob_tegra186-quill-p3310-1000-c03-00-base.dtb
[   6.5779 ] 
[   6.5786 ] tegrahost_v2 --appendsigheader blob_tegra186-quill-p3310-1000-c03-00-base.dtb zerosbk
[   6.5796 ] 
[   6.5804 ] tegrasign_v2 --key None --list blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb_list.xml
[   6.5810 ] Assuming zero filled SBK key
[   6.5883 ] 
[   6.5892 ] tegrahost_v2 --updatesigheader blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.hash zerosbk
[   6.5903 ] 
[   6.5911 ] tegrahost_v2 --chip 0x18 --generateblob blob.xml blob.bin
[   6.5918 ] number of images in blob are 9
[   6.5920 ] blobsize is 4097256
[   6.5921 ] Added binary blob_nvtboot_recovery_cpu_sigheader.bin.encrypt of size 203312
[   6.5939 ] Added binary blob_nvtboot_recovery_sigheader.bin.encrypt of size 89360
[   6.5942 ] Added binary blob_preboot_d15_prod_cr_sigheader.bin.encrypt of size 63104
[   6.5945 ] Added binary blob_mce_mts_d15_prod_cr_sigheader.bin.encrypt of size 2082144
[   6.5948 ] Added binary blob_bpmp_sigheader.bin.encrypt of size 533904
[   6.5952 ] Added binary blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.encrypt of size 466240
[   6.5957 ] Added binary blob_tos-trusty_sigheader.img.encrypt of size 313152
[   6.5960 ] Added binary blob_eks_sigheader.img.encrypt of size 1440
[   6.5962 ] Added binary blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt of size 344448
[   6.5973 ] 
[   6.5974 ] Sending bootloader and pre-requisite binaries
[   6.5983 ] tegrarcm_v2 --download blob blob.bin
[   6.5990 ] Applet version 01.00.0000
[   6.6164 ] Sending blob
[   6.6164 ] [................................................] 100%
[   7.1949 ] 
[   7.1978 ] tegrarcm_v2 --boot recovery
[   7.1990 ] Applet version 01.00.0000
[   7.2179 ] 
[   8.2222 ] tegrarcm_v2 --isapplet
[   8.2430 ] 
[   8.2461 ] tegradevflash_v2 --iscpubl
[   8.2488 ] CPU Bootloader is not running on device.
[   8.2628 ] 
[   9.2672 ] tegrarcm_v2 --isapplet
[   9.2884 ] 
[   9.2916 ] tegradevflash_v2 --iscpubl
[   9.2944 ] Bootloader version 01.00.0000
[   9.3129 ] Bootloader version 01.00.0000
[   9.3138 ] 
[   9.3139 ] Writing partition
[   9.3170 ] tegradevflash_v2 --write spe-fw 1_spe_sigheader.bin.encrypt
[   9.3199 ] Bootloader version 01.00.0000
[   9.3368 ] Writing partition spe-fw with 1_spe_sigheader.bin.encrypt
[   9.3380 ] [................................................] 100%
[   9.4421 ] 
[   9.4424 ] Coldbooting the device
[   9.4453 ] tegradevflash_v2 --reboot coldboot
[   9.4482 ] Bootloader version 01.00.0000
[   9.4560 ] 
*** The [spe-fw] has been updated successfully. ***

I put a led to j26 pin 17 but just blink led, not off then on, just blinking.
I tried #define GPIO_OUT_SET_DELAY 500
#define GPIO_OUT_SET_DELAY 1000
#define GPIO_OUT_SET_DELAY 2000
#define GPIO_OUT_SET_DELAY 3000

If this happen, I will fly wires from resistors to acces for uarg. But no result for this GPIO app.

Hello, hamzaygrtc:
After you changed ./bootloader/t186ref/BCT/mobile_scr.cfg or ./bootloader/t186ref/BCT/tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg, you need re-flash the device fully to make these configurations take effect. (If only SPE-FW is flashed, SCR/PINMUX changes will NOT been updated.)

What do you mean

I put a led to j26 pin 17 but just blink led, not off then on, just blinking.

GPIO just toggle between 0/1. So LED should on and off by GPIO_OUT_SET_DELAY. If you see that happens, GPIO app works correctly. Maybe you can adjust the delay.

br
ChenJian

thank you jachen, it runs.