Matthew Guthaus
02/01/2023, 9:35 PMTim Edwards
02/01/2023, 9:48 PMMatthew Guthaus
02/01/2023, 9:48 PMMatthew Guthaus
02/01/2023, 9:48 PMMatthew Guthaus
02/01/2023, 9:49 PMTim Edwards
02/01/2023, 9:50 PMio_config.py
defining led_blue = Led("B7")
and similar for the red and green LEDs. Then there are calls to, e.g., led_green.blink(short=..., long=...)
.Matthew Guthaus
02/01/2023, 9:51 PMMatthew Guthaus
02/01/2023, 9:52 PMTim Edwards
02/01/2023, 9:54 PMTim Edwards
02/01/2023, 9:54 PMTim Edwards
02/01/2023, 9:58 PMMatthew Guthaus
02/01/2023, 9:58 PMMatthew Guthaus
02/01/2023, 9:59 PMTim Edwards
02/01/2023, 10:04 PMTim Edwards
02/08/2023, 9:34 PMMatthew Guthaus
02/08/2023, 9:39 PMMatthew Guthaus
02/08/2023, 9:39 PMTim Edwards
02/08/2023, 9:41 PMMatthew Guthaus
02/08/2023, 9:43 PMMatthew Guthaus
02/08/2023, 9:43 PMMatthew Guthaus
02/08/2023, 9:44 PMMatthew Guthaus
02/08/2023, 9:51 PM::::: flashing Caravel :::::
gpio[01] - H_INDEPENDENT >> Failed
::::: flashing Caravel :::::
My JP6 was mashing a gnd springpin into the CARAVEL_CSB spring pin from the bottom side of the boardMatthew Guthaus
02/08/2023, 9:52 PMTim Edwards
02/08/2023, 9:59 PMMatthew Guthaus
02/08/2023, 9:59 PMMatthew Guthaus
02/08/2023, 9:59 PMMatthew Guthaus
02/08/2023, 9:59 PMMatthew Guthaus
02/08/2023, 10:00 PMMatthew Guthaus
02/08/2023, 10:02 PMTim Edwards
02/08/2023, 10:02 PMcaravel_board
project on github.Tim Edwards
02/08/2023, 10:03 PMmain
branch.Kavya Sreedhar
02/27/2023, 1:24 AMmake F746ZG
worked (except for the copy, for which I then did make copy2
which looked good, the files are there at /Volumes/PYBFLASH*/*
). I am using new usb cables and I see LEDs light up on both boards. I have included what the terminal output looks like for these commands in the thread. Do you have any suggestions on other things I could try? thanks for the help!Kavya Sreedhar
02/27/2023, 1:24 AM(caravel) kavya@Kavyas-MacBook-Pro nucleo % make F746ZG
mpy-cross flash.py
mpy-cross io_config.py
mpy-cross gpio_config_builder.py
mpy-cross i2c.py
mpy-cross nucleo_api.py
mpy-cross boot.py
st-flash --connect-under-reset --format ihex write F746ZG_firmware.hex
st-flash 1.7.0
2023-02-26T17:16:14 INFO common.c: F7xx: 320 KiB SRAM, 1024 KiB flash in at least 2 KiB pages.
2023-02-26T17:16:14 INFO common.c: Attempting to write 579808 (0x8d8e0) bytes to stm32 address: 134217728 (0x8000000)
EraseFlash - Sector:0x0 Size:0x8000 2023-02-26T17:16:14 INFO common.c: Flash page at addr: 0x08000000 erased
EraseFlash - Sector:0x1 Size:0x8000 2023-02-26T17:16:15 INFO common.c: Flash page at addr: 0x08008000 erased
EraseFlash - Sector:0x2 Size:0x8000 2023-02-26T17:16:15 INFO common.c: Flash page at addr: 0x08010000 erased
EraseFlash - Sector:0x3 Size:0x8000 2023-02-26T17:16:15 INFO common.c: Flash page at addr: 0x08018000 erased
EraseFlash - Sector:0x4 Size:0x20000 2023-02-26T17:16:17 INFO common.c: Flash page at addr: 0x08020000 erased
EraseFlash - Sector:0x5 Size:0x40000 2023-02-26T17:16:18 INFO common.c: Flash page at addr: 0x08040000 erased
EraseFlash - Sector:0x6 Size:0x40000 2023-02-26T17:16:20 INFO common.c: Flash page at addr: 0x08080000 erased
2023-02-26T17:16:20 INFO common.c: Finished erasing 7 pages of 262144 (0x40000) bytes
2023-02-26T17:16:20 INFO common.c: Starting Flash write for F2/F4/F7/L4
2023-02-26T17:16:20 INFO flash_loader.c: Successfully loaded flash loader in sram
2023-02-26T17:16:20 INFO flash_loader.c: Clear DFSR
2023-02-26T17:16:20 INFO common.c: enabling 32-bit flash writes
2023-02-26T17:16:28 INFO common.c: Starting verification of write complete
2023-02-26T17:16:34 INFO common.c: Flash written and verified! jolly good!
sleep 5
make F746ZG-copy
mpy-cross flash.py
make[1]: mpy-cross: No such file or directory
make[1]: *** [compile] Error 1
make: *** [F746ZG] Error 2
(caravel) kavya@Kavyas-MacBook-Pro nucleo % make copy2
mpy-cross flash.py
mpy-cross io_config.py
mpy-cross gpio_config_builder.py
mpy-cross i2c.py
mpy-cross nucleo_api.py
mpy-cross boot.py
cp flash.mpy i2c.mpy gpio_config_builder.mpy nucleo_api.mpy io_config.mpy //Volumes/PYBFLASH/
cp config_io_o.hex //Volumes/PYBFLASH/
cp main.py //Volumes/PYBFLASH/
sync
ls //Volumes/PYBFLASH/
README.txt gpio_config_builder.mpy nucleo_api.mpy
boot.py i2c.mpy pybcdc.inf
config_io_o.hex io_config.mpy
flash.mpy main.py
(caravel) kavya@Kavyas-MacBook-Pro nucleo % make repl
mpremote connect /dev/cu.usbmodem111103 repl
Connected to MicroPython at /dev/cu.usbmodem111103
Use Ctrl-] to exit this shell
>>> import io_config
>>> io_config.run()
===================================================================
io_config -- version 1.2.1
voltage = 1.60, analog = False
===================================================================
===================================================================
== Beginning IO configuration test. Testing LOW IO chain... ==
===================================================================
::::: flashing Caravel :::::
Winbond SRAM not found
Matthew Guthaus
02/27/2023, 1:32 AMKavya Sreedhar
02/27/2023, 1:39 AMKavya Sreedhar
02/27/2023, 1:39 AMgpio[01] - H_INDEPENDENT >> Passed
gpio[02] - H_INDEPENDENT >> Passed
gpio[03] - H_INDEPENDENT >> Passed
gpio[04] - H_INDEPENDENT >> Passed
gpio[05] - H_INDEPENDENT >> Passed
gpio[06] - H_INDEPENDENT >> Failed
Kavya Sreedhar
02/27/2023, 1:39 AMKavya Sreedhar
02/27/2023, 1:42 AMMatthew Guthaus
02/27/2023, 1:50 AMKavya Sreedhar
02/27/2023, 1:51 AM