<@U016EM8L91B> <@U0172QZ342D> I received my CI2311...
# chipignite
v
@Tim Edwards @Matt Venn I received my CI2311 chips and test board, which is based on Caravan and include analog designs. I have a few clarifications to initiate testing: 1. My design primarily uses analog pins and few gpio_analog pins. Do I need to run firmware as described in this link to initiate measurements? 2. I am using Linux (Ubuntu) installed on VirtualBox on my Windows laptop. Will I be able to run firmware on Ubuntu to program the Caravel board?
m
If you need to setup IOs differently to how you defined them, then yes. Otherwise the chip should be ready to go.
Yes you can build new firmware on Ubuntu if you need to
v
Thanks, @Matt Venn, for your input. Just to confirm, should just connect micro-USB to power board and start testing using Digilent Analog Discovery. Is that correct?
m
yes
👍 1
v
@Matt Venn @Tim Edwards For my design in CI2311, I am able to measure the analog output signal connected to the
io_analog
pin. However, another analog output signal connected to
gpio_analog
pin, programmed in ``GPIO_MODE_USER_STD_ANALOG`` mode in the
user_define.v
file, I observe a pulse-like signal instead of a constant DC voltage. Could you please suggest what I can do to achieve the expected analog signal output from the GPIO pin in analog mode?
m
If it's already in analog mode, then could it be that your design is making the pulse?
v
@Matt Venn Specific GPIO pin is connected to output dc voltage hence should not give a pulse. I will again check it but can you suggest some way to debug GPIO pin functionality.
@Matt Venn I see attached pulse waveform of approx. 160ms (6.25Hz) at
gpio_analog[6]
caravan pad/`mprj_io[13`] package pin. Have used ``GPIO_MODE_USER_STD_ANALOG`` mode in the
user_define.v
file for all GPIO pins in my design.
m
maybe it's running some firmware that flashes all the gpios
does the pulse go away when you reset the chip?
v
No, pulse reappears again. I replaced with another daughter card and here D3 led is blinking which was not case with first daughter card. What is reason for this?
m
No I mean, when in reset, does the pulse go away
but sounds like it does
so I think you have some firmware on there
the default firmware flashes all the pins
v
Yes, the pulse does goes away when reset is pressed and reappears after release.
Is it ok for D3 led to keep blinking?
m
I would change the firmware so that it helps you do what you want, rather than get in the way
v
Ok, how can that be done. Please suggest
m
so I would copy that as a starting point, adapt it to your needs and then flash it
And the matching video:

https://youtu.be/qjjLdVbYq-Q?si=QDvzdpxLUHrFOFyu&amp;t=2388

v
Ok, thanks for sharing. I have analog background with no past experience with digital circuits and firmware etc. Hope going through above resources will make me understand to handle it. If there is anything basic to start with please suggest that also.
@Matt Venn Trying to program caravel by running
make clean flash
but getting error.
TOOLCHAIN_PATH
variable is also set in
Makefile
. Please suggest what could be issue ?
don't see file in path
/opt/riscv/bin/ riscv64-unknown-elf-gcc
m
Install a riscv tool chain
v
I was able to install riscv tool chain but facing some issue with FTDI. I am using Ubuntu on virtual box in windows. Any settings to be made in virtua box?