Absolute Beginner!


#21

thank you guys, i updated the bootloader in the Nano, and it solved the problem.


#22

Hi, Back after a while and trying to make use of a Raspberry pico.
Copied and pasted the file but when uploading it
fails :(
LittleFS.h: No such file or directory.

I should mention i tried to follow th einstructions but i donā€™t see an option for setting this -

  • Set Flash Size to the option that gives FS: 1MB . On the Raspberry Pi Pico this is 2MB (Sketch: 1MB, FS: 1MB).

This allocates enough space for use by LittleFS to save the entire workspace with save-image .

Using a Rpi4, Arduino 1.8.13


#23

@gbar Have you followed the instructions here:

RP2040 boards - Installing uLisp

It sounds like youā€™re using the Arduino core, which doesnā€™t have LittleFS. You need to use the Raspberry Pi RP2040 Boards core.


#24

hi, succes! thought iā€™d done it but clearly wrong.
Next problem is unplug and plug. try to upload the blink sample -
2 | (defun blink (&optional x)
| ~ ^~~~~~
| )

exit status 1

Compilation error: expected ā€˜)ā€™ before ā€˜blinkā€™


#25

Can you give more details about what youā€™re doing? That error message isnā€™t a uLisp error.


#26

Sure. Iā€™ve uploaded the most recent ulisp, all good -
scanning for RP2040 devices
Flashing H: (RPI-RP2)
Wrote 336896 bytes to H:/NEW.UF2

unplug and plug it back in again (iā€™ve already uploaded so donā€™t need to do again right?)
i select new sketch and copy the blink LED sketch in and it doesnā€™t like that


#27

I donā€™t think youā€™re actually talking to uLisp when you get that error. Do you get the uLisp prompt; for example:

22911 >

#28

my problem was entering the blink program.
Iā€™ve got he latest Arduino IDE and selecting serial monitori smaybe different?
It all looks a bit weird and not how i expected, my fault. Got the LED blinkingbut itā€™s not like the program is accesible this way, it seems anyway to me. Iā€™ll look elsewhere on the forum for how to write,edit and upload code.
Thanks muchly


#29

If you get stuck again just ask on this forum; thereā€™s lots of help available!


#30

Whats the best method for working on a program?
Do you write it in a text editor and try to run with SBCL or something?
Whats the workflow?


#31

in the Serial Monitor? no. Uploads ok with a Low Memory available, stability problemsw may occur.

Open the Serial Monitor, as per
http://www.ulisp.com/show?19XT
no ulisp prompt


#32

Try typing something like aaa followed by return.

Does anything appear?


#33

nope


#34
WARNING: Spurious .codespell folder in 'Adafruit TinyUSB Library' library
WARNING: Category 'Communications' in library SerialBT is not valid. Setting to 'Uncategorized'
WARNING: Category 'communications' in library http-parser is not valid. Setting to 'Uncategorized'
Archiving built core (caching) in: /tmp/arduino_cache_743736/core/core_rp2040_rp2040_rpipicow_flash_2097152_1048576,freq_133,opt_Small,rtti_Disabled,stackprotect_Disabled,exceptions_Disabled,dbgport_Disabled,dbglvl_None,usbstack_picosdk,wificountry_worldwide,ipbtstack_ipv4only,uploadmethod_default_577fa1dcfe50019dfefb9926df801fc4.a
Sketch uses 441820 bytes (42%) of program storage space. Maximum is 1044480 bytes.
Global variables use 196664 bytes (75%) of dynamic memory, leaving 65480 bytes for local variables. Maximum is 262144 bytes.
Low memory available, stability problems may occur.
Resetting /dev/ttyAMA0
Converting to uf2, output size: 920064, start address: 0x2000
Scanning for RP2040 devices
Flashing /media/graeme/RPI-RP2 (RPI-RP2)
Wrote 920064 bytes to /media/graeme/RPI-RP2/NEW.UF2

#35

Am I correct in thinking that youā€™re using a Raspberry Pi Pico Board, and the Raspberry Pi RP2040 Boards core with the Arduino IDE?

Iā€™ve just tried uploading the latest release 4.4c of ARM uLisp to a Raspberry Pi Pico board. Iā€™m running on a Mac, using Arduino IDE 1.8.19. I left all the Board settings at their defaults, apart from:

Flash Size: 2MB (Sketch: 1MB, FS: 1MB).

I get:

Sketch uses 150460 bytes (14%) of program storage space. Maximum is 1044480 bytes.
Global variables use 194116 bytes (74%) of dynamic memory, leaving 68028 bytes for local variables. Maximum is 262144 bytes.
/Users/david/Library/Arduino15/packages/rp2040/tools/pqt-python3/1.0.1-base-3a57aed/python3 -I /Users/david/Library/Arduino15/packages/rp2040/hardware/rp2040/3.1.0/tools/uf2conv.py --serial /dev/cu.usbmodem1411 --family RP2040 --deploy /var/folders/fd/7rbn3jxx5j942sk5kn0vhb740000gn/T/arduino_build_849769/LispARM201.ino.uf2 
Resetting /dev/cu.usbmodem1411
Converting to uf2, output size: 336384, start address: 0x2000
Scanning for RP2040 devices
Flashing /Volumes/RPI-RP2 (RPI-RP2)
Wrote 336384 bytes to /Volumes/RPI-RP2/NEW.UF2

Iā€™m not sure why your upload is using so much more memory. Have you selected any custom settings on the Board menu options?

In any case, you can ignore the error ā€œLow memory available, stability problems may occurā€ that you get - itā€™s just a warning.

After uploading uLisp I can just select the Serial Monitor window, and then enter Lisp statements in the input box at the top of the window. Iā€™m not sure why youā€™re not getting this.

Are you on Mac, Windows, or Linux?


#36

Morning,

Pi4 Raspbian.
Genuine Pi Pico W
Ctrl-A copy paste into Geany (file size 238.1KiB) i think then saved to desktop. Copied again into arduinoā€¦
Copied straight into Arduino today and same.

plugged in previous PiPico (not W) and

Build options changed, rebuilding all
Archiving built core (caching) in: /tmp/arduino_cache_993833/core/core_rp2040_rp2040_rpipico_flash_2097152_0,freq_133,opt_Small,rtti_Disabled,stackprotect_Disabled,exceptions_Disabled,dbgport_Disabled,dbglvl_None,usbstack_picosdk,ipbtstack_ipv4only,uploadmethod_default_577fa1dcfe50019dfefb9926df801fc4.a
Sketch uses 150756 bytes (7%) of program storage space. Maximum is 2093056 bytes.
Global variables use 194116 bytes (74%) of dynamic memory, leaving 68028 bytes for local variables. Maximum is 262144 bytes.
Resetting /dev/ttyAMA0
Converting to uf2, output size: 336896, start address: 0x2000
Scanning for RP2040 devices
Flashing /media/graeme/RPI-RP2 (RPI-RP2)
Wrote 336896 bytes to /media/graeme/RPI-RP2/NEW.UF2

Bottom of Arduino IDE shows Raspberry Pi Pico on /dev/tty/AMA0 but under tools, go to Port and has the optionto change to Raspberry Pi Pico on /dev/tty/ACM0

Now i get the the lisp promptā€¦fool