Direct programming: no os?

Posts: 8
Joined: Wed Jan 13, 2016 9:47 am

Direct programming: no os?

Postby noumes » Sat Jan 28, 2017 9:54 am

Hey All,

I'm working through "AVR Programming" by Elliot Williams. What' I'm hoping to do, is be able to recreate the projects using the ESP8266 instead of the Atmel chip.

One difference I find with the code Elliot writes for the Atmel chip is he assigns values directly to memory registers. An example of this can be found in the first exercise for toggling an LED: ... blinkLED.c

My question is, how can I mimic this style of AVR programming on the ESP8266--without using the higher level functions exposed in either of the provided OSs. Is the ESP8266 programmed in a similar manner outlined above?

Thanks you!

User avatar
Posts: 467
Joined: Wed Jun 29, 2016 7:17 pm
Location: India

Re: Direct programming: no os?

Postby pratik » Mon Feb 06, 2017 11:31 am

Yes, you can definitely do this with the ESP8266. However, the register addresses are not all revealed to the public. The reason for this is that the Wi-Fi radio part is interworking with other peripherals such as the ADC and so if you program either incorrectly, the whole system will misbehave - and being a radio chip, it can mess things over a large area.

Consequently, the best way to program ESP8266 is to use the API functions. They are efficient and need some getting used to. Believe me, I still have a tough time when I cannot access registers.

By the way, try out the ESP32 - it is just what you want. ;)
Pratik Panda

Custom firmware, Knowledge base and freelancing (ESP8266/ESP32):

Who is online

Users browsing this forum: No registered users and 2 guests