Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Package does not have a pin named 'xx'" ice40 nextpnr #1466

Open
nfraly opened this issue Mar 15, 2025 · 4 comments
Open

"Package does not have a pin named 'xx'" ice40 nextpnr #1466

nfraly opened this issue Mar 15, 2025 · 4 comments

Comments

@nfraly
Copy link

nfraly commented Mar 15, 2025

When trying to use pins 27 and 36 (maybe others, those are what we are running into right now) as assignments for outputs, nextpnr errors saying the package does not have these pins. We are able to use these pins in Radiant, but when we port to yosys/nextpnr, the error occurs. Has anyone run into this issue and have a workaround?

pcf:
set_io flash_clk 15
set_io flash_csn 16
set_io flash_io0 17
set_io flash_io1 14
set_io leds[0] 38
set_io leds[1] 42
set_io leds[2] 36
set_io leds[3] 43
set_io leds[4] 34
set_io leds[5] 37
set_io leds[6] 31
set_io leds[7] 32
set_io uart_rx 15
set_io uart_tx 14
set_io -nowarn spi_mosi 27
set_io spi_clk 26
set_io spi_cs_n 25
set_io lcd_dc 23
set_io test_out 36
set_io reset_n 21

@gatecat
Copy link
Member

gatecat commented Mar 15, 2025

Which iCE40 device/package are you targeting, and what nextpnr command line?

@nfraly
Copy link
Author

nfraly commented Mar 15, 2025

cmd line:
nextpnr-ice40 --json top.json --pcf ../V2.1/src/icicle/boards/upduino.pcf --asc top.asc

It's the ice40up5k-SG48 on the UPduino v2.1 board.

@gatecat
Copy link
Member

gatecat commented Mar 15, 2025

Try adding --up5k --package sg48 to the nextpnr command line - otherwise it will default to the wrong device

@nfraly
Copy link
Author

nfraly commented Mar 15, 2025

That worked, thank you! Is there way to check what it defaults to? I looked over the pinout documentation for the 3k, and the UWG30 packaging for the 5k as well, and there are other pins that work fine but didn't cause issues. I don't fully understand the control flow of nextpnr, so when I tried to look I couldn't find anything but I was mostly opening random files. Still new-ish to issues in github, should I close this?
Oops I did close it sorry

@nfraly nfraly closed this as completed Mar 15, 2025
@nfraly nfraly reopened this Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants