#Finding nearest RP2040 board cousin for porting my board to CP, based on ext. Flash type
1 messages · Page 1 of 1 (latest)
Folks, trying to port a 3D-printer-controller board with RP2040 MCU to CP so I can write Python code on the board to use the TMC2209 driver chips on it to drive stepper motors. I'm at the point of having the CP build environment setup on my Mac and getting ready to select the nearest "cousin" existing port as a model. RP2040: √, Has crystal: √. Issue comes down to which has the same/closest ext. Flash. My board has a Winbond 2MB "W25Q16" (per schematic--no suffix supplied). Since there are lots(!) of RP2040 board ports, it may be a long search. Docs don't help. On page https://learn.adafruit.com/how-to-add-a-new-board-to-circuitpython/initial-configuration we find:
SPI Flash Configuration
"You will want to ensure that you've started with an existing Adafruit board that has the same SPI flash configuration. The currently supported chips are listed in supervisor/shared/external_flash/devices.h. ..."
No they're not (in the current repo). There is no devices.h file. There are "device.h" and "devices.h.jinja" files, neither of which proved enlightening. So please tell me what I should do here and correct the webpage.
Also, if you have quick answera for the following, let me know:
- Which RP2040 board description should I clone to start my port?
- Do the W25Q16xxxx suffixes matter, or ar they just packaging options? (might be speed options?)
Thanks!
Ah, yes. The "W25Q16" Flash appears in 38 board configurations in the Raspberry Pi boards directory (not all RP2040 I presume). Essentially all configurations include the "W25Q16JVxQ" variant. Onward...