Tim Edwards
03/31/2023, 12:57 PMPraveen raj
04/01/2023, 7:38 PMAyushman Tripathi
04/03/2023, 10:33 PMStanley Lin
04/11/2023, 10:53 PMmake run_analog PART=1
, I keep getting this error showing fail to receive ready signal from firmware
. I looked at the previous thread and know this is the Nucleo board problem. However I couldn't find the solution to that. Does that mean the only thing I can do is to either change the Nucloe board or test the chip without the board?Praveen raj
04/12/2023, 7:00 PMStanley Lin
04/14/2023, 9:44 PM1e7
delayed cycle in the code (1e7 *1/10MHz = 1 s)
while(1) {
reg_mprj_datal = 0x00000000;
reg_mprj_datah = 0x00000000;
reg_gpio_out = 0x0;
delay(10000000);
reg_mprj_datal = 0xffffffff;
reg_mprj_datah = 0xffffffff;
reg_gpio_out = 0x1;
delay(10000000);
}
Stanley Lin
04/14/2023, 9:56 PM1
, the pulse width of the toggling signal is expected to be 1/10MHz = 100 ns
, However, I can't see the correct waveform toggling at 100ns. My sampling rate of the signal analyzer is 100MS/sec
so I think it's enough. I even tried to increase the delay cycle to 10, 100, 1000 and all showing an unexpected low speed square wave. It seems that the delay cycle should be large enough for the chip to "digest" the program or something? I couldn't figure it out whats happening here?
while(1) {
reg_mprj_datal = 0x00000000;
reg_mprj_datah = 0x00000000;
reg_gpio_out = 0x0;
delay(1);
reg_mprj_datal = 0xffffffff;
reg_mprj_datah = 0xffffffff;
reg_gpio_out = 0x1;
delay(1);
}
Stanley Lin
04/14/2023, 9:59 PMC_MGMT_OUT
and here is the entire gpio_test.c
I'm using.
The GPIO I am monitoring here is IO[8], IO[25], IO[32]
.Tim Edwards
04/14/2023, 10:18 PMreg_mprj_datal/h
registers are driven by a state machine in the housekeeping module and are programmed in four passes (one per byte). That means that its maximum rate is going to be something below 1MHz (I forget how many clock cycles are in the state machine; I'd need to look it up). If you try to drive the GPIO faster than that from the management SoC, the behavior will be a much slower pulse, since the housekeeping will hold the wishbone acknowledge until it has finished the write cycle.Praveen raj
04/18/2023, 3:11 PMFulai Zhu
04/20/2023, 10:16 PMStanley Lin
04/21/2023, 4:20 AMxclk
and short it to TIM3_CH2
, I need to put jumpers on the red spot showing in the second photo right?Matt Venn
04/21/2023, 1:04 PMMatt Venn
04/21/2023, 1:04 PMMatt Venn
04/21/2023, 1:04 PMStanley Lin
04/22/2023, 3:41 AMLine magic function not found.
error?hamza shabbir
04/23/2023, 6:10 AMYatharth Agarwal
04/23/2023, 7:49 AMhamza shabbir
04/24/2023, 6:32 AMMatt Venn
04/24/2023, 11:00 AMYatharth Agarwal
04/24/2023, 9:01 PM1ms
void main()
{
// Management GPIO Configuration
reg_gpio_mode1 = 1;
reg_gpio_mode0 = 0;
reg_gpio_ien = 1;
reg_gpio_oe = 1;
// User GPIO Configuration
set_registers();
gpio_config_io();
while (1)
{
reg_mprj_datal = 0x00000000; // GPIO0 - GPIO31 High
delay(10000); // Delay
reg_mprj_datal = 0xffffffff; // GPIO0 - GPIO31 Low
delay(10000); // Delay
}
}
and from observing the output on a logic analyser it seems to be really off. I have attached a screenshot of the same.
Seems like an interesting issue and would love to know the reason behind this. I appreciate any insights on the same.Thanks for all the insights and help.Matt Venn
05/03/2023, 5:11 PMMatt Venn
05/03/2023, 5:11 PMIvan Rodriguez
05/03/2023, 5:33 PMYatharth Agarwal
05/04/2023, 12:44 PMKavya Sreedhar
05/04/2023, 4:51 PMhamza shabbir
05/11/2023, 12:42 PMAnish
05/17/2023, 8:01 PMAnish
05/17/2023, 8:05 PMAbdullah YILDIZ
05/19/2023, 6:04 PM