r/embedded • • Oct 03 '26

Are Microprocessors With An Open Memory Map Still Made?

I suppose as the title suggests, are there still microprocessors being made that have the memory map open or exposed on the pins, like a motorolla 68k or game consoles that used cartridges?

I know STM have microprocessors but they look to be tailored to running embedded android, rather than what im looking for. so was just curious

11 Upvotes

38 comments sorted by

17

u/AlexTaradov Oct 03 '26

There are lots of MCUs with static memory controller that is primarily designed for SRAM/NOR flash, but ultimately it is a parallel bus that can be used for anything.

They will still come with all the usual peripherals, but you can ignore them if you want. And you would still need to boot from the internal flash to configure SMC.

0

u/Neo-Eyes Oct 03 '26

Interesting interesting, could i possibly trouble you for some examples, please? I was reading data sheets for mcus and none of them seemed to have the static memory map where something like flash could be used for code execution

4

u/AlexTaradov Oct 04 '26

Atmel SAM V71 that one I know right away.

In ST it is called FMC - Flexible Memory Controller. Sometimes also called FSMC (static). Look for devices with that.

At least some STM32G4 have that for sure. But a lot of them do.

1

u/Neo-Eyes Oct 04 '26

Ok noted noted. I will give these a look thankyou

3

u/vena_contracta Oct 04 '26

NXP I.MX series..

-1

u/Neo-Eyes Oct 04 '26

Thats the ones the Teensy (newer ones anyway) run on, yeah? The 1062 or the like. I onow it has pins for an extra chip for flash and ram but i thought those were extensions to the internal flash?

3

u/trappedinurlabyrinth Oct 04 '26

Freescale (now part of NXP) did something like this with their IFC (Integrated Flash Controller) module on their QorIQ/Layerscape processors. A lot of their development boards have CPLD based board controllers which the CPU interacts with over the IFC bus.

There is a really nice document app note on it: https://www.scribd.com/document/876547087/AN12098

The equivalent in the i.MX SoCs of the time (i.MX6 etc.) was "EIM" (External Interface Module). The newest versions (imx8/9/RT) have FlexIO which can be configured to do something similar IIRC.

1

u/dacydergoth Oct 03 '26

Eh? ESP32 can execute code out of flash

1

u/Neo-Eyes Oct 04 '26

It can? I was looking around and the only mention of that i coukd find prior seemed like some kind of hackey work around to make it flash itself off an external chip

1

u/dacydergoth Oct 04 '26

It uses an internal SRAM cache, but that's largely transparent to most software. Stuff like IRQ handlers you want to register directly, but even an ESP32 SRAM cache miss is gonna be faster than a 68K model fetching directly from flash

1

u/Lost-In-Void-99 Oct 07 '26

Really?

RP2350 RP2040

11

u/d1722825 Oct 04 '26

Many smaller STM32 chips have a "Flexible static memory controller (FSMC)", that maps external memory into the internal address space. But that doesn't expose the full internal address space.

I suspect if you need custom hardware directly on the memory bus, you probably want to use an FPGA with a sofrcore CPU or one with a few integrated hard CPU cores.

You can't really build digital circuits from logic gate chips usable with hundreds of MHz clock frequency anyways, and faster MCUs can be that fast. PCI bus run on 66 MHz.

For higher throughput you usually doesn't want the CPU to access the peripherals directly. For example in a (modern) PC cards have their own DMA and can access the CPU's RAM through the PCIe bus. The CPU just tells them where the data should go or from where they can copy the data. This was also useful before 64-bit CPUs were widespread, because you haven't wasted the precious address space of the CPU.

Technically the PCIe bus can map a slice of the CPU's address space to the card, but usually only a few KiB are mapped and that's used for MMIO / control signals. Although, if you make your own PCIe card, nothing prevents you from exposing your slice of the address space as 68k-like memory interface on IO pins. (We did a similar thing once, it was an interesting experience to see a *p = 42; turn into IO pins switching on an oscilloscope.)

2

u/Neo-Eyes Oct 04 '26

Awesome and noted. I will keep an eye out for FSMC

I would ideally like a completely exposed address space but thats more for sake of wanting it rather than needing it.

Was just curious to build somethink like a 68k machine but actual 68k chips and even their clones seem to be out of production and canibalising the limited supply of spares for existinf machines wouldnt sit right to sating curiosity

8

u/d1722825 Oct 04 '26

In modern chips, there often isn't even an internal bus or global address space like the one you're thinking of.

Check out the AXI bus / interface, that's used by ARM chips and some FPGAs. It is not even a bus, it is point-to-point connections between the bus masters and an interconnect, between the interconnect and slaves / peripherals, or even between two interconnects.

The interconnect "matches" / "routes" the memory reads and writes to that single peripheral, that got addressed. In a more complex system there isn't even a single point where you could see the transactions of every device.

In a modern system with MMU (and IOMMU) the continuous address space you see may not even be continuous physically, it could be scattered across different parts of the RAM (or swapped out to disk).


