Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:56 01 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMBasic 5.1 program corrupted

Author Message
rogersan
Regular Member

Joined: 10/04/2015
Location: Australia
Posts: 79
Posted: 06:02pm 08 Apr 2016
Copy link to clipboard 
Print this post

I have been using a 28 pin Micromite V5.1. Somehow the program has been corrupted so that the Console Tx Data (Pin 11) has become an input. The problem may have bee caused by using

OPTION LCDPANEL ILI9342, L, 2, 23, 6

More than once.

I got an error message

Error: Pin 2 is reserved on start up

Roger Sanderson
 
Bill.b

Senior Member

Joined: 25/06/2011
Location: Australia
Posts: 235
Posted: 06:18pm 08 Apr 2016
Copy link to clipboard 
Print this post

Hi Roger

Have you tried to reinstall V5.1. I have found this is required if
I have stuffed up the LCD setup.

Bill
In the interests of the environment, this post has been constructed entirely from recycled electrons.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6266
Posted: 06:46pm 08 Apr 2016
Copy link to clipboard 
Print this post

Is the display ILI9342 or ILI9341?
As far as I know, MMBasic requires a ILI9341 (but they could be interchangeable)

If you try and configure the LCDPANEL again without OPTION LCDPANEL DISABLE first,
you will get the pin reserved error message.

It doesn't normally cause any major problems.

You could try OPTION RESET to clear all options to their default.

Jim


VK7JH
MMedit
 
rogersan
Regular Member

Joined: 10/04/2015
Location: Australia
Posts: 79
Posted: 08:00pm 08 Apr 2016
Copy link to clipboard 
Print this post

I am using the LCD Backpack board from Silicon Chip.

I tried a V4.6 B without an LCD display, to see if I could just get the Console Serial to work. I did get one sign on message but then nothing. Now the Console Tx (Pin 11) on that Micromite has become an input as well. Is the board somehow reprogramming the micromites?

I checked the 3.3 volt supply (from an MCP1700-3302E) with an oscilloscope, it looks clean but there is a rise time of about 300 microseconds. I do not know if this is causing any problems.
 
rogersan
Regular Member

Joined: 10/04/2015
Location: Australia
Posts: 79
Posted: 08:36pm 08 Apr 2016
Copy link to clipboard 
Print this post

The LCD Backpack board from Silicon Chip has a reset switch that connects MCLR (pin 1) to ground (10 k ohm pull up resistor to 3.3 volts). I have been using this reset switch, perhaps this is causing the corruption.
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 09:01pm 08 Apr 2016
Copy link to clipboard 
Print this post

Check the capacitor at the VCAP pin. This is often the culprit of unexpected behavior.

Microblocks. Build with logic.
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6266
Posted: 09:01pm 08 Apr 2016
Copy link to clipboard 
Print this post

The reset shouldn't be a problem.

Can you check that there isn't an open circuit in the Tx line from the processor to the terminal. That's more likely than a corrupted chip.

The other common problem is with the capacitors.

Jim
VK7JH
MMedit
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025