Hi, I would like to use the IAP feature for firmware upgrade in future for bug fixs. But how do I organise my code such that I have a portion "bootloader" that is fixed, and the rest of the code are upgradeable ?? I have tried using the linker option to set my bootloader function at address 0x1000, and the rest of my functions at 0x2000 onwards. But I check the .hex file, what happen is when I changed something in the main body function, the 0x1000 address code also changed. How should I go about it in implementing a "bootloader" section and upgradeable portion of code??? Thank You !! Jerry Yeo
"'What's a batch file?' aka a .bat file" Yes, I do know what a batch file is. My point is that 9 out of 10 customers don't.
'What's a batch file?' aka a .bat file Of course, you make a nice interface to run it so the windiots do not have a problem. Erik windiot: someone that can not imagine anything that does not have a windows icon, clicking 'start' will not do.
"I deliver FlashMagic "packed" into a .bat file with the needed parametres for upgrades, they require NO technical skills." I know what feedback I'd get if I did that: 'What's a batch file?' In any case, we have to provide equipment that insulates the user from this sort of nitty gritty. Also, a lot of our stuff connects to the PC via one or more proprietry interfaces or perhaps via a network. There is no possibility whatsoever that someone can just go and hook the thing up to a laptop serial port.
Field upgrades, for instance. The customer cannot be exposed to anything 'technical'. I deliver FlashMagic "packed" into a .bat file with the needed parametres for upgrades, they require NO technical skills. Erik
"1) what circumstances would that be?" Field upgrades, for instance. The customer cannot be exposed to anything 'technical'. "2) using software made by/for the chip manufacturer is not quite the same as "using 3rd party software". Was it so, the use of Keil would be precludes as well." See above.
Maybe circumstances preclude the use of 3rd party software? 1) what circumstances would that be? 2) using software made by/for the chip manufacturer is not quite the same as "using 3rd party software". Was it so, the use of Keil would be precludes as well. Erik
"WHY, oh why do you muck with this" Maybe circumstances preclude the use of 3rd party software?
But how do I organise my code such that I have a portion "bootloader" that is fixed, and the rest of the code are upgradeable ?? WHY, oh why do you muck with this. There is ready made software (FlashMagic) free from http://www.esacademy.com that uses a bootloader that is already in the chip Is it NIH syndrome? Erik
Why do you look into .hex file? The proper place to check where the linker puts every segment is the .m51 file. Regards.
View all questions in Keil forum