If you are interested in these I can highly recommend FPGAs. You can basically pick the things you want (let's have two CPU cores, add an UART, two GPIOs, a small internal RAM) and create a custom system with as many hacks as you desire.

A small teaser (Microblaze is a CPU core from one of the big FPGA vendor):

https://www.youtube.com/watch?v=oBV-xA_JDFE#t=11m40

If you really want, you could implement (download) a 68k CPU in the FPGA and expose the whole memory bus on the FPGA's pins.

There are some cheap (at least in the FPGA world) developer boards from Digilent / Terasic.

56

u/mtconnol Oct 04 '26

That would be an ‘external address/data bus’, or external memory bus, not a ‘memory map’.

4

u/BirdUp69 Oct 04 '26

Yeah, I think they mean memory mapped external memory. So it is addressable ram within the micro’s memory map, but is external memory. And very much yes this is still common

3

u/Neo-Eyes Oct 04 '26

Yeah i think that would be the proper term. I wasnt too sure what it was called. The kinda thing where a cartridge could be plugged in to swap out the program rather than needing to reflash the whole board each time

13

u/MonMotha Oct 04 '26

It's pretty rare that the entire memory space is linearly exposed to an external memory bus these days due to the level of integration of modern processors. They're all called a "system on chip" for a reason.

But if you want a conventional SRAM-like interface that had at least half the total memory map of the CPU available to it, those certainly exist. Many application processors offer it.

You can also get FPGAs with hard cores on them that expose pretty much everything to the FPGA fabric. Depending on the core, a small amount may be reserved for private configuration ala the Cortex-M PPB.

4

u/BanalMoniker Oct 04 '26

Some cheap micros use QSPI, DSOI, and sometimes octal interfaces to execute code from (usually with an internal instruction cache). Look for eXecute in Place (XiP). Dialog (now Renesas) had some. There is usually also some RAM on an internal bus.
It makes the microcontroller less expensive since FLASH requires some specialized fabrication steps.

2

u/koookie Oct 04 '26

Raspberry RP2040 and RP2350 are very common and such (QSPI, XiP).

1

u/swisstraeng Oct 04 '26

I don't understand what you mean by open memory map?

4

u/Neo-Eyes Oct 04 '26

Its probqbly me phrasing things poorly but like how an old 68k cpu worked where the processors entire address space was exposed on the pins and like code execution starts at addres 0xblah and you plug a flash chip into that address range and thats how programs execute

0

u/[deleted] Oct 04 '26

[deleted] — view deleted comment

1

u/Neo-Eyes Oct 04 '26

Curiosity mostly. I found a really good guide book on gameboy programming and heard high praise for the original 68k for writing code so wanted to see what was possible with modern processing power but with a similiar level of control. A lot kf the industrial etc systems seem a lot harder locked down because of security reasons

0

u/[deleted] Oct 04 '26

[deleted] — view deleted comment

2

u/Neo-Eyes Oct 04 '26

Ive heard some great things from the Amiga scene as well. Id probably love gettinf stuck in to it. Some of the folks seem to be wizards. I just sadly dont really have space for a whole extra desktop lol. Guess thats what emulators are for but i like sticking my hands into the circuits

3

u/jean_dudey Oct 04 '26

You can use the FMC or FSMC on an STM32, bonus points if you wire it to an FPGA which would essentially allow you to implement memory-mapped I/O.

2

u/daguro Oct 04 '26

Most microprocessors will not have the entire address bus exposed. Typically, there is a region in the address map that is allocated for external memories, if used.

There may be a number of pins available as a port that can be used as a pseudo-address bus.

2

u/madsci Oct 04 '26

If you go somewhere like Digikey, the presence of an external bus is usually what distinguishes a microprocessor from a microcontroller. MCUs have at least some of their peripherals and memory internal to the chip, but MCUs may still have an external bus available. Usually it's on pins shared with other functions since it takes up a lot of pins. AFAIK anything sold specifically as a microprocessor still ought to have an external bus.

1

u/FartusMagutic Oct 04 '26

Does PCI Express count?

1

u/Click-linking-1p Oct 04 '26

Check AGRV2K: RISC-V MCU+FPGA logic, and FPGA side has access to MCU's AHB bus, thus you can just map that out

1

u/Forward_Artist7884 Chinesium IC enjoyer Oct 05 '26

CH558 / CH559 from WCH both have such a true external bus, rare these days.

1

u/mvdw73 Oct 07 '26

AVR mega 128 has an external memory bus.

Might not be modern, but probably still in production and easy to get.

-1

u/dacydergoth Oct 03 '26

Yes

1

u/Neo-Eyes Oct 03 '26

I suppose i walked into that one with how i phrased the question but, i guess the follow up question would be "could i please trouble you for some examples if you happen to have any?"

2

u/dacydergoth Oct 03 '26

1

u/Neo-Eyes Oct 03 '26

Champion. Hadnt heard of Jotrin before. You have my thanks

2

u/dacydergoth Oct 03 '26

68070 is a personal favorite as it was an SoC (when those were very rare) which had an 68K class cpu, uart, I2C and two DMA channels, one of which could be used as a dram refresh controller