Dinesh A
12/17/2023, 2:18 PMDinesh A
12/17/2023, 6:02 PMDinesh A
12/17/2023, 6:03 PMDinesh A
12/17/2023, 6:06 PMDinesh A
12/17/2023, 6:08 PMTim Edwards
12/17/2023, 9:48 PMDinesh A
12/18/2023, 2:42 AMTim Edwards
12/18/2023, 2:31 PMTim Edwards
12/18/2023, 2:33 PMTim Edwards
12/18/2023, 2:36 PMMatt Venn
12/18/2023, 3:27 PMTim Edwards
12/18/2023, 6:10 PMAnish
12/18/2023, 6:17 PMAnish
12/18/2023, 6:18 PMTim Edwards
12/18/2023, 6:20 PMAnish
12/18/2023, 6:20 PMAnish
12/18/2023, 6:22 PMTim Edwards
12/18/2023, 6:23 PMTim Edwards
12/18/2023, 6:28 PMAnish
12/18/2023, 6:28 PMAnish
12/18/2023, 6:29 PMTim Edwards
12/18/2023, 6:35 PMAnish
12/18/2023, 6:35 PMTim Edwards
12/18/2023, 6:59 PMTim Edwards
12/18/2023, 8:32 PMAnton Maurovic
12/18/2023, 11:11 PMAnton Maurovic
12/18/2023, 11:16 PMser_rx
but I'm not sure if that's normally floating, or asserted by the caravel_board)Anton Maurovic
12/18/2023, 11:18 PMDinesh A
12/19/2023, 1:59 AMAnton Maurovic
12/19/2023, 2:52 AMDinesh A
12/19/2023, 3:00 AMTim Edwards
12/19/2023, 3:02 AMAnton Maurovic
12/19/2023, 3:05 AMSCK
and flash_clk
Tim Edwards
12/19/2023, 3:10 AMreg_mprj_io_1 = GPIO_MODE_MGMT_STD_OUTPUT;
reg_mprj_io_2 = GPIO_MODE_USER_STD_BIDIRECTIONAL;
reg_mprj_io_3 = GPIO_MODE_USER_STD_BIDIRECTIONAL;
reg_mprj_io_4 = GPIO_MODE_USER_STD_BIDIRECTIONAL;
You have made pins 2 to 4 a user mode, so they are set to whatever the user project is doing, which could be either input or output. I suggest that for any tests where you don't need to access GPIO 2 to 4 from the user project, you use:
reg_mprj_io_1 = GPIO_MODE_MGMT_STD_OUTPUT;
reg_mprj_io_2 = GPIO_MODE_MGMT_STD_INPUT_NOPULL;
reg_mprj_io_3 = GPIO_MODE_MGMT_STD_INPUT_NOPULL;
reg_mprj_io_4 = GPIO_MODE_MGMT_STD_INPUT_NOPULL;
However, if you need to look at user project I/O on GPIO 2 to 4, then you will lose the ability to program through the housekeeping SPI and you will have to resort to either programming through the older 2204 part, or jumpering the header pins to program the SPI flash directly from the FTDI part, bypassing the Caravel chip.Dinesh A
12/19/2023, 4:54 PMTim Edwards
12/19/2023, 4:59 PM