JohnF
Hi,
New to OpenPLC and very impressed, Simple ladder simulation running in an hour.
Then tried to transfer to a PI PIco and nothing happens
Info from Pico
UF2 Bootloader v3.0
Model: Raspberry Pi RP2
Board-ID: RPI-RP2
 
Using addressing as listed in rp2040pico.cpp
download appears to work
 
Used library Version Path
src C:\Users\jfirt\OpenPLC_Editor\editor\arduino\src
Used platform Version Path
rp2040:rp2040 4.5.1 C:\Users\jfirt\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\4.5.1
$? = 0
Uploading program to Arduino board at COM10...
$ editor\arduino\bin\arduino-cli-w64 --no-color upload --port COM10 --fqbn rp2040:rp2040:rpipico editor\arduino\examples\Baremetal/
Resetting COM10
Converting to uf2, output size: 156672, start address: 0x2000
Scanning for RP2040 devices
Flashing D: (RPI-RP2)
Wrote 156672 bytes to D:/NEW.UF2
New upload port: COM10 (serial)
$? = 0
Done!
And after download Pico no longer appears as USB drive
But program should turn an output on when an input goes on but nothing happens.
Any suggestions would be great
 
John
 
Reply 0 0
thiagoralves
Most likely you got the I/O mapping wrong. What is the location you're using for your I/O variables? What does your I/O Config looks like (you can check that on the upload dialog on the left panel I/O Config).
Reply 0 0
JohnF
Got it working, thank you. The %IX0.0 - %IX0.7 map as indicated in rp2040pico.cpp on the upload dialog but %QX0.0 maps to pin 20 not the pin 14 I expected. Now that I have a start I should be able to find my way around
Reply 0 0
Reply