DEMO mode - can you turn on Thumb instructions

Questions about the BASICtools and MakeItC
Post Reply
olzeke51
Posts: 414
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

DEMO mode - can you turn on Thumb instructions

Post by olzeke51 »

Finally got my USB dongle - hooked it to my LPC812 eval
ran HWPWM8.bas - loaded approx 1.6K of code to flash

in DEMO mode - it reports 3.16K of code

the difference being Thumb is 16 bit vs. the regular ARM 32bit

Can the DEMO mode be told to use "Thumb" ?? [the 'eval' is not in the board list]

BTW - basicchip - this would answer my offline/PM that I sent this AM.

updated - saw the "off-line programming mode" thread and it asked the same question
BUT the LPC812 has a much smaller Flash than the boards they were talking about.
So... while I was waiting for my dongle to show up I was doing DEMO mode and really getting
discouraged by the size of the programs !!! but they weren't in "Thumb" because the IDE
was in DEMO -- [cjouldn't connect to the board !!]

it might be time to look at this if the 812 is going to be offered as a product -- IMHO



basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: DEMO mode - can you turn on Thumb instructions

Post by basicchip »

Good points, we get beat up over demo mode, and deserve to be, as more people out there use it than we expect.

Going forward I expect we will be using thumb mode for any new product, so we should make that the default in demo mode and I'll look into that. Actually I haven't look at the specifics of that code for years. I know it won't be an exact estimate as there are variations between the demo and actual code. In demo mode the code is something similar to VM byte codes, but it is kept roughly equivalent to the actual ARM code produced.

Post Reply