Hi, I am working on (re)writing firmware for a rfid reader (RDM6300). 
Initially I started this project with a C8051F300 mcu. To program the 
chip I wrote firmware for a hardware programmer plus I reused c2tool as 
host software:

https://github.com/merbanan/c2gen
https://github.com/merbanan/c2tool

When I got that working I started writing simple example code to get to 
know the mcu.

https://github.com/merbanan/C8051F300_examples

Everything worked fine. Then I switched to the C8051F330 mcu and all 
went to shit. Small examples worked somewhat but when compiling larger 
code sets things just stopped working. The mcu is just not behaving 
predictable. I have more then one hardware and they behave equally bad, 
so it is deterministically bad. To add to the insult my homebrew 
programmer didn't want to work with this chip either. Reading chip 
status worked but flash programming and dumping didn't. So I tried with 
the Keil tool chain and a proper programmer and things seem to behave 
better.

So how do I debug this issue further? I am so far that if I uncomment a 
call to a delay function things stop working. I am suspecting that sdcc 
or I am not setting up the hardware properly.

MvH
Benjamin Larsson

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to