Search found 1051 matches

by basicchip
Thu Nov 24, 2022 6:39 am
Forum: Software issues
Topic: BT - Function calling
Replies: 7
Views: 6574

Re: CALLing an #included FUNCtion

Would really need more context to answer this. The example you site compiles and runs correctly. There is a difference between a subroutine defined by LABEL1: ... RETURN and one defined by SUB LABEL2 ... ENDSUB The LABEL1: ... RETURN can never have parameters, so CALL LABEL1 () would be illegal And ...
by basicchip
Tue Nov 22, 2022 12:34 pm
Forum: Software issues
Topic: DOWNTO, Help file
Replies: 1
Views: 38

Re: DOWNTO, Help file

STEP is an optional keyword in FOR statements, true of all BASICs I have seen. If you have a STEP in the statement the compiler expects a value, and in your case the compiler flags it as an error

If there is no STEP keyword then 1 is assumed.

Code: Select all

FOR i = 3 DOWNTO 0
would be the proper syntax
by basicchip
Sun Oct 30, 2022 10:56 am
Forum: Software issues
Topic: simple Interrupt for PROstart
Replies: 6
Views: 220

Re: simple Interrupt for PROstart

The details of these interrupts are in the NXP user manual. To change to GPIO0.3 -- INTERRUPT SUB INT_GPIO0 GPIO0_IC = (1 << 3) ' clear interrupt on pin 3 and SUB ON_GPIO0(rise_edge, dothis) ' Setup MUST be done before enabling the interrupt GPIO0_IE = (1 << 3) ' interrupt on GPIO0.3 if rise_edge th...
by basicchip
Fri Oct 28, 2022 7:01 pm
Forum: Software issues
Topic: simple Interrupt for PROstart
Replies: 6
Views: 220

Re: simple Interrupt for PROstart

Updated the file to change the label to GPIO0.1 for LPC1114

Also program correctly for rising edge interrupt (default was falling edge).
by basicchip
Wed Oct 26, 2022 7:44 pm
Forum: Software issues
Topic: simple Interrupt for PROstart
Replies: 6
Views: 220

Re: simple Interrupt for PROstart

I will add this to the next release.

This uses the BOOT pin (GPIO0.1) which can be toggled by BASICtools. (I should change the label from EINT0 to GPIO0.1)

Source for
EINT0.bas
(2.98 KiB) Downloaded 12 times
1114int.jpg
1114int.jpg (89.9 KiB) Viewed 217 times
by basicchip
Sun Oct 23, 2022 12:51 pm
Forum: Software issues
Topic: Linux compile, LPC4330
Replies: 1
Views: 131

Re: Linux compile, LPC4330

My Linux machines are still in storage, but looks like the issue is a typo in the LPC43xx.bas file

Fixing the first line, fixes it in Windows, most likely in Linux as well. The git has been updated and will roll out in future release.

Corrected file attached here
LPC43xx.bas
(175.5 KiB) Downloaded 13 times
by basicchip
Thu Jun 16, 2022 4:07 pm
Forum: Your first forum
Topic: ARMstamp communication problem on WinXP
Replies: 8
Views: 1508

Re: ARMstamp communication problem on WinXP

OK let me take that back, lpc_driver_installer did not work, but pointing the Win driver installer to the lpcopen_example_windows_usb_drivers DID work

And I can talk to and load programs on the ARMstamp with that.

Will load up a blog article and link to those files. (too big to include here)
by basicchip
Thu Jun 16, 2022 3:58 pm
Forum: Your first forum
Topic: ARMstamp communication problem on WinXP
Replies: 8
Views: 1508

Re: ARMstamp communication problem on WinXP

Found a WinXP SP3 laptop from a friend. I tried lpc_driver_installer, it failed for me to install.

I doubt there is an NXP supported driver for VCOM and WinXP, so we can't help you there, but ARMstamps run on Win 7 and beyond, Linux, iOS, and Raspberry Pi.
by basicchip
Thu Jun 16, 2022 11:41 am
Forum: Your first forum
Topic: ARMstamp communication problem on WinXP
Replies: 8
Views: 1508

Re: ARMstamp communication problem on WinXP

I had no luck trying to create a bootable USB drive for WinXP. I do have one old SATA drive labeled XP, not sure the last time it was in a PC, and it won't fit in my current sacrificial PC, but I will try to clone it to a 2.5" drive. Will try this weekend, but not real hopeful. The NXP driver for th...
by basicchip
Wed Jun 15, 2022 10:09 pm
Forum: Your first forum
Topic: ARMstamp communication problem on WinXP
Replies: 8
Views: 1508

Re: ARMstamp communication problem on WinXP

PS com setting like baud, stop bits ... are completely irrelevant on this USB driver.