|
Forum Index : Microcontroller and PC projects : PicoMite V6.01.00 betas
| Author | Message | ||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2791 |
A possible update for LCD Panels p56. Could be something like:- Edited 2025-10-10 10:46 by phil99 |
||||
| disco4now Guru Joined: 18/12/2014 Location: AustraliaPosts: 1040 |
Hi Peter, Any love for this? POKE HARDFAULT Allows generating a HARDFAULT from code to allow testing of startup/recover. MM_Misc.c void cmd_poke(void) ... ... } else if((p=checkstring(cmdline, (unsigned char *)"HARDFAULT"))){ //int *harderror = NULL; *harderror = 10; // Generate hard error //*(volatile uint32_t*)0x10000 = 1; //BUS errror asm volatile (".word 0xf7f0a000\n"); //Undefined instruction } else { getargs(&cmdline, 5, (unsigned char *)","); if ((p = checkstring(argv[0], (unsigned char *)"BYTE"))) ... F4 H7FotSF4xGT |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10539 |
Easy to add, but what does this do that CPU RESTART doesn't? |
||||
| disco4now Guru Joined: 18/12/2014 Location: AustraliaPosts: 1040 |
It triggers the HARDFAULT_EXCEPTION handler, I was thinking along the lines of testing an embedded setup recovers from an unknown future glitch by putting the POKE HARDFAULT command in the code during testing. > cpu restart > poke hardfault Error: Invalid address - resetting > Seemed like a good idea at the time. Maybe wait to see if any seconders for the idea. Edited 2025-10-10 17:54 by disco4now F4 H7FotSF4xGT |
||||
| Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 8253 |
So where would you find that on a normal boot to BASIC computer? Maybe a Commodore 64 could do it but it would need an extremely obscure POKE and it's wasn't a "normal" computer anyway because Commodore BASIC didn't support it's hardware. ;) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
| dddns Guru Joined: 20/09/2024 Location: GermanyPosts: 684 |
Good morning, b18 was ok, with b20 I get a scrambled picture when printing a transparent circle: PicoMiteVGA MMBasic RP2350B Edition V6.01.00b20 OPTION FLASH SIZE 16777216 OPTION COLOURCODE ON OPTION KEYBOARD US OPTION PICO OFF OPTION RESOLUTION 800x600 @ 360000KHz OPTION DISPLAY 50, 100 OPTION SDCARD GP24, GP25, GP26, GP27 OPTION VGA PINS GP32,GP34 OPTION F1 drive"b:": chdir"newclock" > circle 400,300,100,5,,rgb(white),rgb(black) > circle 400,300,100,5,,rgb(white) ![]() copy/paste mistake, this I tried: > circle 400,300,100,5,,rgb(white) > circle 400,300,100,5,,rgb(white),-1 Edited 2025-10-10 18:25 by dddns |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10539 |
It's a bug I have introduced when drawing circles with thick edges without an interior fill colour - will fix Edited 2025-10-10 18:36 by matherp |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |