A HY Mini-STM32 VCT6 3.2" board #5520
Replies: 1 comment
-
Posted at 2015-01-28 by alexanderbrevig Have you seen this http://www.espruino.com/Project+2 ? Posted at 2015-01-28 by DrAzzy I think you meant this link: http://www.espruino.com/Other+Boards At the bottom, it has instructions for getting Espruino onto an unofficial board. Posted at 2015-01-28 by alexanderbrevig Of course I did :/ thanks. Posted at 2015-01-28 by GarrettL The firmware wont download to it? IT says im not in boot loader mode how do i do it on a HY-MINISTM32V 3.2 INCH LCD BOARD (VCT6)? Sorry im very new to this. Posted at 2015-01-28 by @gfwilliams Are you sure you held down the BOOT0 button as you plugged the board in? Just a quick plug, but this is why we make the Espruino Board. The other boards tend to be harder to get started with. Posted at 2015-01-28 by GarrettL Okay i did that, its a white sceen now what? Posted at 2015-01-28 by @gfwilliams You need to follow the instructions on the second half of this page. Basically just do what you did before that said 'not in boot loader mode' last time. As @drazzy said there are instructions specifically for your board on http://www.espruino.com/Other+Boards Posted at 2015-01-28 by GarrettL But i tried and nothing happenend. IT said it failed to update the firmware. Posted at 2015-01-28 by GarrettL When using the flash loader , it says no response from target. Posted at 2015-01-28 by @gfwilliams I'd maybe try and find a tutorial online about how to write new firmware onto your board. It doesn't matter what firmware it is, because once you get it working you can just upload the Espruino firmware instead. Posted at 2015-01-28 by GarrettL There is barley anything out there for it. Posted at 2015-01-28 by GarrettL Espruino posted a video using it on youtube, im sure there is someone who knows how to flash it, or could explain it better than this website. Posted at 2015-01-28 by @gfwilliams What operating system do you have? If you have the white screen it looks like you've managed to get the board into bootloader mode - so then it's just:
Posted at 2015-01-28 by GarrettL Okay, i have got it into bootloader mode. Do i want the post closest to the solid led? Windows doesnt make a sound when i plug it in. I have the drivers installed too. Posted at 2015-01-28 by @gfwilliams Yes, you want the one next to LD2/PWR. I'd look in the windows Device Manager and see if the USB port has actually been recognized as a serial port or if there's a problem with it. If it wasn't recognized, maybe this will help you: http://answers.microsoft.com/en-us/windows/forum/windows_vista-hardware/prolific-pl2303-usb-to-serial-port-adapter-driver/1902e9e0-4af0-4f36-84bc-f487d4022f1f I think those boards use a counterfeit USB to Serial converter on them. Prolific (the maker of the real chips) made the decision a while back to change their drivers so that they no longer worked with the counterfeit chip, and that could be causing you problems. You'll have to try and use a different driver that still works. Posted at 2015-01-28 by GarrettL Okay i use that plug and got windows to detect it. I looked in device manager and it has a new one com7? sound correct? What now? Posted at 2015-01-28 by @gfwilliams Then you get this tool from ST, download it, run it, give it the Espruino binary and point it at COM7. Posted at 2015-01-28 by GarrettL Okay im to the point where it says erase, download to device etc. And i click next and it says please select pages to be write protected. What do i do? Posted at 2015-01-28 by @gfwilliams Ok, just click 'next' - you don't want to write protect anything. Click the Click When it's done, press the reset button on the board and it should come up in Espruino. Posted at 2015-01-28 by GarrettL Thank You so much! Posted at 2015-01-28 by GarrettL I tried putting in the code from project 2, and im getting this Unknown LCD code 35208 35209. What am i doing wrong? Posted at 2015-01-28 by DrAzzy Can you link to "project 2"? Posted at 2015-01-28 by @gfwilliams When you start up the device after having written Espruino onto it, does it display anything on the screen? Even before you send the code from Project 2 to it. Posted at 2015-01-29 by GarrettL I had it working for a long time now its blank but it use to be fuzzy. Everytime i enter code i get >require("Touchscreen").connect(onTouch); Any ideas? and also .... | |_ ___ ___ _ ||___ ___
Posted at 2015-01-29 by DrAzzy When using JS module code, you need to enter the first require(...) for a given module (after each reset, assuming you haven't save()'ed after loading the module) on the right side of the window, that way the WebIDE knows to go get that module and send it to the Espruino. If you send code using a module from the right side of the IDE, and then press up arrow a few times to see command history, you can see where it sends over the minified module code. Posted at 2015-01-29 by GarrettL whats the module name for mine? Posted at 2015-01-29 by GarrettL Can you explain it more simply? Posted at 2015-01-30 by DrAzzy You were typing the right thing, but when you're calling a module (at least for the first time after reset, unless you've saved it with the module), you need to type it into the RIGHT HAND SIDE of the WebIDE, and then click "Send to Espruino" in the middle. If you put the exact same code in, but on the right side and click "send to Espruino" it will work. When you type in left side, that goes directly to the Espruino. When you type in right side, and then do send to Espruino, that gets processed by the WebIDE, which downloads the modules and sends them to the Espruino, along with your code. Posted at 2015-01-30 by GarrettL ERROR: Could not open file : NO_PATH
| |_ ___ ___ _ ||___ ___
How do i get rid of it then? And also when i hook the leds up the screen goes blank? What do i need to do? Posted at 2015-01-30 by DrAzzy Can you please describe what you are doing that causes that message to appear, including any code, and how you send that code to the espruino? I assumed you were typing something like "require("Touchscreen").... " in the left side of the webIDE, but it sounds like that's not the case, in which case, please explain what you're doing that triggers that error. Also, someone who has the HY STM32 board might be helpful here too - I have not used that one, so if there's something weird about how the HY STM32 boards specifically work, I don't knwo it. Posted at 2015-01-30 by GarrettL All i do is copy the code from the project 2 page and paste it in and then press send to espruino. Posted at 2015-01-31 by GarrettL What am i doing wrong? Posted at 2015-02-02 by @gfwilliams Are you using the Web IDE to upload code? If you're just pasting in in via Putty/Minicom then you'll have trouble. Posted at 2015-02-03 by GarrettL Yes. I use the Web ide. Posted at 2015-02-03 by @gfwilliams Have you blocked the Web IDE from accessing the internet somehow, or changed the 'Module URL' in settings? I've just tried here and it works fine. As far as I can see, the only way you'd get that message is if the Web IDE couldn't get the 'Touchscreen' module off the internet. Posted at 2015-02-03 by GarrettL this is what i get when i send require() in right and press send. I havent change anything in settings . under where it says url to find modules it has http://www.espruino.com/modules. Posted at 2015-02-03 by GarrettL Now im getting this
Posted at 2015-02-03 by GarrettL The screen has the things i need on it but touch doesnt work. Posted at 2015-02-03 by DrAzzy Update firmware to v72 to fix the issue with setting watches (as well as OODLES of other bugs - v71 -> v72 is a major update). I'm still not sure why you're getting the error about ADS7843 module not being found - The WebIDE should have noticed that it needs the ADS7843 module, and automatically fetched it and loaded it with the board - but it looks like it didn't do that. Did any error messages appear when you sent the code (they pop up in colored boxes near the lower right that only stay for a few seconds, so it's hard to see what they say, but that's where it displays errors about not being able to get modules). Posted at 2015-02-03 by GarrettL I also get
when i connect Posted at 2015-02-03 by GarrettL I did update it also. Posted at 2015-02-03 by DrAzzy The =undefined is normal and correct, but often surprising to someone coming to Espruino from an embedded background, vs a JS background. When using a JS console, everything you send gets evaluated. A blank line evaluates to undefined, so that gets echoed back to you. If you have updated it, it should be showing different messages, I would think. Can you post the results of sending the same code with v72? Posted at 2015-02-04 by @gfwilliams Also, could you try sending code from the other USB port? You might be using the one you used to flash the firmware, which is much slower. Not sure if it'd help but it might be worth a try. Posted at 2015-02-05 by GarrettL
it keeps loading new lines like that ^^^ Posted at 2015-02-05 by GarrettL And i did update it. Posted at 2015-02-05 by GarrettL I actually have the thing saved on it correctly now, and all the touch works but when i hook up the leds, the screen goes away? any ideas? Posted at 2015-02-05 by GarrettL I have he ws2811 leds hooked up the 3 that are in the connector go to with and grnd then red and 5v and then green pb15. Posted at 2015-02-05 by DrAzzy How many LEDs is that? You probably can't power very many off the builtin power source, and since they flash on when you connect them, that might be enough to reset the board. Does it work when you have the LEDs connected when you power it on? (in that case, I'd expect you to be able to turn on a few LEDs before overloading the power supply). You'll need an external supply to power any decent number of those wonderful LEDs. On full white they pull 50-60mA a pop! Posted at 2015-02-05 by @gfwilliams Out of interest, what did you change to get the code loaded on properly? As @drazzy says, if the screen goes away when you hook up the LEDs then it could well be that they're drawing too much power, so you might need a separate power supply. You could try hooking just one or two up to check it works - just having a few on should be fine running off USB. Posted at 2015-02-05 by GarrettL i have roughtly 57, okay but they are 5v leds? would i just hook the green wire up and then the two wire that are seperate power supply? or would i hook the 3 up and the two? Posted at 2015-02-05 by @gfwilliams Yes, that would do it :) 57*60mA = 3420mA - and 'normal' USB devices are only meant to use 500mA... You'd connect:
Posted at 2015-02-05 by GarrettL Thank you so much :) Can you help me with the code now? iv pasted the code from the website but i have all the color boxes set as red but the leds are green? Posted at 2015-02-05 by GarrettL actually i believe the red and green are backwards on the slider and boxes. Posted at 2015-02-06 by @gfwilliams Yes, it's because certain makes of LED are wired up differently. Look at the If red and green are swapped, then just replace all the Posted at 2015-02-07 by GarrettL Where the function that changes the amount of leds? i have 120 leds and i cant seem to figure it out. Posted at 2015-02-07 by DrAzzy When you create the array, you specify the number of leds (the length of the buffer is 3 bytes per led - 24 bit color) Posted at 2015-02-09 by GarrettL Isnt in the code? does it look like 50 * 3 Posted at 2015-02-09 by GarrettL this one? and change it to 120*3
Posted at 2015-02-09 by DrAzzy Yup, exactly. Posted at 2015-02-13 by GarrettL What pin would i connect a battery to? Id rather not use the usbs and would rather solder, the power from the battery will be 5v? What pin do i connect to Posted at 2015-02-13 by DrAzzy Negative side of battery to Gnd, positive side to VBat. Posted at 2015-02-13 by GarrettL back to before is that the only line i need to change Posted at 2015-02-13 by GarrettL because whenever i try to change it, i get errors. Posted at 2015-02-13 by DrAzzy Post the code you're getting errors from, and what errors you're getting. Posted at 2015-02-18 by GarrettL Hello , i was trying to mess around and i found a code online https://gist.github.com/dsample/9126456 and it worked fine, now when i tried to go back to http://www.espruino.com/Project+2 and send this one i get random flashing and it wont stay on it, iv tried reset(); but that doesnt seem to help any ideas? Posted at 2015-02-18 by DrAzzy I suspect the problem is the code on the Project page - It's noted at the top as being out of date, though i don't immediately see the problem looking at the code. Posted at 2015-02-19 by @gfwilliams I actually updated the code for Project 2 very recently (last few weeks) so I know it works. I obviously forgot to remove the 'out of date' comment though! @user52583 can you remember what you did last time that made it work? If you do the following on your board:
Then the board will start up (that time only) completely blank, so you can be sure that whatever you send before isn't changing anything. Also you say 'random flashing and it wont stay on it' - do you mean random flashing of the lights? Is it possible that it's to do with how you wired the power supply up? I think you've changed that since last time? Posted at 2016-12-08 by GarrettL What does this LCD Code mean?
Posted at 2016-12-09 by @gfwilliams It means that your board has a new type of LCD fitted to it that Espruino doesn't know how to initialise. Best bet is look at the source code that came with your board, find the LCD driver, and then where it mentions that code... Then copy it into: https://github.com/espruino/Espruino/blob/master/libs/graphics/lcd_fsmc.c (the initialisation part of the file should look pretty similar to it shouldn't be too hard to see where to put it) Posted at 2016-12-11 by GarrettL The board is a HY-MiniSTM32V Dev Board + 3.2" TFT LCD Module, so no source code came with it. I flashed it on here a while back. Posted at 2016-12-12 by @gfwilliams Those dev boards always used to come with a small CD, or a download link on the page you got them from. But the LCD still works? If so I'd just ignore that message. Posted at 2016-12-14 by GarrettL Yes, it just gets kind of annoying! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-01-28 by GarrettL
hi if anyone could help me i could greatly appreciate it. I have a HY STM32 VCT6 3.2" board, and i cant not figure out how to get espruino onto it. Please help.
Beta Was this translation helpful? Give feedback.
All reactions