![]() |
Forum Index : Microcontroller and PC projects : MM update to 4.5, now output error
Page 1 of 2 ![]() ![]() |
|||||
Author | Message | ||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
Hi folks. ![]() I downloaded an updated a CMM to version 4.5, now a program that was running fine in 4.4 throws this error when I try to run it: [24] SetPin D11,9:SetPin D12,2:SetPin D13,2:Port(D2,8)=1 Error: Invalid output pin I will check the update text file, but I don't immediately see why MMBASIC is upset when this line of code was fine in 4.4....... EDIT: Tried changing the line so that the output pin is OOUT instead of 9, but got the same error. Downgraded the firmware to version 4.4, and the error is gone, and the code runs as expected. Curious.... Smoke makes things work. When the smoke gets out, it stops! |
||||
BobD![]() Guru ![]() Joined: 07/12/2011 Location: AustraliaPosts: 935 |
Hi Grogs separate your code and find out which pin it is. You can then submit a bug report. Bob |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
Error gone when I downgrade to 4.4 - see my edit above.... Smoke makes things work. When the smoke gets out, it stops! |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
It might be related t this problem: http://www.thebackshed.com/forum/forum_posts.asp?TID=6710&PN =3&get=last#70366 It is the PORT command having problems there but the error looks the same. Jim VK7JH MMedit |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
This does seem like a bug. I will add it to the todo list for the next version. Geoff Geoff Graham - http://geoffg.net |
||||
Tendor Newbie ![]() Joined: 14/12/2017 Location: AustraliaPosts: 6 |
I know that things have moved on quite a bit, and this is revisiting very old ground... Is there any plan (Geoff?) to issue a V4.5.X of the Maximite firmware that has this PORT bug fixed? I use V4.4B as I use the PORT command to drive stepper motors (monochrome MM). It does not work with V4.5. But I then miss the nice enhancements that V4.5 contains. I've searched the forum but cannot find any reference following this post (and the one linked below). If anyone has any updated info, I'd appreciate the help. https://www.thebackshed.com/forum/forum_posts.asp?TID=6875&KW=port+bug Thanks. Rod. |
||||
MauroXavier Guru ![]() Joined: 06/03/2016 Location: BrazilPosts: 303 |
I'm waiting for this fix for a while too. I need to use port command to control a SN76489 PSG, but in 4.4b firmware I loose peek and poke commands. |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
This one must have got lost between the cracks. I have added it to the current bug list but I need to setup the test environment so it may be a little while . Geoff Graham - http://geoffg.net |
||||
MauroXavier Guru ![]() Joined: 06/03/2016 Location: BrazilPosts: 303 |
Thank vou very much, Geoffg. With this fix I can optimize the sound library. I'm finishing the media editor to CMM and the port, peek and poke commands are very important. With this media editor anyone will can read and create sprites, fonts, screens, maps and musics entirely in CMM hardware, without a PC, like the good old times. |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
Could you please try this version (V4.5B): 2018-03-03_152807_ColourMM_MMBasic_V4.5b.zip I'm sorry to use you as an unpaid tester but after all this time it was amazingly difficult setting up the old compiler chain, etc and then both of my Colour Maximites chose this time to develop some sort of mysterious fault which cut short my testing. I am reasonably sure that I have nailed the bug but I need a third person to verify this. Thanks Geoff Geoff Graham - http://geoffg.net |
||||
Tendor Newbie ![]() Joined: 14/12/2017 Location: AustraliaPosts: 6 |
Thanks for addressing this Geoff. I did not notice your post until a couple of days ago and hence the delayed reply. I have loaded version V4.5B onto my Monochrome MM. At the end of the usual process, with the green 'power' LED flashing slowly, power removed and re-applied, it appears to not boot. No green LED nor any output to screen. I tried several cycles of loading V4.5B and then V4.4B. V4.4B loads and boots fine. V4.5B - as above, not booting. Thanks, Rod. |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2944 |
Is the Colour version not different from the Monochrome version? ![]() |
||||
Tendor Newbie ![]() Joined: 14/12/2017 Location: AustraliaPosts: 6 |
Thanks WW. Yes, of course. I had forgotten that they were different firmware hex files. ![]() |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
My fault, I thought that only the CMM version was needed. I will generate a monochrome Maximite version and post it tomorrow. Geoff Geoff Graham - http://geoffg.net |
||||
Tendor Newbie ![]() Joined: 14/12/2017 Location: AustraliaPosts: 6 |
That would be great thanks Geoff. Regards, Rod. |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2944 |
@Geoff I just tried the above CMM 'test' version (on your original CMM) and it still gives the same error. Have re-flashed (and re-downloaded) three times now just to be sure I have the intended test firmware you posted. ![]() |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2944 |
Can the PORT command use a 'D2' reference (as in Grogster's example)? |
||||
WhiteWizzard Guru ![]() Joined: 05/04/2013 Location: United KingdomPosts: 2944 |
Whatever I try, even with: PORT(x,1)=1 I get an Error : Invalid output pin ![]() |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
OK, please try this: 2018-03-11_121510_Maximite_V4.5C.zip This contains version V4.5C for both the colour and monochrome Maximites. I have tested it and the PORT command/function works (for me). Note that this is an update so you do need to load it via the bootloader (not a PICkit3). Anyone who does test it, could you please report back on how it worked for you. Thanks. Geoff Geoff Graham - http://geoffg.net |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
This program runs without error on a mono Maximite: It's one that failed earlier Jim VK7JH MMedit |
||||
Page 1 of 2 ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |