EmbeddedRelated.com
Memfault Beyond the Launch

newbie Q - getting data from one code area to another

Started by Scott Kelley in comp.arch.embedded20 years ago 8 replies

AVR mega16 uC / ICCAVR compiler On reset, I run bootloader code, then I jump to the main application. When doing so, I want to store two...

AVR mega16 uC / ICCAVR compiler On reset, I run bootloader code, then I jump to the main application. When doing so, I want to store two bytes of data from the bootloader for use in the main code. It seems that the easy solution probably lies in an area I have virtually no knowledge of, assembly language (I use C and compile with ICCAVR), and direct use of registers. Advice? Th...


Is there a process for secure firmware install/upgrade for device made offshore?

Started by Anonymous in comp.arch.embedded7 years ago 44 replies

Hi Recently more and more companies want to add security (authentication and/or encryption) to their devices firmware install/update process....

Hi Recently more and more companies want to add security (authentication and/or encryption) to their devices firmware install/update process. Typically this is done by storing a secret encryption key in bootloader or elsewhere in internal MCU flash. This should work if bootloader is installed in secure facility by trusted people. But then manufacturing is outsourced/offshored and t


t89c51cc01 jump to user bootloader

Started by Dan in comp.arch.embedded20 years ago 4 replies

Hi all, I'm working with an Atmel T89C51CC01 chip and I'm trying to get it to jump to a certain location in flash on reset. The only...

Hi all, I'm working with an Atmel T89C51CC01 chip and I'm trying to get it to jump to a certain location in flash on reset. The only documentation I have for this is a flowchart in the bootloader doc, http://www.atmel.com/dyn/resources/prod_documents/doc4210.pdf Using the flash api, I clear BLJB and set the SBV to the location I want to boot to. I also set FCON to some non-zero value....


AT91RM9200DK linux newbie - eth0 not there

Started by Rico in comp.arch.embedded17 years ago 1 reply

Hi, I have managed to build my 2.6.21 kernel for my AT92RM9200DK dev board but the ethernet driver is not starting for some reason. I checked...

Hi, I have managed to build my 2.6.21 kernel for my AT92RM9200DK dev board but the ethernet driver is not starting for some reason. I checked the dmesg log and found this: at91_ether: Your bootloader did not configure a MAC address. eth0: Link now 100-FullDuplex eth0: AT91 ethernet at 0xfefbc000 int=24 100-FullDuplex (00:00:00:00:00:00) eth0: Davicom 9161 PHY (Copper) My bootloader ...


How to link embedded code against existing routines in flash

Started by emeb in comp.arch.embedded15 years ago 3 replies

I'm using arm-elf-gcc to write embedded code targeting the NXP LPC2148. My application code will be loaded from an SD card into the MCU flash...

I'm using arm-elf-gcc to write embedded code targeting the NXP LPC2148. My application code will be loaded from an SD card into the MCU flash and run by an existing bootloader described in more detail here: http://www.sparkfun.com/commerce/tutorial_info.php?tutorials_id=94 This bootloader contains a number of utility / library routines that I'd like to be able to use from my own applicat...


AVR Bootloader protection

Started by ralp...@gmail.com in comp.arch.embedded19 years ago 2 replies

Does anyone have any good way to protect an AVR from accidential flash / erase commands? Imagine, a bug in the application software causes a...

Does anyone have any good way to protect an AVR from accidential flash / erase commands? Imagine, a bug in the application software causes a jump into the bootloader - that just happens to be around the code that calls page erase or page write - so that routine does what's it's supposed to, writes random data to a random page or erases a random page. There is no protection, SPM works b/c...


MPC5xx exception table relocation

Started by Randy Meyers in comp.arch.embedded12 years ago 1 reply

I am having trouble getting code to run when relocated in flash. Setup; MPC565, bootloader (mine) located @ 0x0000, compiled with CW...

I am having trouble getting code to run when relocated in flash. Setup; MPC565, bootloader (mine) located @ 0x0000, compiled with CW 8.1 MSR[IP] = 0x0. Everything is good and bootloader runs on PORESET. User program loaded @ 0x10000. Compiled with MSR[IP] = 1, BBCMCR[ETRE] = 1, and BBCMCR[OERC] = 0b01. As per AN2472. Linker file adjusted to load @ 0x10000. Linker MAP shows everything ...


ATMega128 -- Difference between flash/eeprom

Started by Ben Nguyen in comp.arch.embedded20 years ago 2 replies

Im trying to learn microprocessors, and Im a bit confused about flash vs eeprom. 1. Does my program that I download (via ISP ribbon cable) go...

Im trying to learn microprocessors, and Im a bit confused about flash vs eeprom. 1. Does my program that I download (via ISP ribbon cable) go into the EEPROM or the FLASH? 2. Can my user program use the EEPROM at run-time or must it be programmed ahead of time? 3. How does a bootloader work? (If I store a bootloader in flash, will I need the ISP connector to program the chip anymore...


loading Zimage from SDCARD

Started by tamamontu in comp.arch.embedded14 years ago

I have a EP9307 based custom designed board. At present it is using the same setup as the development kit for EP9307. At present we use redboot...

I have a EP9307 based custom designed board. At present it is using the same setup as the development kit for EP9307. At present we use redboot to download zimage on to flash and then boot the kernel by loading it into sdram. I want to load the Zimage from SDCARD directly. I have modified first stage bootloader to load from EEprom, This in turn loads the second stage bootloader which initial...


Bootloader - erase flash memory

Started by Thomas Baier in comp.arch.embedded19 years ago 5 replies

Hi there, I've got a C164CI and I have to write a bootloader in assembly to load my Hex-Files into the Flash memory. I've got a 32-Byte...

Hi there, I've got a C164CI and I have to write a bootloader in assembly to load my Hex-Files into the Flash memory. I've got a 32-Byte primary loop that loads another loop, refered to as secondary loop, which should load the main prog and write it into the flash memory. Everything seems to work fine, as I've inserted some LED controll codes, and the code seems to work, but when I've finsh...


Loading kernel from SDCARD

Started by tamamontu in comp.arch.embedded14 years ago

I have a EP9307 based custom designed board. At present it is using the same setup as the development kit for EP9307. At present we use...

I have a EP9307 based custom designed board. At present it is using the same setup as the development kit for EP9307. At present we use redboot to download zimage on to flash and then boot the kernel by loading it into sdram. I want to load the Zimage from SDCARD directly. I have modified first stage bootloader to load from EEprom, This in turn loads the second stage bootloader which ini...


futurlec 16F877 and MicroCode Studio Plus's ICD feature

Started by Anonymous in comp.arch.embedded18 years ago

Has anyone sucessfully interfaced PBP/Microcode Studio Plus's ICD to futurlec's CP-877? I have to figure out how to load a bootloader (Through...

Has anyone sucessfully interfaced PBP/Microcode Studio Plus's ICD to futurlec's CP-877? I have to figure out how to load a bootloader (Through the parallel port I presume?) then load the program and run the ICD (Through the serial port I presume?) I ordered the serial cable from them after the first order so I haven't tried it yet. From all the reading I've done I take it the bootloader has t...


STM32L4R9 native bootloader (system memory)

Started by pozz in comp.arch.embedded4 years ago 4 replies

I have a board that mounts STM32L4R9 MCU. I'm interested in the native USB bootloader, the one that resides in system memory. The BOOT0 pin...

I have a board that mounts STM32L4R9 MCU. I'm interested in the native USB bootloader, the one that resides in system memory. The BOOT0 pin can be pulled-down or pulled-up by resistors, but those resistors can't be moved (soldered/unsoldered) at every upgrade. What I'd like to do is: - at startup, if a USB cable is connected, system memory should be selected as boot memory area - a...


Problem in Interrupt for USB device

Started by kracks in comp.arch.embedded17 years ago

Hi, I added basic functionality in bootloader(eboot.nb0)for downloading Nk.nb0 through USB. I am working in wince for ln2440sbc board. I...

Hi, I added basic functionality in bootloader(eboot.nb0)for downloading Nk.nb0 through USB. I am working in wince for ln2440sbc board. I registered for Interrupt service routine in my bootloader like this. pISR=((unsigned)EA000000+((unsigned)IsrHandler -(8c000000-18-8)> > 2) and my pISR is *((unsigned *)(0x30000000+0x18)) (Since 8c000000 is mapped to 0x30000000.) IsrHandler is in assembly c


help in loading linux from sdcard on arm9

Started by tamamontu in comp.arch.embedded13 years ago 7 replies

Hi Guys, I have a EP9307 (Arm 920T) based board. The design is based on Cirrus logic EP9307 development board. At present the boot sequence is...

Hi Guys, I have a EP9307 (Arm 920T) based board. The design is based on Cirrus logic EP9307 development board. At present the boot sequence is first stage bootloader (com port) => redboot (com port) => Zimage (ethernet) => Ramdisk (ethernet). I want to load Zimage directly from SDcard without using redboot. I have modified first stage bootloader to boot from spi eeprom. This in turn loads a


AT89c51snd1c

Started by aravind in comp.arch.embedded18 years ago 10 replies

Does anyone know the hardware programming method of the mp3 player chip, my bootloader is not working and i dont have access to a...

Does anyone know the hardware programming method of the mp3 player chip, my bootloader is not working and i dont have access to a device programmer


firmware

Started by Roman Mashak in comp.arch.embedded20 years ago 6 replies

Hello, All! Could you please clarify the definition of 'firmware' term? I always thought it's only bootloader, but recently I've found...

Hello, All! Could you please clarify the definition of 'firmware' term? I always thought it's only bootloader, but recently I've found it's much more deeper, so I'd like to understand more clearly this. With best regards, Roman Mashak. E-mail: mrv@tusur.ru


Anyone has TMS320F280x CAN FLASH loader ?

Started by Roman in comp.arch.embedded18 years ago 5 replies

The ROM bootloader allows only loading chunk of code into RAM and execute it and I am wondering if there is any second stage loader out there....

The ROM bootloader allows only loading chunk of code into RAM and execute it and I am wondering if there is any second stage loader out there. Looked through TI appnotes, but could not find anything for this CPU. Thanks Roman


why use assembly in mmu initialization?

Started by yuny...@gmail.com in comp.arch.embedded17 years ago 4 replies

I am learning a bootloader code, can some please tell me why mmu initialization must be implemented in assambly instead of c?

I am learning a bootloader code, can some please tell me why mmu initialization must be implemented in assambly instead of c?


Looking for a bootloader for a PC

Started by F;,VN[OWIR in comp.arch.embedded20 years ago 4 replies

I am looking for a piece of software that would sit in the boot sector of a hard disk and load an application thus making possible an...

I am looking for a piece of software that would sit in the boot sector of a hard disk and load an application thus making possible an embedded application without having to use an OS. Source code is needed. The application will be coded in C or C++ using the GCC compiler. please reply to this newsgroup. Thank you



Memfault Beyond the Launch